mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-23 05:40:30 +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) {
|
if (count($errors) == 0) {
|
||||||
update_operator_avatar($op['operatorid'], $avatar);
|
update_operator_avatar($op['operatorid'], $avatar);
|
||||||
|
|
||||||
if ($opId && $avatar && $_SESSION[$mysqlprefix . 'operator'] && $operator['operatorid'] == $opId) {
|
if ($opId && $avatar && $_SESSION["${mysqlprefix}operator"] && $operator['operatorid'] == $opId) {
|
||||||
$_SESSION[$mysqlprefix . 'operator']['vcavatar'] = $avatar;
|
$_SESSION["${mysqlprefix}operator"]['vcavatar'] = $avatar;
|
||||||
}
|
}
|
||||||
header("Location: $webimroot/operator/avatar.php?op=$opId");
|
header("Location: $webimroot/operator/avatar.php?op=$opId");
|
||||||
exit;
|
exit;
|
||||||
|
@ -173,11 +173,11 @@ $showonline = verifyparam("showonline", "/^1$/", 0);
|
|||||||
|
|
||||||
$link = connect();
|
$link = connect();
|
||||||
loadsettings_($link);
|
loadsettings_($link);
|
||||||
if (!isset($_SESSION['operatorgroups'])) {
|
if (!isset($_SESSION["${mysqlprefix}operatorgroups"])) {
|
||||||
$_SESSION['operatorgroups'] = get_operator_groupslist($operator['operatorid'], $link);
|
$_SESSION["${mysqlprefix}operatorgroups"] = get_operator_groupslist($operator['operatorid'], $link);
|
||||||
}
|
}
|
||||||
mysql_close($link);
|
mysql_close($link);
|
||||||
$groupids = $_SESSION['operatorgroups'];
|
$groupids = $_SESSION["${mysqlprefix}operatorgroups"];
|
||||||
|
|
||||||
start_xml_output();
|
start_xml_output();
|
||||||
echo '<update>';
|
echo '<update>';
|
||||||
|
@ -30,7 +30,7 @@ notify_operator_alive($operator['operatorid'], $status);
|
|||||||
|
|
||||||
$link = connect();
|
$link = connect();
|
||||||
loadsettings_($link);
|
loadsettings_($link);
|
||||||
$_SESSION['operatorgroups'] = get_operator_groupslist($operator['operatorid'], $link);
|
$_SESSION["${mysqlprefix}operatorgroups"] = get_operator_groupslist($operator['operatorid'], $link);
|
||||||
mysql_close($link);
|
mysql_close($link);
|
||||||
|
|
||||||
$page = array();
|
$page = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user