Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head><title>Justice Signup</title></head>
- <body>
- <?php
- if(!isset($_COOKIE['Username']) and !isset($_COOKIE['Password'])){
- // DO NOTHING
- }else{
- //Below alerts the user if they aren't logged in. It also makes the window go back.
- echo <<<EOF
- <script>
- alert("You are already logged in!");
- location = "/";
- </script>
- EOF;
- }
- ?>
- <?php
- if(isset($_COOKIE["Username"]) and isset($_COOKIE["Password"])) {
- ?>
- <div style="background-color:blue;float:right;" class="Profile">
- <h2 class="profile">Profile Options</h2>
- <div class="Options">
- <h3 style="text-align:center;"><a href="/Settings.php"><button style="border-color:cyan;background-color:cyan;">User Information</button></a></h3>
- <h3 style="text-align:center;"><a href="/Logoff.php"><button style="border-color:cyan;background-color:cyan;">Log Off</button></a></h3>
- </div>
- </div>
- <?php
- } else {
- ?>
- <div style="background-color:blue;float:right;" class="Login">
- <h2 class="login"><a href="/Access"><button style="border-color:cyan;background-color:cyan;">Login / Signup</button></a></h2>
- </div>
- <?php
- }
- ?>
- <h1>The Justice Signup</h1>
- <h2>Signup to the Justice Engine to get all the latest news and games! Plus get some Purchasable Games <b>FREE!</b></h2>
- <form action="cuser.php" method="post">
- Username: <input type="text" name="uname"><br>
- Password: <input type="password" name="pass"><br>
- <input type="submit" value="Submit Account">
- <h3>By clicking Submit Account, you are agreeing to our <a href="/Policy">Privacy Policy.</a></h3>
- </form>
- <br>
- <h2>
- <?php
- error_reporting(0);
- $fi = new FilesystemIterator(Users, FilesystemIterator::SKIP_DOTS);
- printf("%d people have signed up to The Justice Engine!", iterator_count($fi));
- $myfile = fopen("UserCount.txt", "w") or die("Unable to open file!");
- $txt = iterator_count($fi);
- fwrite($myfile, $txt);
- ?>
- </h2>
- <br>
- <br>
- <a href="/"><button>Go Back To Home Page</button></a>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement