Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>RUS GOLD Faucet</title>
- <link rel="icon" href="favicon.ico">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
- <style>
- .nav {float: right; margin: 30px; margin-right: 45px;}
- .nav a { font-size: 25px;text-decoration:none;color: #000; font-family: Lucida Sans Unicode; font-weight: normal;} .nav a:hover {opacity:.5;}
- .logo {float: left;}
- button{background-color:#5E0000;color:white;padding:14px 20px;margin:8px 0;border:0;cursor:pointer;width:20%;opacity:.9}
- button:hover{opacity:1}
- .profile {width: 35%; height: 400px; float: left; margin-left: 20px;}
- .profile h2 {font-family:arial; margin-top: 15px; font-size: 35px; text-align: center;}
- .auto {width: 50%; height: 400px; float: right; margin-right: 20px;}
- .auto h2 {font-family:arial; margin-top: 15px; font-size: 35px; text-align: center;}
- .auto input {float:right; padding: 15px; margin-right: 100px; border: none;border-bottom: 1px solid #ccc; width: 60%;}
- </style>
- </head>
- <body>
- <?php
- if ( isset($_GET['success']) && $_GET['success'] == 1 )
- {
- echo ("<script LANGUAGE='JavaScript'>
- window.alert('You Are Successfully Registered. Now Please Login');
- window.location.href='faucet.php';
- exit();
- </script>");
- }
- ?>
- <div class="logo">
- <img style="height: 80px;" src="rus_logo.png">
- <p style="margin-top: -15px; margin-left: 60px; opacity: 0.7;">beta</p>
- </div><div class="nav"><a href="index.php">Claim RUS GOLD</a></div><br><br>
- </div><br><br><br><br><br><br><br><br><br>
- <div class="profile">
- <h2>Profile</h2><hr style="width: 80%;"></center><br><br>
- <h3 style="float: left; margin-left: 80px;font-family:Lucida Sans Unicode;font-weight: normal;">UserName: <?php echo $_SESSION['username'] ?></h3>
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "";
- $dbname = "izaya";
- // Create connection
- $conn = new mysqli($servername, $username, $password, $dbname);
- $user = $_SESSION['username'];
- $hi = mysqli_query($conn, "SELECT sum(points) from points WHERE username='$user'");
- $ji = mysqli_fetch_array($hi);
- ?>
- <h3 style="float: left; margin-left: 80px;font-family:Lucida Sans Unicode;font-weight: normal;">Earned RUS GOLD Tokens: <?php echo $ji[0]; ?></h3><br>
- </div>
- <div class="auto">
- <h2>RUS GOLD Withdrawal</h2><hr style="width: 80%;"></center><br><br>
- <form method="POST">
- <input type="text" name="id" placeholder="Enter Waves Wallet Id..." required><br><br><br><br><br>
- <input type="number" min="100" name="amount" placeholder="Enter Withdrawal RUS GOLD Amount..." required><br><br><br><br><br>
- <button name="submit" style="background-color:#4CAF50;color:white;padding:14px 20px;border:0;cursor:pointer;width:30%;opacity:.9;float:right; margin-right: 100px;">Withdraw RUS GOLD</button>
- <?php
- if (isset($_POST['submit'])) {
- $user = $_SESSION['username'];
- $id = $_POST['id'];
- $with = $_POST['amount'];
- $servername = "localhost";
- $username = "root";
- $password = "";
- $dbname = "izaya";
- // Create connection
- $conn = new mysqli($servername, $username, $password, $dbname);
- $user = $_SESSION['username'];
- $hi = mysqli_query($conn, "SELECT sum(points) from points WHERE username='$user'");
- $ji = mysqli_fetch_array($hi);
- if ($ji[0] > $with) {
- include 'test4.php';
- }
- else { ?>
- <script>alert("Insufficent Balance");</script>
- <?php
- }
- }
- ?>
- </form>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment