Ver a proveniência

removed static variables

development
mauirixxx há 8 anos
ascendente
cometimento
df0edb595f
1 ficheiros alterados com 0 adições e 2 eliminações
  1. +0
    -2
      gw-login.php

+ 0
- 2
gw-login.php Ver ficheiro

@@ -6,9 +6,7 @@ if (isset($_SESSION['userid']) && ($_SESSION['access'])){
include_once 'gw-connect.php'; include_once 'gw-connect.php';
$con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME); $con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME);
$username = mysqli_real_escape_string($con, $_POST['username']); //enable this after username form is built $username = mysqli_real_escape_string($con, $_POST['username']); //enable this after username form is built
//$username = 'mauirixxx'; //delete this line after the above is finished
$password = mysqli_real_escape_string($con, $_POST['password']); //enable this after password form is built $password = mysqli_real_escape_string($con, $_POST['password']); //enable this after password form is built
//$password = 'drx9175l';
$password = md5($password); $password = md5($password);
if ($con->connect_errno > 0){ if ($con->connect_errno > 0){
die ('Unable to connect to database [' . $db->connect_errno . ']'); die ('Unable to connect to database [' . $db->connect_errno . ']');


Carregando…
Cancelar
Guardar