From 78533c089d9413327f981cb2b20090a28f25e5e5 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Thu, 27 Sep 2012 18:08:53 +0200 Subject: [PATCH] ... --- admin/blackboard.php | 2 +- admin/nextsession.php | 2 +- admin/password.php | 2 +- admin/prefs.php | 2 +- admin/summary.php | 2 +- include/usercheck.inc | 4 ++-- register.php | 4 ++-- submit.php | 6 +++--- summary.php | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/admin/blackboard.php b/admin/blackboard.php index 4066f84..139abe9 100644 --- a/admin/blackboard.php +++ b/admin/blackboard.php @@ -10,7 +10,7 @@ if ($db->query("SELECT COUNT(*) FROM students")->fetch(PDO::FETCH_NUM)[0] == 0) { block("red", "no students registered"); - break; + exit; } block("black", "add blackboard"); diff --git a/admin/nextsession.php b/admin/nextsession.php index f438822..18efdc4 100644 --- a/admin/nextsession.php +++ b/admin/nextsession.php @@ -6,7 +6,7 @@ if (! isset($SESSIONS_actual)) { block("red", "no next session"); - break; + exit; } block("black", "summary for session " . $SESSIONS[$SESSIONS_actual]['timestr'] . " (" . $SESSIONS[$SESSIONS_actual]['examples'] . ")"); diff --git a/admin/password.php b/admin/password.php index 6459c94..958f3d3 100644 --- a/admin/password.php +++ b/admin/password.php @@ -17,7 +17,7 @@ fclose($fh_access); block("lightgreen", "admin password set"); - break; + exit; } ?> diff --git a/admin/prefs.php b/admin/prefs.php index 76e14d7..399c24f 100644 --- a/admin/prefs.php +++ b/admin/prefs.php @@ -12,7 +12,7 @@ $db->query("INSERT INTO prefs (key,value) VALUES ('groupname','" . trim($_POST['groupname']) . "')"); block("lightgreen", "set preferences"); - break; + exit; } ?> diff --git a/admin/summary.php b/admin/summary.php index 33658ef..cac27fc 100644 --- a/admin/summary.php +++ b/admin/summary.php @@ -6,7 +6,7 @@ if ($db->query("SELECT COUNT(*) FROM students")->fetch(PDO::FETCH_NUM)[0] == 0) { block("red", "no students registered"); - break; + exit; } block("black", "summary of everything for " . date("d.m.Y H:i")); diff --git a/include/usercheck.inc b/include/usercheck.inc index e6cab54..27cecff 100644 --- a/include/usercheck.inc +++ b/include/usercheck.inc @@ -9,14 +9,14 @@ print 'Mat.nummer not found'; print ''; print "Mat.Nummer was not found. You have to register first!"; - break; + exit; } if($db->query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber AND password = \"$password\"")->fetch(PDO::FETCH_NUM)[0] == 0) { print ''; print ''; print '
wrong password
'; - break; + exit; } ?> \ No newline at end of file diff --git a/register.php b/register.php index 13e2aab..fc6eb4b 100644 --- a/register.php +++ b/register.php @@ -18,7 +18,7 @@ if(isset($_POST['submit']) && $_POST['firstname']!="" && $_POST['lastname']!="" print ""; print ""; print "
user already registered
"; - break; + exit; } $db->query("INSERT INTO students (mnumber,firstname,lastname,email,password) @@ -39,7 +39,7 @@ if(isset($_POST['submit']) && $_POST['firstname']!="" && $_POST['lastname']!="" 'X-Mailer: PHP/' . phpversion(); mail($email, "Banana Registration: " . $PREFS['exname'] . " (" . $PREFS['groupname'] . ")", $nachricht, $header); - break; + exit; } ?> diff --git a/submit.php b/submit.php index aabc3fe..b8e1d7e 100644 --- a/submit.php +++ b/submit.php @@ -5,7 +5,7 @@ if ( ! isset($SESSIONS_next) ) { block("red", "submission closed"); - break; + exit; } if(isset($_POST['submit']) && $_POST['mnumber']!="") { @@ -21,7 +21,7 @@ print 'You already submitted results for this session'; print ''; print "You can only submit your calculated examples once!"; - break; + exit; } $excount = count($exchecked); @@ -33,7 +33,7 @@ print ''; print ''; print '
submitted
'; - break; + exit; } ?> diff --git a/summary.php b/summary.php index 3354ca3..b59c7bb 100644 --- a/summary.php +++ b/summary.php @@ -47,7 +47,7 @@ for( $ib=0; $ib<$blackdone; $ib++ ) { echo " * "; } - break; + exit; } ?> -- 2.39.2