mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Added authentication includes to all files
This commit is contained in:
@@ -794,9 +794,10 @@ else
|
||||
|
||||
sendcacheheaders();
|
||||
if (!isset($_SESSION['metaHeader'])) {$_SESSION['metaHeader']='';}
|
||||
$adminoutput = getAdminHeader($_SESSION['metaHeader']).$adminoutput.$loginsummary; // All future output is written into this and then outputted at the end of file
|
||||
//$adminoutput = getAdminHeader($_SESSION['metaHeader']).$adminoutput.$loginsummary; // All future output is written into this and then outputted at the end of file
|
||||
$adminoutput =$loginsummary;
|
||||
unset($_SESSION['metaHeader']);
|
||||
$adminoutput.= "</div>\n".getAdminFooter("http://docs.limesurvey.org", $clang->gT("LimeSurvey online manual"));
|
||||
$adminoutput.= "</div>\n";//.getAdminFooter("http://docs.limesurvey.org", $clang->gT("LimeSurvey online manual"));
|
||||
}
|
||||
if (($action=='showphpinfo') && ($_SESSION['USER_RIGHT_CONFIGURATOR'] == 1))
|
||||
{
|
||||
|
||||
@@ -31,7 +31,7 @@ else {session_name("LimeSurveyAdmin");}
|
||||
|
||||
if (session_id() == "")
|
||||
{
|
||||
session_set_cookie_params(0,$relativeurl.'/');
|
||||
session_set_cookie_params(0,QUEXS_PATH);
|
||||
if ($debug==0) {@session_start();}
|
||||
else {session_start();}
|
||||
}
|
||||
|
||||
@@ -236,6 +236,13 @@ if (!isset($_SESSION['loginID']))
|
||||
}
|
||||
$loginsummary .= "<br /><br />\n";
|
||||
GetSessionUserRights($_SESSION['loginID']);
|
||||
|
||||
//go to queXS
|
||||
$loc = "";
|
||||
if ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1)
|
||||
$loc = "/admin";
|
||||
header('Location: ' . QUEXS_URL . $loc);
|
||||
die();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user