Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. <?php
  2. session_start();
  3.  
  4. $errorMessage = "";
  5. header('Content-Type: text/html; charset=utf-8');
  6.  
  7. include_once('language.php');
  8.  
  9. if (isset($_SESSION['logged_in']) && $_SESSION['logged_in'] === true) {
  10. header('Location: index.php');
  11. }
  12.  
  13. require_once('config.php');
  14. if (isset($_POST['Username']) && isset($_POST['Password'])){
  15. $log_username = $_POST['Username'];
  16. $log_password = $_POST['Password'];
  17.  
  18. if($log_username == $username && $log_password == $password){
  19. $_SESSION['logged_in'] = true;
  20. header('Location: index.php');
  21. }else{
  22. $errorMessage="Wrong username/password.";
  23. }
  24. }
  25.  
  26. require_once("config.php");
  27.  
  28. $db = new mysqli($mysql_host, $mysql_user, $mysql_password) or die(__LINE__ . ' Invalid connect: ' . mysqli_error());
  29. $db->select_db($mysql_database) or die( "Unable to select database. Run setup first.");
  30.  
  31. $stmt = $db->prepare("SELECT * FROM messages WHERE status = 0");
  32. $success = $stmt->execute();
  33. $stmt->store_result();
  34. $num_rows_victim = $stmt->num_rows;
  35. $stmt->close();
  36.  
  37. [04-Dec-2016 11:15:26 Europe/Moscow] PHP Fatal error: Class '[obfuscated]' not found in /home/u6820440/public_html/test/index.php on line 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement