From 74ec84ba871e86491a79a21b85cf37126b41cc7a Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Mon, 1 Oct 2012 17:28:58 +0200 Subject: [PATCH 1/1] ... --- include/common.inc | 14 ++++++++++---- include/usercheck.inc | 7 +++++++ register.php | 7 +++++++ 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/include/common.inc b/include/common.inc index 38de013..4b1a17a 100644 --- a/include/common.inc +++ b/include/common.inc @@ -1,7 +1,13 @@ "; - print " $text "; - print ""; + if( ! isset($COMMON_H)) { + + $COMMON_H = 1; + + function block($color, $text) { + print ""; + print ""; + print "
$text
"; + } + } ?> diff --git a/include/usercheck.inc b/include/usercheck.inc index 27cecff..26ab851 100644 --- a/include/usercheck.inc +++ b/include/usercheck.inc @@ -1,9 +1,16 @@ query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber")->fetch(PDO::FETCH_NUM)[0] == 0) { print ''; print ''; diff --git a/register.php b/register.php index fc6eb4b..e63872b 100644 --- a/register.php +++ b/register.php @@ -1,6 +1,8 @@
Mat.nummer not found