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/jservices_cz/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /volume1/web/jservices_cz/udrzba.php
<?php
/**
 * Režim údržby / zaheslovaný náhled webu.
 * Zapíná/vypíná se a heslo se nastavuje v administraci (nastaveni.udrzba_aktivni / udrzba_heslo_hash).
 *
 * DŮLEŽITÉ: include na úplný začátek index.php, PŘED jakýmkoliv výstupem
 * (kvůli header() redirectu nesmí před <?php require ... žádný znak, mezera ani prázdný řádek).
 */

require_once __DIR__ . '/config.php';

$udrzbaAktivni = nacti_nastaveni($pdo, 'udrzba_aktivni', '0') === '1';

if ($udrzbaAktivni && empty($_SESSION['udrzba_ok'])) {

    $chyba = '';

    if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['udrzba_heslo'])) {
        $hash = nacti_nastaveni($pdo, 'udrzba_heslo_hash', '');
        if ($hash !== '' && password_verify($_POST['udrzba_heslo'], $hash)) {
            $_SESSION['udrzba_ok'] = true;
            header('Location: ' . $_SERVER['REQUEST_URI']);
            exit;
        }
        $chyba = 'Nesprávné heslo, zkuste to znovu.';
    }
    ?>
<!DOCTYPE html>
<html lang="cs">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="robots" content="noindex, nofollow">
    <title>Stránky se připravují | J Services</title>
    <style>
        * { box-sizing: border-box; }
        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background: #FAF9F5;
            color: #2A2A2A;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }
        .karta {
            background: #FFFFFF;
            border: 0.5px solid #E5E7EB;
            border-radius: 12px;
            padding: 2.5rem 2rem;
            max-width: 380px;
            width: 100%;
            text-align: center;
        }
        .logo { font-size: 16px; font-weight: 600; margin-bottom: 1.5rem; }
        .logo .tecka { color: #1C75BC; }
        h1 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
        p { font-size: 13.5px; color: #6B6B6B; margin: 0 0 20px; line-height: 1.6; }
        input[type="password"] {
            width: 100%;
            padding: 10px 12px;
            font-size: 14px;
            border: 0.5px solid #D7DADE;
            border-radius: 8px;
            margin-bottom: 12px;
        }
        button {
            width: 100%;
            background: #2A2A2A;
            color: #FFFFFF;
            border: none;
            padding: 10px;
            font-size: 14px;
            border-radius: 8px;
            cursor: pointer;
        }
        button:hover { background: #1A1A1A; }
        .chyba { color: #A32D2D; font-size: 12.5px; margin: -8px 0 14px; }
    </style>
</head>
<body>
    <div class="karta">
        <div class="logo">J Services</div>
        <h1>Stránky se připravují</h1>
        <p>Pracujeme na nové verzi webu. Pokud máte přístupové heslo, zadejte ho níže.</p>
        <form method="post">
            <?php if ($chyba !== ''): ?>
                <div class="chyba"><?= htmlspecialchars($chyba) ?></div>
            <?php endif; ?>
            <input type="password" name="udrzba_heslo" placeholder="Heslo" required autofocus>
            <button type="submit">Vstoupit</button>
        </form>
    </div>
</body>
</html>
    <?php
    exit;
}

Youez - 2016 - github.com/yon3zu
LinuXploit