Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/emanoelgomes/public_html/eba/paineldecontrole/includes/header.php:1) in /home/emanoelgomes/public_html/eba/paineldecontrole/includes/header.php on line 1
- session_start();
- @$Usuario = $_SESSION["Usuario"];
- @$Senha = $_SESSION["Senha"];
- if (isset($Usuario) && isset($Senha)){
- header("Location: inicial.php");
- }
- require_once '../includes/configuration.php';
- $userName = $_POST["user-name"];
- $userPass = $_POST["user-pass"];
- $criptSen = hash("whirlpool", $userPass);
- @$rediURL = $_GET["url"];
- $SQL = mysql_query("SELECT Usuario, Senha FROM administradores WHERE Usuario='$userName' AND Senha='$criptSen' ");
- if(mysql_num_rows($SQL) != 0){
- session_start();
- $_SESSION['Usuario'] = $userName;
- $_SESSION['Senha'] = $criptSen;
- if(isset($rediURL)){
- header("Location: ../$rediURL");
- } else {
- header("Location: ../inicial.php");
- }
- } else {
- header("Location: ../index.php");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement