Files
Testing/mailservices/includes/resume_user_session.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

33 lines
1.3 KiB
PHP

<?php header('Content-type: application/json');
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/mailservices/includes/');
include(PATHTOINCLUDES."base.php");
$dl="";
$dc="";
$sl="";
$sc="";
$tabc="";
$tab="";
if(isset($_SESSION["user_uri"]))
{
$pagename=$_SESSION["pagename"];
//$thesection=$_SESSION["thesection"];
//$thecontainer=$_SESSION["thecontainer"];
$dl=$_SESSION["the_dashboard_location"];
$dc=$_SESSION["the_dashboard_container"];
$sl=$_SESSION["the_section_location"];
$sc=$_SESSION["the_section_container"];
$tab=$_SESSION["the_tab"];
$tabc=$_SESSION["the_tabs_container"];
}
$menu="
<ul id=\"login-menu\">
<li><a href=\"javascript:donothing();\" onclick=\"signout();\" class=\"mi-last\">Sign Out</a></li>
<li><a href=\"javascript:donothing();\" onclick=\"getdashboard('/mailservices/bateworld/dashboard.php','content','/mailservices/bateworld/users.php','section_content');\">B8World</a></li>
<li><a href=\"javascript:donothing();\" onclick=\"getdashboard('/mailservices/admin/dashboard.php','content','/mailservices/admin/usermgr/accounts.php','section_content');\">Admin</a></li>
</ul>
";
$arr = array ('dl'=>$dl,'dc'=>$dc,'sl'=>$sl,'sc'=>$sc,'tab'=>$tab,'tabc'=>$tabc,'menu'=>$menu,'pagename'=>$pagename);
echo json_encode($arr);
exit();
?>