Gästebuch

Dateiübersicht

defines.phpProjektweit gültige Definitionen
authorization.phpPasswort-Authentifizierung
login.phpAnmeldeseite
makelogin.phpAccount einrichten
password.phpVergessene Passwörter ersetzen
randompasswd.phpZufallspasswörter erzeugen
logout.phpAbmelden
account.phpPersönliche Daten verändern
index.phpHauptseite mit dem Gästebuch
Fehler.phpFehlerfunktion
index.htmlStartseite mit Umleitung auf index.php

Aufbau der Datenbank

dagobert:/home/webadmin/public_html/WK2004IK23/gaestebuch.55 % mysql -u test
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.0.15

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use test_login
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+----------------------+
| Tables_in_test_login |
+----------------------+
| benutzer             |
| gaestebuch           |
+----------------------+
2 rows in set (0.00 sec)

mysql> describe benutzer;
+----------+------------------+------+-----+---------+----------------+
| Field    | Type             | Null | Key | Default | Extra          |
+----------+------------------+------+-----+---------+----------------+
| id       | int(10) unsigned |      | PRI | NULL    | auto_increment |
| login    | varchar(8)       |      |     |         |                |
| password | varchar(33)      |      |     |         |                |
| email    | tinytext         |      |     |         |                |
| Name     | tinytext         |      |     |         |                |
+----------+------------------+------+-----+---------+----------------+
5 rows in set (0.02 sec)

mysql> describe gaestebuch;
+---------+------------------+------+-----+---------+----------------+
| Field   | Type             | Null | Key | Default | Extra          |
+---------+------------------+------+-----+---------+----------------+
| id      | int(10) unsigned |      | PRI | NULL    | auto_increment |
| userid  | int(10) unsigned |      |     | 0       |                |
| Datum   | datetime         | YES  |     | NULL    |                |
| Betreff | text             | YES  |     | NULL    |                |
| Inhalt  | text             | YES  |     | NULL    |                |
+---------+------------------+------+-----+---------+----------------+
5 rows in set (0.01 sec)

mysql>