Advertisement
george-goga

auth2.php

Aug 27th, 2023
1,794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. <?
  2. session_start();
  3. $_SESSION["login"];
  4. $_SESSION["password"];
  5.  
  6. include("functions.php");
  7.  
  8. connect();
  9.  
  10. function auth(){
  11.    
  12. if(($_SESSION["login"]||$_SESSION["password"])==null){
  13.             echo $auth_form;
  14.             }
  15.             else {
  16.              echo $_SESSION["login"];
  17.             }
  18.             if(isset($_POST["log_in"])&&isset($_POST["login"])&&isset($_POST["password"])!=null){
  19.                
  20.             if(($_POST["login"]&&$_POST["password"])==select()){
  21.            
  22.                     while($row=mysqli_fetch_assoc(select())){
  23.                        
  24.                   foreach($row as $res){
  25.                    
  26.                 echo $res;
  27.  
  28.                             }
  29.                          }    
  30.                      }
  31.                   }
  32.                }
  33.         auth();
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement