fix session using for installations with prefix

This commit is contained in:
Evgeny Gryaznov 2011-02-27 00:11:08 +01:00
parent 9cc2833364
commit 3d368c6783
3 changed files with 6 additions and 6 deletions

View File

@ -77,8 +77,8 @@ if (!$op) {
if (count($errors) == 0) {
update_operator_avatar($op['operatorid'], $avatar);
if ($opId && $avatar && $_SESSION[$mysqlprefix . 'operator'] && $operator['operatorid'] == $opId) {
$_SESSION[$mysqlprefix . 'operator']['vcavatar'] = $avatar;
if ($opId && $avatar && $_SESSION["${mysqlprefix}operator"] && $operator['operatorid'] == $opId) {
$_SESSION["${mysqlprefix}operator"]['vcavatar'] = $avatar;
}
header("Location: $webimroot/operator/avatar.php?op=$opId");
exit;

View File

@ -173,11 +173,11 @@ $showonline = verifyparam("showonline", "/^1$/", 0);
$link = connect();
loadsettings_($link);
if (!isset($_SESSION['operatorgroups'])) {
$_SESSION['operatorgroups'] = get_operator_groupslist($operator['operatorid'], $link);
if (!isset($_SESSION["${mysqlprefix}operatorgroups"])) {
$_SESSION["${mysqlprefix}operatorgroups"] = get_operator_groupslist($operator['operatorid'], $link);
}
mysql_close($link);
$groupids = $_SESSION['operatorgroups'];
$groupids = $_SESSION["${mysqlprefix}operatorgroups"];
start_xml_output();
echo '<update>';

View File

@ -30,7 +30,7 @@ notify_operator_alive($operator['operatorid'], $status);
$link = connect();
loadsettings_($link);
$_SESSION['operatorgroups'] = get_operator_groupslist($operator['operatorid'], $link);
$_SESSION["${mysqlprefix}operatorgroups"] = get_operator_groupslist($operator['operatorid'], $link);
mysql_close($link);
$page = array();