?PNG  IHDR ? f ??C1 sRGB ?? gAMA ? a pHYs ? ??od GIDATx^LeY?a?("Bh?_????q5k?*:t0A-o??]VkJM??f?8\k2ll1]q????T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/user1137782/www/china1.by/classwithtostring.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
home/user1137782/www/user1137782.atservers.net/cms/modules/dev/reg.php000066600000021026150477477560020741 0ustar00$v) { $_POST[$k] = mysql_escape_string(trim($v)); } if($_POST['ajax']) { foreach($_POST as $k=>$v) { $_POST[$k] = iconv("utf-8","cp1251",$v); } switch($_POST['act']) { case 'login': $HTTP_HOST = $_SERVER['HTTP_HOST']; if ($Action) { $res = mysql_query("SELECT User_ID FROM User WHERE $CMS_AUTHORIZE_FIELD ='$AUTH_USER' AND Password=MD5('$AUTH_PW') AND Checked=1",$LinkID); $IsAuthorized = mysql_num_rows($res); mysql_free_result($res); } if (!$Action || !$IsAuthorized) { $result = "Такого пользователя не существует."; } else { if ($IsAuthorized) Authorize(); $ProjectDomain = GetAllProjectDomains(); $res = mysql_query("SELECT MD5('${AUTH_PW}')",$LinkID); list($Password) = mysql_fetch_row($res); mysql_free_result($res); for ($i=0;$i'".$current_user['User_ID']."'"); if ($image->check($_POST['code']) != true) { $result = "Неправильно введён защитный код"; } else if(!empty($emailToCheck['User_ID'])) { $result = "Пользователь с таким Электронным адресом уже существует"; } else { Authorize(); if ($AUTH_USER_ID) LoadUserEnv(); $email = iconv('cp1251','utf-8', $_POST['Email']); $name = iconv('cp1251','utf-8', $_POST['name']); $surname = iconv('cp1251','utf-8', $_POST['surname']); $phone = iconv('cp1251','utf-8', $_POST['phone']); $address = iconv('cp1251','utf-8', $_POST['address']); $icq = iconv('cp1251','utf-8', $_POST['icq']); $skype = iconv('cp1251','utf-8', $_POST['skype']); $pass = $_POST['Password1']; $u_id = $current_user['User_ID']; $sql = "UPDATE `User` SET `Email`='".$email."', `name`='".$name."', `surname`='".$surname."', `phone`='".$phone."', `address`='".$address."', `icq`='".$icq."', `skype`='".$skype."' WHERE `User_ID`=".$u_id.""; $res = SQLExec($sql); if($res) { if(!empty($pass)) { $res = SQLExec("Update User Set Password=MD5('".$pass."') Where User_ID='".$u_id."'"); if($res) { $xcontent .= " Поздравляем!
Вы успешно изменили ваш пароль на ".$DOMAIN_NAME." !
Ваш логин и пароль для входа:
Логин: ".$email."
Пароль: ".$pass."
"; as_htmlmail($email, iconv('utf-8','cp1251','Смена пароля на сайте Комкор'), iconv('utf-8','cp1251',$xcontent), 'admin', $MODULE_VARS['users']['USER_ADMIN_EMAIL']); new_autorize($email,$pass); } } $result = 'true'; } else { $result = 'Произошла ошибка, попробуйте ещё раз.'; } } break; } echo $result; exit; } if($_POST['submit'] && $_POST['isreg']) { global $warnText; $email = $_POST['Email']; $pass = $_POST['Password1']; $image = new Securimage(); $isNew = 0; if ($image->check($_POST['code']) != true) { $warnText = "Неправильно введён защитный код"; } else if (empty($email) || empty($_POST['name']) || empty($_POST['surname']) || empty($_POST['Password1']) || empty($_POST['Password2']) || empty($_POST['phone'])) { $warnText = "Заполните все обязательные поля"; } else if (CheckEmailIfExist($email)) { $warnText = "Пользователь с ".$email." уже существует
"; } else if ($_POST['Password1'] != $_POST['Password2']) { $warnText = "Повторите ввод пароля"; } else { if($_POST['not_new'] == 'on') { $isNew = 1; } $res = SQLExec("Insert Into User ( Password, Checked, User_Group_ID, Email, Confirmed, RegistrationCode, Lang, Created, name, surname, phone, address, icq, skype) Values ( MD5('".$pass."'),'1','2', '".$email."','1','','ru', NOW(), '".$_POST['name']."','".$_POST['surname']."','".$_POST['phone']."','".$_POST['address']."','".$_POST['icq']."','".$_POST['skype']."')"); if($res) { $xcontent .= " Поздравляем!
Вы успешно зарегистрировались на ".$DOMAIN_NAME." !
Ваш логин и пароль для входа:
Логин: ".$email."
Пароль: ".$pass."
"; as_htmlmail($email, iconv('utf-8','cp1251','Регистрация на сайте Комкор'), iconv('utf-8','cp1251',$xcontent), 'admin', $MODULE_VARS['users']['USER_ADMIN_EMAIL']); $result = true; } else { $warnText = "Произошла ошибка, попробуйте ещё раз."; } } if($warnText || !$result) { eval("echo \"$template_header\";"); eval("echo \"$addTemplate\";"); //eval("echo \"$warnText\";"); //echo "
".$warnText."
"; eval("echo \"$template_footer\";"); } else if($result) { eval("echo \"$template_header\";"); echo '

Поздравляем, Вы успешно зарегистрированы.

Подтверждение о регистрации будет выслано на указанный Вами электронный адрес.
На главную.

'; eval("echo \"$template_footer\";"); } } else { eval("echo \"$template_header\";"); eval("echo \"$template_footer\";"); } function CheckEmailIfExist($email, $UserID=0) { $q = "Select User_ID From User where Email='".$email."'"; if($UserID) { $q .= " And User_ID!='".$UserID."'"; } $data = SQLSelectOne($q); if (!empty($data['User_ID'])) { return true; } return false; } function new_autorize($AUTH_USER,$AUTH_PW) { global $LinkID;; $res = mysql_query("SELECT User_ID FROM User WHERE Email='$AUTH_USER' AND Password=MD5('$AUTH_PW') AND Checked=1",$LinkID); $IsAuthorized = mysql_num_rows($res); mysql_free_result($res); $ProjectDomain = GetAllProjectDomains(); $res = mysql_query("SELECT MD5('${AUTH_PW}')",$LinkID); list($Password) = mysql_fetch_row($res); mysql_free_result($res); for ($i=0;$i