on the admin_cms login page, there is the following code:
<?php
if(isset($_SESSION['UserGroupID']) && $_SESSION['UserGroupID'] == 1) {
$_SESSION['AdminLogin'] = $GLOBALS['WAGLOBAL_Admin_Password'];
}
?>
<?php
if (!session_id()) session_start();
if((((isset($_POST["userName"]) && $_POST["userName"]== $WAGLOBAL_Admin_Username)?$_POST["userName"]:"") != "")) {
$_SESSION["AdminLogin"] = "".((isset($_POST["Password"]))?$_POST["Password"]:"") ."";
$_SESSION["SuperAdminLogin"] = "".((isset($_POST["Password"]))?$_POST["Password"]:"") ."";
}
?>
this sets the AdminLogin and SuperAdminLogin if the supper admin is logging in. The supper admin doesn't get a UserGroupID though.
you can edit that to force the UserGroupID to 1 if the supper admin is logging in:
<?php
if (!session_id()) session_start();
if((((isset($_POST["userName"]) && $_POST["userName"]== $WAGLOBAL_Admin_Username)?$_POST["userName"]:"") != "")) {
$_SESSION["AdminLogin"] = "".((isset($_POST["Password"]))?$_POST["Password"]:"") ."";
$_SESSION["SuperAdminLogin"] = "".((isset($_POST["Password"]))?$_POST["Password"]:"") ."";
$_SESSION['UserGroupID'] = "1";
}
?>