Viewing file: remNotifySuperUser.inc.php3 (1023 B) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
if(checkSuperSession($superSession, $REMOTE_ADDR))
{
require("$mysqlCall");
include("include/rootGui.inc.php3");
$userId = getUserSUId($superSession);
$userInfo = getUserInfo($userId);
$one = 0;
$query = "replace into $users values('$userInfo[ID]', '$userInfo[user]', '$userInfo[pass]', '$userInfo[SuperUser]', '$userInfo[email]', '$one', '$userInfo[active]','$userInfo[manageUsers]', '$userInfo[addNews]', '$userInfo[manageNews]','$userInfo[manageNewsSpool]', '$userInfo[manageTopics]', '$userInfo[manageImages]')";
$mysql_result=mysql_query($query) or die(mysql_error());
if($mysql_result)
{
print("Looks as though that worked :)");
}
else
{
print("Something Wrong Here");
}
}
else
{
/* session is bad */
print("Bad Session ID ($superSession)!<BR>\n");
$superSession = "";
}
include("include/guiBase.inc.php3");
?>
|