Advertisement
Guest User

Untitled

a guest
May 27th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1.  
  2. <?php
  3. include("../../config/config.php");
  4. include("../../config/functions.php");
  5. $username = $_POST["pseudo"];
  6. $password = $_POST["pass"];
  7. $query = mssql_query("SELECT * FROM PS_UserData.dbo.Users_Master WHERE UserID='$username' and Pw='$password'");
  8. if (mssql_num_rows($query) <= 0)
  9. {
  10. echo "fail";
  11. header("Location: http://148.251.190.110/US/");
  12. }
  13. else
  14. {
  15. $anfrage = mssql_query("SELECT UserUID FROM PS_UserData.dbo.Users_Master WHERE UserID = '$username'");
  16. if (!$anfrage)
  17. {
  18. die('MSSQL-Fehler: ' . mssql_get_last_message());
  19. }
  20. $datensatz = mssql_fetch_row($anfrage);
  21. $UserUID = $datensatz[0];
  22. session_start();
  23. $_SESSION['UserUID'] = $UserUID;
  24. $_SESSION['UserName'] = $username;
  25. }
  26. ?>
  27. <script language="JavaScript">
  28. var sec = 1;//Durée en secondes
  29. sec=sec*100;
  30. var wait=(window.location.href = "http://148.251.190.110/US/");
  31. setTimeout(wait,sec);
  32.  
  33.  
  34. </script>
  35. </div>
  36. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement