--- /dev/null
+AuthUserFile /afs/treefish.org/user/alex/www/mechanics/alex/admin/.htpasswd
+AuthGroupFile /dev/null
+AuthName "Banana Admin"
+AuthType Basic
+require user admin
--- /dev/null
+admin:c2j7bF02Yuxnw
--- /dev/null
+../banane.db
\ No newline at end of file
--- /dev/null
+<?php
+ require 'include/head.inc';
+ require 'include/db.inc';
+ require 'include/common.inc';
+
+ if(isset($_POST['submit']) && $_POST['mnumber']!="") {
+ $db->query("UPDATE students SET blackboard=blackboard+1 WHERE mnumber=" . trim($_POST['mnumber']));
+ block("lightgreen", "added blackboard");
+ }
+
+ block("black", "add blackboard");
+?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+ <table>
+ <tr>
+ <th align="left">Matr.nummer:</th> <th><input type="text" name="mnumber"></th>
+ <th><input type="submit" name="submit" value="Add"></th>
+ </tr>
+ </table>
+</form>
+
+<?php
+ block("black", "blackboard overview");
+
+ $result=$db->query("SELECT firstname, lastname, mnumber, blackboard FROM students");
+
+ print "<table>";
+ while ($student = $result->fetch(PDO::FETCH_ASSOC)) {
+ print "<tr>";
+ print "<td>" . $student['firstname'] . " </td>";
+ print "<td>" . $student['lastname'] . " </td>";
+ print "<td>" . $student['mnumber'] . " </td>";
+ print "<td>" . $student['blackboard'] . "</td>";
+ print "</tr>";
+ }
+ print "</table>";
+
+?>
\ No newline at end of file
--- /dev/null
+../../include/banner.inc
\ No newline at end of file
--- /dev/null
+../../include/common.inc
\ No newline at end of file
--- /dev/null
+<?php
+ if (! isset($db)) {
+ if ($db = new PDO('sqlite:banane.db')) {
+ $db->query('CREATE TABLE IF NOT EXISTS students
+ (mnumber int, firstname string, lastname string, email string, password string, blackboard int DEFAULT 0, PRIMARY KEY (mnumber))');
+ $db->query('CREATE TABLE IF NOT EXISTS workdone
+ (mnumber int, session int, manydone int, thisdone string)');
+ $db->query('CREATE TABLE IF NOT EXISTS prefs
+ (key string, value string, PRIMARY KEY (key))');
+ $db->query('CREATE TABLE IF NOT EXISTS sessions
+ (id int NOT NULL, timestr string NOT NULL, PRIMARY KEY (id))');
+ }
+ }
+?>
--- /dev/null
+<?php
+ require 'banner.inc';
+ require 'nav.inc';
+?>
\ No newline at end of file
--- /dev/null
+<style type="text/css">
+ a:link { text-decoration:none; font-weight:normal; color:blue; }
+ a:visited { text-decoration:none; font-weight:normal; color:blue; }
+ a:hover { text-decoration:none; font-weight:normal; background-color:yellow; }
+ a:active { text-decoration:none; font-weight:normal; color:blue; }
+ a:focus { text-decoration:none; font-weight:normal; color:blue; }
+</style>
+
+<a href="summary.php">summary</a>
+ |
+<a href="blackboard.php">blackboard</a>
+ |
+<a href="sessions.php">sessions</a>
+ |
+<a href="prefs.php">preferences</a>
+ |
+<a href="password.php">password</a>
+ |
+<a href="../">USER</a>
+
+<br><br>
--- /dev/null
+../../include/prefs.inc
\ No newline at end of file
--- /dev/null
+../../include/session.inc
\ No newline at end of file
--- /dev/null
+blackboard.php
\ No newline at end of file
--- /dev/null
+<?php
+ require 'include/head.inc';
+ require 'include/common.inc';
+
+ if(isset($_POST['submit']) && $_POST['password']!="") {
+
+ $fh_pass = fopen(".htpasswd", 'w');
+ fwrite($fh_pass, "admin:" . crypt($_POST['password'], base64_encode($_POST['password'])) . "\n");
+ fclose($fh_pass);
+
+ $fh_access = fopen(".htaccess", 'w');
+ fwrite($fh_access, "AuthUserFile " . getcwd() . "/.htpasswd\n");
+ fwrite($fh_access, "AuthGroupFile /dev/null\n");
+ fwrite($fh_access, "AuthName \"Banana Admin\"\n");
+ fwrite($fh_access, "AuthType Basic\n");
+ fwrite($fh_access, "require user admin\n");
+ fclose($fh_access);
+
+ block("lightgreen", "admin password set");
+ break;
+ }
+?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+ <table bgcolor="black">
+ <tr><th><b><font color="white">set admin password</font></b></th><tr>
+ </table>
+
+ <table>
+ <tr>
+ <th align="left">Password:</th> <th><input type="text" name="password"></th>
+ </tr>
+
+ <tr>
+ <th></th><th align="right" columnspan=2><input type="submit" name="submit" value="Set"></th>
+ </tr>
+ </table>
+</form>
--- /dev/null
+<?php
+ require 'include/head.inc';
+ require 'include/db.inc';
+ require 'include/common.inc';
+ require 'include/prefs.inc';
+
+ if(isset($_POST['submit']) && $_POST['exname']!="" && $_POST['groupname']!="") {
+ $db->query("DELETE FROM prefs WHERE key='exname'");
+ $db->query("INSERT INTO prefs (key,value) VALUES ('exname','" . trim($_POST['exname']) . "')");
+
+ $db->query("DELETE FROM prefs WHERE key='groupname'");
+ $db->query("INSERT INTO prefs (key,value) VALUES ('groupname','" . trim($_POST['groupname']) . "')");
+
+ block("lightgreen", "set preferences");
+ break;
+ }
+
+?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+ <?php block("black", "preferences"); ?>
+
+ <table>
+ <tr>
+ <th align="left">Exercise Name:</th> <th><input type="text" name="exname" value="<?php echo $PREFS['exname'] ?>"></th>
+ </tr>
+
+ <tr>
+ <th align="left">Group Name:</th> <th><input type="text" name="groupname" value="<?php echo $PREFS['groupname'] ?>"></th>
+ </tr>
+
+ <tr>
+ <th></th><th align="right"><input type="submit" name="submit" value="Set"></th>
+ </tr>
+ </table>
+</form>
\ No newline at end of file
--- /dev/null
+<?php
+ require 'include/head.inc';
+ require 'include/db.inc';
+ require 'include/common.inc';
+
+ if(isset($_POST['submit']) && $_POST['stime']!="" && $_POST['examples']!="") {
+ $db->query("INSERT INTO sessions (id,examples,nexamples) VALUES (" . strtotime(trim($_POST['stime'])) . ",'" . $_POST['examples'] . "','" . count(explode(',',$_POST['examples'])) . "')");
+ block("lightgreen", "added session");
+ }
+
+ if($_GET['delete']!="") {
+ $db->query("DELETE FROM sessions WHERE id=" . $_GET['delete']);
+ block("red", "deleted session");
+ }
+
+ require 'include/session.inc';
+
+ block("black", "add session");
+?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+ <table>
+ <tr>
+ <th align="left">Time:</th> <th><input type="text" name="stime"></th><th></th><th>(e.g. 10.9.2012 10:30)</th>
+ </tr>
+ <tr>
+ <th align="left">Examples:</th> <th><input type="text" name="examples"></th>
+ <th><input type="submit" name="submit" value="Add"></th><th>(e.g. 1a,1b,1c,2,3a,3b)</th>
+ </tr>
+ </table>
+</form>
+
+<?php
+ block("black", "session overview");
+
+ print "<table>";
+ foreach ($SESSIONS as $session) {
+ print "<tr>";
+ print "<td>" . $session['id'] . " </td>";
+ print "<td>" . $session['timestr'] . " </td>";
+ print "<td>" . $session['examples'] . "(" . $session['nexamples'] . ")" . " </td>";
+ if ($session['workdone'] == 0) {
+ print "<td><a href='sessions.php?delete=" . $session['id'] . "'>delete</a></td>";
+ }
+ else { print "<td>locked</td>"; }
+ print "</tr>";
+ }
+ print "</table>";
+
+?>
\ No newline at end of file
--- /dev/null
+<?php
+ require 'include/head.inc';
+ require 'include/db.inc';
+ require 'include/session.inc';
+ require 'include/common.inc';
+
+ block("black", "summary of everything for " . date("d.m.Y H:i"));
+
+ $result = $db->query("SELECT firstname, lastname, mnumber, blackboard FROM students ORDER BY lastname");
+
+ print "<table>";
+ print "<td><b>First name </b></td><td><b>Last name </b></td><td><b>Matr.nummer </b></td><td><b>Examples </b></td><td><b>Blackboard </b></td>";
+ while ($student = $result->fetch(PDO::FETCH_ASSOC)) {
+ $exdone = $db->query("SELECT manydone FROM workdone WHERE mnumber=" . $student['mnumber'])->fetch(PDO::FETCH_NUM);
+ $totexdone = 0;
+ foreach($exdone as $subdone) { $totexdone += $subdone; }
+ print "<tr>";
+ print "<td>" . $student['firstname'] . "</td>";
+ print "<td>" . $student['lastname'] . "</td>";
+ print "<td>" . $student['mnumber'] . "</td>";
+ print "<td>" . $totexdone . "/" . $SESSIONS_totex . "</td>";
+ print "<td>" . $student['blackboard'] . "</td>";
+ print "</tr>";
+ }
+ print "</table>";
+
+?>
\ No newline at end of file
+++ /dev/null
-<?php
- if ($db = new PDO('sqlite:var/banane.db')) {
- $db->query('CREATE TABLE IF NOT EXISTS students
- (mnumber int, firstname string, lastname string, email string, password string, PRIMARY KEY (mnumber))');
- $db->query('CREATE TABLE IF NOT EXISTS workdone
- (mnumber int, session int, manydone int, thisdone string)');
- }
-?>
+++ /dev/null
-<?php
-
- $lec_lines = file('var/lecture.txt');
-
- foreach ($lec_lines as $line_num => $line) {
- $lecture[$line_num] = $line;
- }
-
- print "<table>";
- print "<tr><th align=\"left\">Banana Exercise Management</th><tr>";
- print "<tr><th bgcolor=blue><font color=white> $lecture[0] $lecture[1], Group: $lecture[2] </font></th></tr>";
- print "</table>";
-
- print "<br>";
-?>
\ No newline at end of file
--- /dev/null
+<?php
+ include 'prefs.inc';
+
+ $lec_lines = file('var/lecture.txt');
+
+ foreach ($lec_lines as $line_num => $line) {
+ $lecture[$line_num] = $line;
+ }
+
+ print "<table>";
+ print "<tr><th align=\"left\">Banana Exercise Management</th><tr>";
+ print "<tr><th bgcolor=blue><font color=white> " . $PREFS['exname'] . ", Gruppe: " . $PREFS['groupname'] . " </font></th></tr>";
+ print "</table>";
+
+ print "<br>";
+?>
--- /dev/null
+<?php
+ function block($color, $text) {
+ print "<table bgcolor=\" $color \">";
+ print "<tr><th><b><font color=\"white\"> $text </font></b></th><tr>";
+ print "</table>";
+ }
+?>
--- /dev/null
+<?php
+ if (! isset($db)) {
+ if ($db = new PDO('sqlite:banane.db')) {
+ $db->query('CREATE TABLE IF NOT EXISTS students
+ (mnumber int, firstname string, lastname string, email string, password string, blackboard int DEFAULT 0, PRIMARY KEY (mnumber))');
+ $db->query('CREATE TABLE IF NOT EXISTS workdone
+ (mnumber int, session int, manydone int, thisdone string)');
+ $db->query('CREATE TABLE IF NOT EXISTS prefs
+ (key string, value string, PRIMARY KEY (key))');
+ $db->query('CREATE TABLE IF NOT EXISTS sessions
+ (id int NOT NULL, examples string, nexamples int, PRIMARY KEY (id))');
+ }
+ }
+?>
--- /dev/null
+<?php
+ require 'banner.inc';
+ require 'nav.inc';
+?>
\ No newline at end of file
--- /dev/null
+<style type="text/css">
+ a:link { text-decoration:none; font-weight:normal; color:blue; }
+ a:visited { text-decoration:none; font-weight:normal; color:blue; }
+ a:hover { text-decoration:none; font-weight:normal; background-color:yellow; }
+ a:active { text-decoration:none; font-weight:normal; color:blue; }
+ a:focus { text-decoration:none; font-weight:normal; color:blue; }
+</style>
+
+
+<a href="submit.php">submit</a>
+ |
+<a href="summary.php">summary</a>
+ |
+<a href="register.php">register</a>
+ |
+<a href="admin">ADMIN</a>
+
+<br><br>
--- /dev/null
+<?php
+ include 'db.inc';
+
+ $result = $db->query("SELECT key, value FROM prefs");
+ while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
+ $PREFS[$row['key']] = $row['value'];
+ }
+
+?>
--- /dev/null
+<?php
+ $result=$db->query("SELECT id,examples,nexamples FROM sessions ORDER BY id");
+ $SESSIONS_next = -1;
+ while ($session = $result->fetch(PDO::FETCH_ASSOC)) {
+ $SESSIONS[$session['id']] = array("id" => $session['id'], "timestr" => date("d.m.Y H:i", $session['id']),
+ "workdone" => $db->query("SELECT COUNT(*) FROM workdone WHERE session=" . $session['id'])->fetch(PDO::FETCH_NUM)[0],
+ "examples" => $session['examples'], "nexamples" => $session['nexamples']);
+ if ( strtotime("now") < $session['id'] && ( $SESSIONS_next==-1 || $SESSIONS_next > $session['id'] ) ) {
+ $SESSIONS_next = $session['id'];
+ }
+ }
+ if($SESSIONS_next == -1) unset($SESSIONS_next);
+
+ $SESSIONS_totex = 0;
+ foreach ($SESSIONS as $session) {
+ if($session['id'] < $SESSIONS_next) { $SESSIONS_totex += $session['nexamples']; }
+ }
+?>
--- /dev/null
+<?php
+ require 'db.inc';
+
+ $mnumber = $_POST['mnumber'];
+ $password = $_POST['password'];
+
+ if($db->query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber")->fetch(PDO::FETCH_NUM)[0] == 0) {
+ print '<table bgcolor="red">';
+ print '<tr><th><b><font color="white">Mat.nummer not found</font></b></th><tr>';
+ print '</table>';
+ print "Mat.Nummer was not found. You have to register first!";
+ break;
+ }
+
+ if($db->query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber AND password = \"$password\"")->fetch(PDO::FETCH_NUM)[0] == 0) {
+ print '<table bgcolor="red">';
+ print '<tr><th><b><font color="white">wrong password</font></b></th><tr>';
+ print '</table>';
+ break;
+ }
+
+?>
\ No newline at end of file
+++ /dev/null
-<?php
- include 'nav.inc';
- include 'lecture.inc';
-
- if(isset($_POST['submit']) && $_POST['mnumber']!="") {
- require 'createdb.inc';
- require 'session.inc';
-
- $mnumber = trim($_POST['mnumber']);
- $password = trim($_POST['password']);
-
- $sessionid = strtotime(end($sessions)[0]);
-
- if (! ( $mnumber == 007 AND $password == 007 )) {
- require 'usercheck.inc';
- $result = $db->query("SELECT thisdone FROM workdone WHERE mnumber = $mnumber AND session = $sessionid")->fetch(PDO::FETCH_NUM)[0];
- if ($result == "") {
- print "<table bgcolor=\"red\">";
- print "<tr><th><b><font color=\"white\">no submit</font></b></th><tr>";
- print "</table>";
- print "No results were submitted for " . end($sessions)[0] . ".";
- break;
- }
- else {
- print "<table bgcolor=\"lightgreen\">";
- print "<tr><th><b><font color=\"white\">Last submit of $mnumber for " . end($sessions)[0] . "</font></b></th><tr>";
- print "</table>";
- print $result;
- }
- }
- else {
- $result = $db->query("SELECT students.firstname, students.lastname, students.mnumber, workdone.manydone, workdone.thisdone FROM workdone, students WHERE workdone.session = $sessionid AND workdone.mnumber = students.mnumber");
-
- print "<table bgcolor=\"lightgreen\">";
- print "<tr><th><b><font color=\"white\">Last submits for " . end($sessions)[0] . "</font></b></th><tr>";
- print "</table>";
-
- print "<table>";
-
- while ($row = $result->fetch(PDO::FETCH_NUM)) {
- print "<tr>";
- echo "<td>$row[0] $row[1] </td> <td>$row[2] </td> <td>$row[4] </td> <td>$row[3]/$lstsession_nex </td>";
- print "</tr>";
- }
-
- print "</table>";
- }
-
- break;
- }
-?>
-
-<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
- <table bgcolor="black">
- <tr><th><b><font color="white">Last submission</font></b></th><tr>
- </table>
-
- <table>
- <tr>
- <th align="left">Mat.nummer:</th> <th align="left"><input type="text" name="mnumber"></th>
- </tr>
- <tr>
- <th align="left">Password:</th> <th align="left"><input type="text" name="password"></th>
- </tr>
- <tr><th colspan=2></th></tr>
-
- <tr>
- <th align="left"><input type="submit" name="submit" value="Show"></th> <th></th>
- </tr>
- </table>
-</form>
+++ /dev/null
-<?php
- $lec_lines = file('var/lecture.txt');
- foreach ($lec_lines as $line_num => $line) {
- $lecture[$line_num] = $line;
- }
-?>
+++ /dev/null
-<?php
- require "head.inc";
-?>
-
-<style type="text/css">
- a:link { text-decoration:none; font-weight:normal; color:blue; }
- a:visited { text-decoration:none; font-weight:normal; color:blue; }
- a:hover { text-decoration:none; font-weight:normal; background-color:yellow; }
- a:active { text-decoration:none; font-weight:normal; color:blue; }
- a:focus { text-decoration:none; font-weight:normal; color:blue; }
-</style>
-
-
-<a href="submit.php">submit</a>
- |
-<a href="register.php">register</a>
- |
-<a href="lastsubmit.php">last submit</a>
-
-<br><br>
<?php
-require 'nav.inc';
+require 'include/head.inc';
if(isset($_POST['submit']) && $_POST['firstname']!="" && $_POST['lastname']!=""
&& $_POST['mnumber']!="" && $_POST['email']!="" && $_POST['password']!="")
$email = $_POST['email'];
$password = $_POST['password'];
- require 'createdb.inc';
+ require 'include/db.inc';
// user already exists //
if($db->query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber")->fetch(PDO::FETCH_NUM)[0] == 1) {
+++ /dev/null
-<?php
- $lines_sessions = file('var/sessions.txt');
-
- foreach ($lines_sessions as $line_num => $line) {
- $sessions[$line_num] = explode("\t",$line);
- }
-
- $lstsession_nex = count(explode(',',end($sessions)[1]));
-?>
<?php
- require 'nav.inc';
+ require 'include/head.inc';
+ require 'include/session.inc';
+ require 'include/common.inc';
- $lines = file('var/sessions.txt');
-
- foreach ($lines as $line_num => $line) {
- $sessions[$line_num] = explode("\t",$line);
- }
-
- if ( strtotime("now") > strtotime(end($sessions)[0]) ) {
- print '<table bgcolor="red">';
- print '<tr><th><b><font color="white">submission closed</font></b></th><tr>';
- print '</table>';
+ if ( ! isset($SESSIONS_next) ) {
+ block("red", "submission closed");
break;
}
if(isset($_POST['submit']) && $_POST['mnumber']!="") {
- require 'usercheck.inc';
-
+ require 'include/usercheck.inc';
+
$exchecked = $_POST['exchecked'];
$mnumber = $_POST['mnumber'];
- $sessionid = strtotime(end($sessions)[0]);
+ $sessionid = $SESSIONS[$SESSIONS_next]['id'];
if($db->query("SELECT COUNT(*) FROM workdone WHERE mnumber = $mnumber AND session = $sessionid")->fetch(PDO::FETCH_NUM)[0] == 1) {
print '<table bgcolor="red">';
break;
}
- if(trim(end($sessions)[0]) == "") {
- print '<table bgcolor="red">';
- print '<tr><th><b><font color="white">no exercises defined</font></b></th><tr>';
- print '</table>';
- break;
- }
-
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<table bgcolor="black">
- <tr><th><b><font color="white">submit examples for <?php echo end($sessions)[0]; ?></font></b></th><tr>
+ <tr><th><b><font color="white">submit examples for <?php echo $SESSIONS[$SESSIONS_next]['timestr']; ?></font></b></th><tr>
</table>
<table>
<?php
$exnum=0;
- foreach (explode(",",end($sessions)[1]) as $exid) {
+ foreach (explode(",",$SESSIONS[$SESSIONS_next]['examples']) as $exid) {
print " <input type='checkbox' name='exchecked[]' value=$exid>$exid ";
$exnum++;
if ($exnum%3 == 0) { print ""; }
--- /dev/null
+<?php
+ require 'include/head.inc';
+ require 'include/db.inc';
+ require 'include/session.inc';
+ require 'include/common.inc';
+
+ if(isset($_POST['submit']) && $_POST['mnumber']!="") {
+ $mnumber = trim($_POST['mnumber']);
+ $password = trim($_POST['password']);
+
+ require 'include/usercheck.inc';
+
+ block("black", "summary for " . $_POST['mnumber']);
+
+ print "<b>Examples Submitted</b>";
+ print "<table>";
+
+ $tot_done = 0;
+
+ foreach ($SESSIONS as $session) {
+ if ($session['id'] == $SESSIONS_next) { break; }
+
+ $exdone = $db->query("SELECT thisdone, manydone FROM workdone WHERE mnumber=" . $mnumber . " AND session=" . $session['id'])->fetch(PDO::FETCH_NUM);
+
+ if ( $exdone[1] == "" ) { $exdone[1] = "0"; }
+
+ $tot_done = $tot_done + $exdone[1];
+
+ print "<tr>";
+ print "<td>" . $session['timestr'] . " </td>";
+ print "<td>" . $session['examples'] . "(" . $session['nexamples'] . ")" . " </td>";
+ print "<td>" . $exdone[1] . "/" . $session['nexamples'] . "(" . $exdone[0] . ")" . " </td>";
+ print "</tr>";
+ }
+ print "<tr>";
+ print "<td></td><td></td><td><b>" . $tot_done . "/" . $SESSIONS_totex . "</b></td>";
+ print "</tr>";
+
+ print "</table>";
+
+ print "<br>";
+
+ print "<b>Blackboard</b>";
+ $blackdone = $db->query("SELECT blackboard FROM students WHERE mnumber=" . $mnumber)->fetch(PDO::FETCH_NUM)[0];
+
+ print "<br>";
+
+ for( $ib=0; $ib<$blackdone; $ib++ ) { echo " * "; }
+
+ break;
+ }
+?>
+
+<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
+ <table bgcolor="black">
+ <tr><th><b><font color="white">Last submission</font></b></th><tr>
+ </table>
+
+ <table>
+ <tr>
+ <th align="left">Mat.nummer:</th> <th align="left"><input type="text" name="mnumber"></th>
+ </tr>
+ <tr>
+ <th align="left">Password:</th> <th align="left"><input type="text" name="password"></th>
+ </tr>
+ <tr><th colspan=2></th></tr>
+
+ <tr>
+ <th align="left"><input type="submit" name="submit" value="Show"></th> <th></th>
+ </tr>
+ </table>
+</form>
+++ /dev/null
-<?php
- require 'createdb.inc';
-
- $mnumber = $_POST['mnumber'];
- $password = $_POST['password'];
-
- if($db->query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber")->fetch(PDO::FETCH_NUM)[0] == 0) {
- print '<table bgcolor="red">';
- print '<tr><th><b><font color="white">Mat.nummer not found</font></b></th><tr>';
- print '</table>';
- print "Mat.Nummer was not found. You have to register first!";
- break;
- }
-
- if($db->query("SELECT COUNT(*) FROM students WHERE mnumber = $mnumber AND password = \"$password\"")->fetch(PDO::FETCH_NUM)[0] == 0) {
- print '<table bgcolor="red">';
- print '<tr><th><b><font color="white">wrong password</font></b></th><tr>';
- print '</table>';
- break;
- }
-
-?>
\ No newline at end of file
+++ /dev/null
-*.txt
-banane.db
+++ /dev/null
-Theoretische Mechanik
-WS2012
-Alex
+++ /dev/null
-27.09.2012 10:30 1a,1b,1c,2a,2b,3