jun 18
This commit is contained in:
@@ -5,7 +5,6 @@ require_once 'core.inc.php';
|
||||
|
||||
if (loggedin()) {
|
||||
$name = getuserfield('name');
|
||||
// echo ' You are logged in '. $name.' <a href="logout.php">Log out</a><br>';
|
||||
header('Location: ../index.php');
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ if (isset($_POST['email']) && isset($_POST['password'])) {
|
||||
if ($query_num_rows == 0) {
|
||||
echo 'invalid email/password combination';
|
||||
} else if ($query_num_rows == 1) {
|
||||
//treba nam $user_id
|
||||
$row = mysqli_fetch_assoc($query_run);
|
||||
$user_id = $row['id'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user