403Webshell
Server IP : 193.86.120.172  /  Your IP : 216.73.216.215
Web Server : Apache/2.4.63 (Unix)
System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64
User : kubec ( 1026)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /volume1/web/hotellesnizatisi_cz/new/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /volume1/web/hotellesnizatisi_cz/new/login.php
<?php
require_once __DIR__ . '/includes/auth.php';

// Pokud je uživatel už přihlášený, rovnou ho pošleme do administrace
if ($u = auth_user()) {
    header('Location: ' . home_url_for_user($u));
    exit;
}

$error = null;

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    $username = trim($_POST['username'] ?? '');
    $password = $_POST['password'] ?? '';

    if ($username === '' || $password === '') {
        $error = 'Vyplňte uživatelské jméno i heslo.';
    } elseif (auth_login($username, $password)) {
        header('Location: ' . home_url_for_user(auth_user()));
        exit;
    } else {
        $error = 'Nesprávný e-mail nebo heslo.';
    }
}
?>
<!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Přihlášení — Administrace Lesní zátiší</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap" rel="stylesheet">
<style>
  :root{
    --bg:#F4F2EC; --surface:#FFFFFF; --border:#E4E0D2;
    --ink:#232A1F; --ink-soft:#6B7263;
    --accent:#C2884F; --accent-dark:#9C6E3F;
    --red:#B4543C; --red-soft:#F5E4DF;
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  body{
    font-family:"Work Sans",sans-serif; background:var(--bg); color:var(--ink);
    min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px;
  }
  .card{
    background:var(--surface); border:1px solid var(--border); border-radius:10px;
    width:100%; max-width:380px; padding:36px 32px; box-shadow:0 10px 40px rgba(35,42,31,.08);
  }
  .card h1{font-size:1.2rem; font-weight:700; margin-bottom:4px;}
  .card .sub{
    font-family:"IBM Plex Mono",monospace; font-size:.7rem; letter-spacing:.1em; text-transform:uppercase;
    color:var(--accent-dark); margin-bottom:28px;
  }
  .field{margin-bottom:16px;}
  .field label{display:block; font-size:.8rem; font-weight:600; color:var(--ink-soft); margin-bottom:6px;}
  .field input{
    width:100%; padding:11px 13px; border:1px solid var(--border); border-radius:6px;
    background:var(--bg); font-family:inherit; font-size:.92rem; color:var(--ink);
  }
  .field input:focus{outline:2px solid var(--accent); outline-offset:1px;}
  .btn{
    width:100%; padding:12px; margin-top:6px; border:none; border-radius:6px;
    background:var(--ink); color:#fff; font-weight:600; font-size:.92rem; cursor:pointer;
  }
  .btn:hover{background:#1a201a;}
  .error{
    background:var(--red-soft); color:var(--red); border-radius:6px; padding:10px 13px;
    font-size:.82rem; margin-bottom:18px;
  }
</style>
</head>
<body>
  <div class="card">
    <h1>Lesní zátiší</h1>
    <div class="sub">Administrace</div>

    <?php if ($error): ?>
      <div class="error"><?= htmlspecialchars($error) ?></div>
    <?php endif; ?>

    <form method="post" novalidate>
      <div class="field">
        <label for="username">Uživatelské jméno</label>
        <input type="text" id="username" name="username" required autofocus value="<?= htmlspecialchars($_POST['username'] ?? '') ?>">
      </div>
      <div class="field">
        <label for="password">Heslo</label>
        <input type="password" id="password" name="password" required>
      </div>
      <button type="submit" class="btn">Přihlásit se</button>
    </form>
  </div>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit