From: Alexander Schmidt Date: Mon, 1 Oct 2012 15:28:58 +0000 (+0200) Subject: ... X-Git-Url: http://git.treefish.org/banana.git/commitdiff_plain/74ec84ba871e86491a79a21b85cf37126b41cc7a ... --- 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