File manager - Edit - /home/webtrixia/mynetronix.webtrixia.com/login.php
Back
<?php require_once __DIR__ . '/includes/config.php'; require_once __DIR__ . '/includes/db.php'; require_once __DIR__ . '/includes/auth.php'; if (!empty($_SESSION['client_id'])) { header('Location: ' . SITE_URL . '/dashboard.php'); exit; } $error = ''; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $num = trim($_POST['client_number'] ?? ''); $pass = $_POST['password'] ?? ''; if (client_login($num, $pass)) { header('Location: ' . SITE_URL . '/dashboard.php'); exit; } $error = 'Грешен клиентски номер или парола.'; } ?><!DOCTYPE html> <html lang="bg"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Вход — Netronix</title> <link rel="stylesheet" href="<?= SITE_URL ?>/assets/css/style.css"> </head> <body> <div class="login-wrap"> <div class="login-box"> <div class="login-logo"> <img src="<?= SITE_URL ?>/assets/logo.png" alt="Netronix" style="max-width:200px;width:100%;margin-bottom:10px"> <p>Клиентски портал</p> </div> <h2>🔐 Вход в профила</h2> <?php if ($error): ?> <div class="alert alert-danger"><?= htmlspecialchars($error) ?></div> <?php endif; ?> <form method="POST" autocomplete="off"> <div class="form-group"> <label>Клиентски номер</label> <input type="text" name="client_number" placeholder="напр. 10001" value="<?= htmlspecialchars($_POST['client_number'] ?? '') ?>" required autofocus> </div> <div class="form-group"> <label>Парола</label> <input type="password" name="password" placeholder="••••••••" required> </div> <button type="submit" class="login-submit">Влез в профила →</button> </form> <div class="register-link"> Нямате акаунт? <a href="<?= SITE_URL ?>/register.php">Регистрирайте се</a> </div> </div> </div> </body></html>
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0 |
proxy
|
phpinfo
|
Settings