Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2.  
  3. include "dblogin.php";
  4.  
  5. if (isset($_POST['submitlogin'])) {
  6. if (($_POST['username']) && ($_POST['password'])) {
  7.    
  8.     $username = $_POST['username'];
  9.     $password = $_POST['password'];
  10.    
  11.     if ($username==($db_user||$db_user2)&&$password==$db_pass) {
  12.         $_SESSION['login'] == 1;
  13.         if (isset($_POST['submitimg']) && $_SESSION['login'] == 1) {
  14.    
  15.     //* A lot of code *\\
  16.    
  17. } ?>
  18.  
  19.  
  20. //* The session_start() is placed above the html tag. *\\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement