some changes

This commit is contained in:
themohooks 2024-07-04 21:48:40 +03:00
parent c69709ee79
commit 3649e03d8f
2 changed files with 2 additions and 41 deletions

View file

@ -36,8 +36,8 @@ class Register
$username = $_POST['username']; $username = $_POST['username'];
$password = $_POST['password']; $password = $_POST['password'];
$email = $_POST['email']; $email = $_POST['email'];
if (!strcasecmp(DB::query('SELECT username FROM users WHERE (LOWER(username) LIKE :username)', array(':username' => '%' . $username . '%'))[0]['username'], $username) === false || Router::checkCurl($_SERVER['HTTP_HOST'] . '/' . $username) != 200 ) { if (!strcasecmp(DB::query('SELECT username FROM users WHERE (LOWER(username) LIKE :username)', array(':username' => '%' . $username . '%'))[0]['username'], $username) === false) {
if (Word::strlen(ltrim($username)) >= 5 && Word::strlen(ltrim($username)) <= 20 && !preg_match("#^[a-zA-Z0-9]+$#", $username)) { if (Word::strlen(ltrim($username)) >= 5 && Word::strlen(ltrim($username)) <= 20) {
if (Word::strlen(ltrim($password)) >= 5 && Word::strlen(ltrim($password)) <= 120) { if (Word::strlen(ltrim($password)) >= 5 && Word::strlen(ltrim($password)) <= 120) {

View file

@ -1,44 +1,6 @@
<tr> <tr>
<td class="mm-bar"> <td class="mm-bar">
<ul class="mm mm-level-1"> <ul class="mm mm-level-1">
<li><a href="#" onclick="return false" class="mm-item"><span class="mm-label">База вагонов и ТС</span></a>
<div>
<ul class="mm-level-2">
<li><a href="#" onclick="return false" class="mm-item"><span class="mm-label">Модели</span></a>
<div>
<ul class="mm-level-3">
<li><a href="/models.php?t=1" class="mm-item"><span class="mm-label">Трамвай</span></a></li>
<li><a href="/models.php?t=2" class="mm-item"><span class="mm-label">Троллейбус</span></a></li>
<li><a href="/models.php?t=3" class="mm-item"><span class="mm-label">Метрополитен</span></a></li>
<li><a href="/models.php?t=4" class="mm-item"><span class="mm-label">Монорельс</span></a></li>
<li><a href="/models.php?t=5" class="mm-item"><span class="mm-label">Фуникулёр</span></a></li>
<li><a href="/models.php?t=6" class="mm-item"><span class="mm-label">Транслор</span></a></li>
<li><a href="/models.php?t=7" class="mm-item"><span class="mm-label">Мувер (АТН)</span></a></li>
<li><a href="/models.php?t=8" class="mm-item"><span class="mm-label">Маглев</span></a></li>
<li><a href="/models.php?t=9" class="mm-item"><span class="mm-label">Электробус</span></a></li>
</ul>
</div>
</li>
<li><a href="#" onclick="return false" class="mm-item"><span class="mm-label">Города и системы</span></a>
<div>
<ul class="mm-level-3">
<li><a href="/networks.php?t=1" class="mm-item"><span class="mm-label">Трамвай</span></a></li>
<li><a href="/networks.php?t=2" class="mm-item"><span class="mm-label">Троллейбус</span></a></li>
<li><a href="/networks.php?t=3" class="mm-item"><span class="mm-label">Метрополитен</span></a></li>
<li><a href="/networks.php?t=4" class="mm-item"><span class="mm-label">Монорельс</span></a></li>
<li><a href="/networks.php?t=5" class="mm-item"><span class="mm-label">Фуникулёр</span></a></li>
<li><a href="/networks.php?t=6" class="mm-item"><span class="mm-label">Транслор</span></a></li>
<li><a href="/networks.php?t=7" class="mm-item"><span class="mm-label">Мувер (АТН)</span></a></li>
<li><a href="/networks.php?t=8" class="mm-item"><span class="mm-label">Маглев</span></a></li>
<li><a href="/networks.php?t=9" class="mm-item"><span class="mm-label">Электробус</span></a></li>
</ul>
</div>
</li>
<li><a href="/country/" class="mm-item"><span class="mm-label">Страны и регионы</span></a></li>
<li><a href="/update-v/" class="mm-item"><span class="mm-label">Изменения в базе данных</span></a></li>
</ul>
</div>
</li>
<li><a href="#" onclick="return false" class="mm-item"><span class="mm-label">Дополнительно</span></a> <li><a href="#" onclick="return false" class="mm-item"><span class="mm-label">Дополнительно</span></a>
<div> <div>
<ul class="mm-level-2"> <ul class="mm-level-2">
@ -75,7 +37,6 @@
</ul> </ul>
</div> </div>
</li> </li>
<li><a href="//forum.transphoto.org" class="mm-item"><span class="mm-label">Форум</span></a></li>
<li><a href="/search.php" class="mm-item"><span class="mm-label">Поиск</span></a> <li><a href="/search.php" class="mm-item"><span class="mm-label">Поиск</span></a>
<div> <div>
<ul class="mm-level-2"> <ul class="mm-level-2">