mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 21:40:28 +03:00
fix session using for installations with prefix
This commit is contained in:
parent
9cc2833364
commit
3d368c6783
@ -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;
|
||||
|
@ -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>';
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user