mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 21:40:28 +03:00
Merge branch v1.6.x into master
This commit is contained in:
commit
035479f7a2
@ -188,7 +188,7 @@ function create_table($id, $link)
|
||||
mysql_query($query, $link) or show_install_err(' Query failed: ' . mysql_error($link));
|
||||
|
||||
if ($id == "${mysqlprefix}chatoperator") {
|
||||
create_operator_("admin", "", "", "", "Administrator", "Administrator", 0, $link);
|
||||
create_operator_("admin", "", "", "", "Administrator", "Administrator", 0, "", $link);
|
||||
} else if ($id == "${mysqlprefix}chatrevision") {
|
||||
perform_query("INSERT INTO ${mysqlprefix}chatrevision VALUES (1)", $link);
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ function update_operator_avatar($operatorid, $avatar)
|
||||
mysql_close($link);
|
||||
}
|
||||
|
||||
function create_operator_($login, $email, $jabber, $password, $localename, $commonname, $notify, $link)
|
||||
function create_operator_($login, $email, $jabber, $password, $localename, $commonname, $notify, $avatar, $link)
|
||||
{
|
||||
global $mysqlprefix;
|
||||
$query = sprintf(
|
||||
@ -140,7 +140,7 @@ function create_operator_($login, $email, $jabber, $password, $localename, $comm
|
||||
md5($password),
|
||||
mysql_real_escape_string($localename),
|
||||
mysql_real_escape_string($commonname),
|
||||
'' /* no avatar */,
|
||||
mysql_real_escape_string($avatar),
|
||||
mysql_real_escape_string($email),
|
||||
mysql_real_escape_string($jabber),
|
||||
$notify);
|
||||
@ -151,10 +151,10 @@ function create_operator_($login, $email, $jabber, $password, $localename, $comm
|
||||
return select_one_row("select * from ${mysqlprefix}chatoperator where operatorid = $id", $link);
|
||||
}
|
||||
|
||||
function create_operator($login, $email, $jabber, $password, $localename, $commonname, $notify)
|
||||
function create_operator($login, $email, $jabber, $password, $localename, $commonname, $notify, $avatar)
|
||||
{
|
||||
$link = connect();
|
||||
$newop = create_operator_($login, $email, $jabber, $password, $localename, $commonname, $notify, $link);
|
||||
$newop = create_operator_($login, $email, $jabber, $password, $localename, $commonname, $notify, $avatar, $link);
|
||||
mysql_close($link);
|
||||
return $newop;
|
||||
}
|
||||
|
0
src/messenger/webim/locales/ar/properties
Executable file → Normal file
0
src/messenger/webim/locales/ar/properties
Executable file → Normal file
@ -86,7 +86,7 @@ if (isset($_POST['login']) && isset($_POST['password'])) {
|
||||
|
||||
if (count($errors) == 0) {
|
||||
if (!$opId) {
|
||||
$newop = create_operator($login, $email, $jabber, $password, $localname, $commonname, $jabbernotify ? 1 : 0);
|
||||
$newop = create_operator($login, $email, $jabber, $password, $localname, $commonname, $jabbernotify ? 1 : 0, "");
|
||||
header("Location: $webimroot/operator/avatar.php?op=" . $newop['operatorid']);
|
||||
exit;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user