From: Juliette W. <jv...@us...> - 2005-06-16 14:30:25
|
Update of /cvsroot/stack/stack-1-0/frontend_general In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12534/frontend_general Modified Files: Tag: frontend_dev front_end_display.php qb_display.php Log Message: More minor changes Index: qb_display.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/frontend_general/Attic/qb_display.php,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** qb_display.php 16 Jun 2005 13:49:22 -0000 1.1.2.3 --- qb_display.php 16 Jun 2005 14:30:16 -0000 1.1.2.4 *************** *** 56,60 **** function stack_import_questions_screen($errors) { ! echo nsf($errors,'upload_xml_file'); echo "Select a file to upload and edit: <br /> --- 56,60 ---- function stack_import_questions_screen($errors) { ! echo nsf($errors,'import'); echo "Select a file to upload and edit: <br /> Index: front_end_display.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/frontend_general/Attic/front_end_display.php,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** front_end_display.php 16 Jun 2005 12:13:36 -0000 1.1.2.3 --- front_end_display.php 16 Jun 2005 14:30:16 -0000 1.1.2.4 *************** *** 18,21 **** --- 18,48 ---- } + function stack_get_err2($errors) { + $err = ''; + if (is_array($errors)) { + if (array_key_exists('user',$errors)) { + $err = $errors['user']; + } + } + return $err; + } + + function stack_is_logged_in($user) { + if ($user['loggedin']) { + return TRUE; + } else { + return FALSE; + } + } + + function stack_user_is_guest($user) { + if ('guest' == $user['username']) { + return TRUE; + } else { + return FALSE; + } + } + + function stack_login_screen($username, $errun, $errps) { echo '<h1>Login</h1><form action="index.php" method="post" name="login" id="login"><table><tr><td align="right">Username:</td>'; |