Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="description" content="KickedNetwork">
- <link rel="stylesheet" href="CSS_Files/Body_Format.css">
- </head>
- <body>
- <nav>
- <div class="topnav">
- <a href="index.html"><font color="FF00FF">Kicked Network</a>
- <a class="active" href="index.php">Home</a>
- <a href="#">Forums</a>
- <a href="#">Donations</a>
- <a href="#">Apply</a>
- <a href="#">About</a>
- <a href="#">Contact Us</a>
- <form action="#">
- <input id="right2" type="submit" name="register" value="Register">
- </form>
- <form>
- <input id="right2" type="submit" name="submit" value="Login">
- <input id="right" type="password" name="password" placeholder="Password">
- <input id="right" type="text" name="username" placeholder="Username">
- </form>
- </font>
- </nav>
- </div>
- <div>
- <img width="100%" height="320" src="img/banner.jpg">
- <p><b>
- <center><u><font color="0000FF"><h1>Server Status</u></center>
- <div>
- <center><font color="BBBB00"><h1>
- <p>
- <script type="text/javascript">
- //<![CDATA[
- try{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:"cf",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/dok9v=02fcfa4f56/"},atok:"9848c3d78ba1a15cf21436229451df3c",petok:"048a35fe6ae96387c911831bbab592e03754a611-1399735338-1800",zone:"factionsmc.net",rocket:"0",apps:{}}];CloudFlare.push({"apps":{"ape":"949d63a024fa26cd3cc918b8c8a1fc4d"}});!function(a,b){a=document.createElement("script"),b=document.getElementsByTagName("script")[0],a.async=!0,a.src="//ajax.cloudflare.com/cdn-cgi/nexp/dok9v=97fb4d042e/cloudflare.min.js",b.parentNode.insertBefore(a,b)}()}}catch(e){};
- //]]>
- </script>
- <link rel="shortcut icon" href="img/favicon.ico">
- <link href="css/bootstrap.min.css" rel="stylesheet">
- <link href="css/font-awesome.min.css" rel="stylesheet">
- <link href="css/custom.css" rel="stylesheet">
- <div class="progress progress-striped active">
- <div class="progress-bar" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
- <span class="sr-only"></span>
- <div class="PlayersOnline">Players:<span id="online"> 0</span></div>
- </div>
- </div>
- </style>
- <div id="topbarumc"><span class="ips" onclick="prompt('Copy and Paste this IP to connect to the server',this.innerHTML)">play.kickednetwork.com
- </span><div class="PlayersOnline">Players Online:<span id="online"> 0</span></div></div><div id="logo"></div>
- <script src="//use.edgefonts.net/bebas-neue.js"></script>
- <script>
- $(document).ready(function() {
- var ip = "play.kickednetwork.com";
- var xhr = new XMLHttpRequest();
- xhr.open("GET", "http://www.minecraft-api.com/v1/get/?server=" + ip, true);
- xhr.onreadystatechange = function() {
- if (xhr.readyState == 4) {
- data = JSON.parse(xhr.responseText);
- if (data.status) {
- $('#online').html(data.players.online);
- } else {
- $('#online').html(0);
- }
- }
- }
- xhr.send();
- });
- </script>
- <script language="javascript">
- function check(form)/*function to check userid & password*/
- {
- /*the following code checkes whether the entered username and password are matching*/
- if(form.username.value == "username" && form.password.value == "password")
- {
- window.open('target.html')/*opens the target page while Id & password matches*/
- }
- else
- {
- alert("You did not insert any fields in username or password!")/*displays error message*/
- }
- }
- </script>
- </div>
- </div>
- </body>
- </html>
- <?php //Start the Session
- session_start();
- require('connect.php');
- //3. If the form is submitted or not.
- //3.1 If the form is submitted
- if (isset($_POST['username']) and isset($_POST['password'])){
- //3.1.1 Assigning posted values to variables.
- $username = $_POST['username'];
- $password = $_POST['password'];
- //3.1.2 Checking the values are existing in the database or not
- $query = "SELECT * FROM `members` WHERE username='$username' and password='$password'";
- $result = mysqli_query($connection, $query) or die(mysqli_error($connection));
- $count = mysqli_num_rows($result);
- //3.1.2 If the posted values are equal to the database values, then session will be created for the user.
- if ($count == 1){
- $_SESSION['username'] = $username;
- }else{
- //3.1.3 If the login credentials doesn't match, he will be shown with an error message.
- $fmsg = "Invalid Login Credentials.";
- }
- }
- //3.1.4 if the user is logged in Greets the user with message
- header('Loction: home.php');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement