Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include("../../config/config.php");
- include("../../config/functions.php");
- $username = $_POST["pseudo"];
- $password = $_POST["pass"];
- $query = mssql_query("SELECT * FROM PS_UserData.dbo.Users_Master WHERE UserID='$username' and Pw='$password'");
- if (mssql_num_rows($query) <= 0)
- {
- echo "fail";
- header("Location: http://148.251.190.110/US/");
- }
- else
- {
- $anfrage = mssql_query("SELECT UserUID FROM PS_UserData.dbo.Users_Master WHERE UserID = '$username'");
- if (!$anfrage)
- {
- die('MSSQL-Fehler: ' . mssql_get_last_message());
- }
- $datensatz = mssql_fetch_row($anfrage);
- $UserUID = $datensatz[0];
- session_start();
- $_SESSION['UserUID'] = $UserUID;
- $_SESSION['UserName'] = $username;
- }
- ?>
- <script language="JavaScript">
- var sec = 1;//Durée en secondes
- sec=sec*100;
- var wait=(window.location.href = "http://148.251.190.110/US/");
- setTimeout(wait,sec);
- </script>
- </div>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement