Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL); ini_set('display_errors', '1');
- session_start();
- require_once 'db.php';
- function mod($isMod) {
- switch($isMod) {
- case 0: return "You are NOT Moderator";
- case 1: return "You are Moderator";
- }
- }
- if (isset($_POST['submit'])) {
- $name = $_POST["name"];
- $password = md5($_POST['password']);
- $submit = $_POST["submit"];
- $name = mysqli_real_escape_string($db, $name);
- $name = addslashes($_POST['name']);
- $sql = $db->prepare("SELECT * FROM users WHERE username = ?");
- $sql->bind_param("s", ($_SESSION['name']));
- $sql->fetch();
- $sql->execute();
- $sqlz = $db->prepare("SELECT * FROM users WHERE username = ?");
- $sqlz->bind_param("s", ($_SESSION['name']));
- $sqlzz->num_rows();
- $resultd = $sqlz->get_result();
- if($submit)
- {
- if($name && $password)
- {
- if($sqlzz->num_rows == 1)
- {
- while($row = $resultd->fetch_assoc()) { }
- {
- $dbname = $row['name'];
- $dbpassword = $row['password'];
- }
- if($name == $dbname && $password == $dbpassword)
- {
- $_SESSION['name'] = $name;
- }
- else
- {
- echo('
- <p style="font-family:Geneva;color:#ff0000;">The password you entered is wrong.</p>
- ');
- }
- }
- else
- {
- echo('
- <p style="font-family:Geneva;color:#ff0000;">The name you entered does not exist.</p>
- ');
- }
- }
- else
- {
- echo('
- <p style="font-family:Geneva;color:#ff0000;">Please enter all the required information.</p>
- ');
- }
- }
- $sqlzddd = $db->prepare("SELECT * FROM users WHERE username = ?");
- $sqlzdd->bind_param("s", ($_SESSION['name']));
- $result = $sqlzddd->get_result();
- $rose = $result->fetch_assoc();
- if(!isset($_SESSION['name']))
- ?>
- <head>
- <meta name="keywords" content="iwaddle, cpps, cpps.me, rile5.com, cppses, club penguin private server, icpps" />
- <meta name="description" content="iWaddle, the Club Penguin Private Server" />
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <title>iWaddle - A Club Penguin Private Server</title>
- <link href="style.css" rel="stylesheet" type="text/css" media="all" /><style>#button{color:white; background: 27AAD6; border-radius:5px; border: 3px solid #FFFFFF; margin-top: 10px; margin-left: 550px;} form{border: solid 2px #0E97C4; background: #1BAFE0 url('igloo.png') no-repeat top; padding-left: 10px; padding-top: 10px; padding-bottom: 10px; color: white; border-radius: 15px;} li{padding-left: 20px;} input{border-radius: 15px; border: none; height: 30px; margin-bottom: 10px;} </style>
- </head>
- <body>
- <center><div id="menu">
- <ul>
- <li><a accesskey='1' href='http://iwaddle.me' title=''>Home</a></li>
- <li><a accesskey='2' href='http://secure.iwaddle.me/register' title=''>Register</a></li>
- <li><a accesskey='3' href='http://secure.iwaddle.me/manage' title=''>Manager</a></li>
- <li><a accesskey='4' href='http://play.iwaddle.me' title=''>Play</a></li>
- <li><a accesskey='5' href='http://blog.iwaddle.me' title=''>News</a></li>
- <li><a accesskey='6' href='http://twitter.com/iwaddleme' title=''>Follow Us</a></li>
- </ul>
- </div></center>
- <div id="page-wrapper">
- <center>
- <div id="main">
- <div class="right">
- <h3>Read the Blog</h3>
- <a href="http://blog.iwaddle.me"><img src="blog.png" width="45%" style="margin-left: 68px;"></a>
- <h3>Latest Updates</h3>
- <div id="body-text">The server should be back online late tomorrow night. <p>All accounts were deleted, so you will need to sign up again. All paid Moderators will be sent instructions on how to get their rank back. <p>Once again, we are sorry for the inconvenience caused.</div>
- </div>
- <p>
- <div class="left">
- <h2>Login</h2>
- <p>
- <div id="body-text">
- <form action="" method="POST">
- <h4>Penguin Name</h4>
- <input type="text" name="name">
- <h4>Password</h4>
- <input type="password" name="password"><h4></h4>
- <input type="submit" name="submit" value="Login" id="button">
- </form>
- </div>
- </div>
- <center>
- <footer>
- <ul>
- <li><a href="/about">About Us</a></li>
- <li><a href="/commands">Commands</a></li>
- <li><a href="/contact">Contact Us</a></li>
- <li><a href="/items">Custom Items</a></li>
- <li><a href="http://secure.iwaddle.me/manage">Buy Moderator</a></li>
- <li><a href="/rules">Rules</a></li>
- </ul>
- <p>Copyright © 2012 - 2013 iWaddle Some rights reserved.
- </footer>
- </center>
- </div>
- </center>
- </div>
- </body>
- </html>
- <html>
- <title>iWaddle - A Club Penguin Private Server</title>
- <head>
- <style>
- body { background: #0074c7; font-family: 'arial';}
- #left-bar-box1 { background: #FFF; border-radius: 15px; width: 280px; height: 200px; margin-right: 10px; -moz-box-shadow: 0 0 20px #888; -webkit-box-shadow: 0 0 20px #888; box-shadow: 0 0 20px #888; padding-top: 10px; padding-left: 10px; padding-right: 10px;}
- #left-bar-box2 { background: #FFF; border-radius: 15px; width: 280px; height: 310px; margin-top: 20px; -moz-box-shadow: 0 0 20px #888; -webkit-box-shadow: 0 0 20px #888; box-shadow: 0 0 20px #888; padding-top: 10px; padding-left: 10px; padding-right: 10px;}
- #main-bar-box1 { background: #FFF; border-radius: 15px; width: 630px; height: 200px; margin-left: 10px; -moz-box-shadow: 0 0 20px #888; -webkit-box-shadow: 0 0 20px #888; box-shadow: 0 0 20px #888; padding-top: 10px; padding-left: 10px; padding-right: 10px;}
- #main-bar-box2 { background: #FFF; border-radius: 15px; width: 630px; height: 310px; margin-left: 10px; margin-top: 20px; -moz-box-shadow: 0 0 20px #888; -webkit-box-shadow: 0 0 20px #888; box-shadow: 0 0 20px #888; padding-top: 10px; padding-left: 10px; padding-right: 10px;}
- table { margin-top: 100px;}
- footer { color: #FFF; font-family: 'arial'; margin-top: 30px; text-align: center;}
- #title { font-family: 'arial'; font-weight: bold; }
- a:link {color:#FFFFFF; text-decoration: none;}
- #a:visited {color:#FFFFFF; text-decoration: none;}
- #details { margin-top: 0px; color: #FFF;}
- #box-container { background: #177CBF; color: #FFFFFF; border-radius: 10px; padding: 4px 4px 4px 4px; }
- img { margin-left: 10px;}
- #textup {margin-left: 30px;}
- #text {margin-left: 260px;}
- </style>
- </head>
- <body>
- <center><table border="0">
- <tr>
- <td><div id="left-bar-box1"><center><span id="title">Welcome, <?php echo $_SESSION['name']; ?></span><p>
- <div id="box-container">Welcome to the Manager, <?php echo $_SESSION['name']; ?>! Here you can edit your Account settings, and purchase Upgrades for your penguin. <p>
- <a href="logout.php"><strong>Logout</strong></a><div>
- </center></div></td>
- <td><div id="main-bar-box1"><span id="title">Penguin Info</span><img src="penguin.png" width="auto" height="15px"><p>
- <div id="box-container"><table border="0" id="details">
- <tr>
- <td><strong>ID</strong> : <? echo ($crumbs["idk"]); ?></td>
- <td><div id="text"><strong>Hands</strong> : <? echo ($crumbs["hands"]); ?></div></td>
- </tr>
- <tr>
- <td><strong>Color</strong> : <? echo ($crumbs["color"]); ?></td>
- <td><div id="text"><strong>Feet</strong> : <? echo ($crumbs["feet"]); ?></div></td>
- </tr>
- <tr>
- <td><strong>Head</strong> : <? echo ($crumbs["head"]); ?></td>
- <td><div id="text"><strong>Background</strong> : <? echo ($crumbs["photo"]); ?></div></td>
- </tr>
- <tr>
- <td><strong>Face</strong> : <? echo ($crumbs["face"]); ?></td>
- <td><div id="text"><strong>Namecolor</strong> : #FFFFFF</div></td>
- </tr>
- <tr>
- <td><strong>Neck</strong> : <? echo ($crumbs["neck"]); ?></td>
- <td><div id="text"><strong>Nameglow</strong> : #000000</div></td>
- </tr>
- <tr>
- <td><strong>Body</strong> : <? echo ($crumbs["body"]); ?></td>
- <td><div id="text"><strong><? echo mod($crumbs["ismod"]); ?></strong></div></td>
- </tr>
- </table><div>
- </div></td>
- </tr>
- <tr>
- <td><div id="left-bar-box2"><span id="title">Account Settings</span><img src="settings.png" width="auto" height="15px"><p>
- <form action="pass.php" method="POST">
- <div id="box-container"><strong>Change Password</strong><p>
- <input type="text" name="username" value="<?php echo $_SESSION['name']; ?>" style="width: 0px; height: 0px; border: 0px;">
- Current Password :<center><input type="password" name="pass" style="margin-top: -10px; margin-bottom: -10px; border-radius: 15px; border: 0px;"></center><p>
- New Password :<center><input type="password" name="pass2" style="margin-top: -10px; margin-bottom: -10px; border-radius: 15px; border: 0px;"></center><p>
- Confirm New Password :<center><input type="password" name="pass2" style="margin-top: -10px; margin-bottom: -10px; border-radius: 15px; border: 0px;"></center><p>
- <input type="submit" name="submit" value="Change" style="margin-left: 180px; background: #FFFFFF; border-radius: 10px; width: 70px; border: 0px;">
- </form>
- <div>
- </div></td>
- <td><div id="main-bar-box2"><span id="title">Upgrades</span><p>
- <div id="box-container">
- <table border="0" id="details">
- <tr>
- <td><center><strong>Upgrade</center></strong></td>
- <td><center><strong>Decription</center></strong></td>
- <td><center><strong>Price</center></strong></td>
- </tr>
- <tr>
- <td>Moderator</td>
- <td><div id="textup">Makes you a Moderator on iWaddle</div></td>
- <td><div id="textup">$4<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
- <input type="hidden" name="cmd" value="_s-xclick">
- <input type="hidden" name="hosted_button_id" value="7P5WH4MY3U9CS">
- <input type="hidden" style="width:0; height: 0;" name="on0" value="Penguin Name : <?php echo $_SESSION['name']; ?>">
- </div>
- </td>
- <td>
- <input type="submit" value="Buy" border="0" name="submit" alt="iWaddle - Moderator Purchase" style="margin-left: 180px; background: #FFFFFF; border-radius: 10px; width: 70px; border: 0px;">
- <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="0" height="0">
- </form>
- </td>
- </tr>
- <tr>
- <td>Nameglow</td>
- <td><div id="textup">Makes your Penguin Name Glow</div></td>
- <td><div id="textup">$2<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
- <input type="hidden" name="cmd" value="_s-xclick">
- <input type="hidden" name="hosted_button_id" value="QEC88RBNRUUY6">
- <input type="hidden" style="width:0; height: 0;" name="on0" value="Penguin Name : <?php echo $_SESSION['name']; ?>">
- </div>
- </td>
- <td>
- <input type="submit" value="Buy" border="0" name="submit" alt="iWaddle - Moderator Purchase" style="margin-left: 180px; background: #FFFFFF; border-radius: 10px; width: 70px; border: 0px;">
- <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="0" height="0">
- </form>
- </td>
- </div></td>
- </tr>
- <tr>
- <td>Bubblecolor</td>
- <td><div id="textup">Gives your Penguin a Colored Chat Bubble</div></td>
- <td><div id="textup">$2<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
- <input type="hidden" name="cmd" value="_s-xclick">
- <input type="hidden" name="hosted_button_id" value="ECUFM29VQ4E6U">
- <input type="hidden" style="width:0; height: 0;" name="on0" value="Penguin Name : <?php echo $_SESSION['name']; ?>">
- </div>
- </td>
- <td>
- <input type="submit" value="Buy" border="0" name="submit" alt="iWaddle - Moderator Purchase" style="margin-left: 180px; background: #FFFFFF; border-radius: 10px; width: 70px; border: 0px;">
- <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="0" height="0">
- </form>
- </td>
- </div></td>
- </tr>
- <tr>
- <td>Bubble Glow</td>
- <td><div id="textup">Makes your Chat Bubble glow</div></td>
- <td><div id="textup">$3<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
- <input type="hidden" name="cmd" value="_s-xclick">
- <input type="hidden" name="hosted_button_id" value="5FJ6T6D6Z4KDG">
- <input type="hidden" style="width:0; height: 0;" name="on0" value="Penguin Name : <?php echo $_SESSION['name']; ?>">
- </div>
- </td>
- <td>
- <input type="submit" value="Buy" border="0" name="submit" alt="iWaddle - Moderator Purchase" style="margin-left: 180px; background: #FFFFFF; border-radius: 10px; width: 70px; border: 0px;">
- <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="0" height="0">
- </form>
- </td>
- </div></td>
- </tr>
- </table><div>
- <div>
- </div></td>
- </tr>
- </table></center>
- </body>
- <footer>Need help? Contact <a href="mailto:support@iwaddle.me">support@iwaddle.me</a></footer>
- </html>
- <?php
- }
- ?>
Add Comment
Please, Sign In to add comment