Skip to content
Snippets Groups Projects
Commit bf05e343 authored by Christoph Zysik's avatar Christoph Zysik
Browse files

fixing notices, _POST['checkid'] and _GET['ref']

parent be570639
Branches
No related merge requests found
......@@ -17,8 +17,8 @@ if(isset($_POST['checkid'])){
if (!isset($_GET['logout'])) $_GET['logout'] = "";
if (!isset($_GET['ref'])) $_GET['ref'] = "0";
}
if ($_SESSION['werber'] == "0") $_SESSION['werber'] = (int)$_GET['ref'];
if( ( !isset($_SESSION['werber']) || ("0" == $_SESSION['werber']) ) && isset($_GET['ref']) )
$_SESSION['werber'] = (int)$_GET['ref'];
// Seiteneinstellungen laden...
$pageconfig = mysqli_fetch_array(db_query("SELECT * FROM " . $db_prefix . "_seitenkonfig LIMIT 1"));
......@@ -33,7 +33,7 @@ if ($pageconfig['wartung'] == 1 && $_SESSION['uid'] != $admin_id) {
die();
}
// Login
if ($_POST['checkid'] == 'Login' && $_POST['nickname'] && $_POST['passwort']) {
if (isset($_POST['checkid']) && $_POST['checkid'] == 'Login' && $_POST['nickname'] && $_POST['passwort']) {
$_POST['nickname'] = addslashes($_POST['nickname']);
$pw = pw_erstellen($_POST['passwort']);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment