// Define aidlink
if (iADMIN) {
define("iAUTH", substr(md5($userdata['user_password'].USER_IP), 16, 16));
$aidlink = "?aid=".iAUTH;
}
require_once "maincore.php";
var_dump(iAUTH);
var_dump($aidlink);
pageAccess('IM', true);
/**
* Function to redirect on invalid page access.
* @param $rights
* @param bool $debug
*/
function pageAccess($rights, $debug = FALSE) {
$error = array();
if ($debug) {
print_p('Admin Panel mode');
}
if (!defined('iAUTH')) {
$error[] = 'iAuth error';
}
if (!isset($_GET['aid'])) {
$error[] = 'Aid link error';
}
if (isset($_GET['aid']) && $_GET['aid'] != iAUTH) {
$error[] = 'Aidlink mismatch. '.iAUTH.' != '.$_GET['aid']."<br/>";
$error[] .= USER_IP;
}
if (!checkrights($rights)) {
$error[] = 'Checkrights Error';
}
if (!empty($error)) {
if ($debug) {
print_p($error);
} else {
redirect(BASEDIR);
}
}
}
Quote
You should test with 3 different browsers. Safari, Chrome, Firefox. All 3 come back the same thing to you, then we proceed to look into our CMS.
Category Forum
System Administration - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions