diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2017-06-29 13:04:54 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2017-06-29 13:04:54 +0300 |
| commit | b54a6d3e68c97c73af4d5e1a6288e8b257cbd517 (patch) | |
| tree | 5b33a3b88e7a1abb68949f1111f2753b5719fd21 /login.php | |
| parent | 131e407e1bdbc6fd9e51d8bf695610d5676e6f66 (diff) | |
| download | the-epube-b54a6d3e68c97c73af4d5e1a6288e8b257cbd517.tar.gz the-epube-b54a6d3e68c97c73af4d5e1a6288e8b257cbd517.tar.xz | |
don't start sessions needlessly
Diffstat (limited to 'login.php')
| -rw-r--r-- | login.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/login.php b/login.php index ddb25b5..6adf038 100644 --- a/login.php +++ b/login.php @@ -1,6 +1,5 @@ <?php require_once "config.php"; - require_once "sessions.php"; @$op = $_REQUEST["op"]; @@ -13,6 +12,8 @@ $res = $dbh->query("SELECT id FROM epube_users WHERE user = '$user' AND pass = '$password'"); if ($line = $res->fetchArray(SQLITE3_ASSOC)) { + require_once "sessions.php"; + $_SESSION["owner"] = $user; header("Location: index.php"); } |
