$OptionsError = loca("OPTIONS_ERR_NAME_3_20"); } else { if (preg_match('/[<>()\\[\\]{}\\\\\\/\\`\\"\'.,:;*+]/', $_POST['db_character'])) { $OptionsError = loca("OPTIONS_ERR_NAME_SPECIAL"); } } } } $lower = mb_strtolower($_POST['db_character'], 'UTF-8'); foreach ($forbidden as $i => $name) { if ($lower === $name) { $OptionsError = loca("OPTIONS_ERR_NAME"); } } if ($OptionsError === "") { ChangeName($GlobalUser['player_id'], $_POST['db_character']); $OptionsError = loca("OPTIONS_MSG_NAME"); $GlobalUser['name_changed'] = 1; $GlobalUser['oname'] = $_POST['db_character']; Logout($GlobalUser['session']); } } else { if ($_POST['newpass1'] !== "") { // Сменить пароль if ($_POST['newpass1'] !== $_POST['newpass2']) { $OptionsError = loca("OPTIONS_ERR_NEWPASS"); } else { if (!preg_match("/^[_a-zA-Z0-9]+\$/", $_POST['newpass1'])) { $OptionsError = loca("OPTIONS_ERR_PASS_SPECIAL"); } else { if (strlen($_POST['newpass1']) < 8) {
DoEditImg($imgid, $imggal, $newdesc); break; case "delimg": DelImg($imgid, $go); break; case "validimg": DoValidImg($imgid); break; case "delcomimg": DelComImg($id, $picid); break; case "rename": if ($actualname == $newname) { redirect_url($ThisRedo); } ChangeName($type, $gcid, $newname, $newgalcat, $newacces); break; case "config": PrintFormConfig(); break; case "wrtconfig": WriteConfig($maxszimg, $maxszthb, $nbimlg, $nbimpg, $nbimcomment, $nbimvote, $viewalea, $viewlast, $votegal, $commgal, $votano, $comano, $postano, $notifadmin); break; case "import": import(); break; case "massimport": massimport($imggal, $descri); break; case "export": PrintExportCat();