Advertisement
aridho

panellogin

Mar 22nd, 2018
827
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.76 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. include 'conf/config.php';
  4. session_start();
  5.  
  6. if($_SESSION['user'] != ""){
  7.     header("location: $account_is_on");
  8. }
  9. ?>
  10. <?php
  11. $pass = $_POST['password'];
  12. if(isset($_POST['submit'])){
  13.    
  14.    
  15.    
  16.     if($pass == $password){
  17.    
  18.     session_start();
  19.     $_SESSION['user'] = $pass;
  20.     header("location: $account_is_on");
  21.     }
  22.     else{
  23.         echo '<p> <font color="red">'.$wrong_password_Error.'<br></font></p>';
  24.     }
  25.    
  26.    
  27. }
  28. if(isset($_GET['pass'])){
  29. $pass = $_GET['pass'];
  30. if($pass == 'reset'){
  31.     $subject = "reset password";
  32.     $text = "
  33.     hi dear $name ,
  34.     your password is ".$password;
  35.     mail($your_email, $subject, $text);
  36.     echo '<font color="red"><p>'.$help.'</p></font>';
  37. }
  38.  
  39. }
  40. ?>
  41. <html>
  42. <head>
  43.   <title>17+_Shop</title>
  44.   <link rel="stylesheet" href="style.css" />
  45. </head>
  46. <body>
  47.  
  48.   <div id="login_div" class="main-div">
  49.     <h3>Web Panel Login</h3>
  50.     <input class="sub" type="email" placeholder="Email..." id="email_field" />
  51.     <input class="sub" type="password" placeholder="Password..." id="password_field" />
  52.  
  53.     <button onclick="login()">Login to Account</button>
  54.   </div>
  55.  
  56.   <div id="user_div" class="loggedin-div">
  57.     <a>Welcome 17+ please enter your key Token .</a>
  58.  
  59.     <p id="user_para">Welcome to 17+ web login Example. You're currently logged in.</p>
  60.     </span>
  61. <form action="" method="post">
  62. <input type="password" class="pass" placeholder="xxxx-xxxx-xxxx-xxxx" required name="password"><br><br>
  63. <input type="submit" name="submit" value="Acces Token" class="sub">
  64. </form>
  65.     <button class="sub" onclick="logout()">Logout</button>
  66.   </div>
  67.  
  68.  
  69. <script src="https://www.gstatic.com/firebasejs/4.11.0/firebase.js"></script>
  70. <script>
  71.   // Initialize Firebase
  72.   var config = {
  73.     apiKey: "AIzaSyDlKgx1iODZA2KyIirKbRwkJ1DmEx87IQQ",
  74.     authDomain: "borneo-shop.firebaseapp.com",
  75.     databaseURL: "https://borneo-shop.firebaseio.com",
  76.     projectId: "borneo-shop",
  77.     storageBucket: "borneo-shop.appspot.com",
  78.     messagingSenderId: "933927959365"
  79.   };
  80.   firebase.initializeApp(config);
  81. </script>
  82.   <script src="style.js"></script>
  83.  
  84. </body>
  85. </html>
  86. <html>
  87. <head>
  88.     <title>17+</title>
  89.  
  90. </head>
  91. <body>
  92.     <center>
  93.     <a>Project   Panel 17 + | Apple Scamp<a>
  94. <center>
  95.     <style>
  96. *{
  97.     text-decoration:none;
  98.     outline:0px;
  99. }
  100. body{
  101.     background-color:black;
  102.     color:#00FF00;
  103.     font-family:courier;
  104.     margin-top:8%;
  105. }
  106. .pass{
  107.     color:#00FF00;
  108.     background:black;
  109.     width:100%;
  110.     padding:8px;
  111.     outline:0px;
  112.     border:1px solid green;
  113.         margin:1%;
  114. }
  115. span{
  116.     margin-top:6%;
  117.     margin:3%;
  118.     color:#00FF00;
  119.     width:43%;
  120.     text-align:left;
  121.     display:block;
  122. }
  123. .sub{
  124.  
  125.     color:#00FF00;
  126.     background:black;
  127.     width:40%;
  128.     padding:8px;
  129.     outline:0px;
  130.     border:1px solid green;
  131.    
  132. }
  133. </style>
  134. </center>
  135. </body>
  136. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement