Also folgendes:
Das Script funktioniert nur zum Teil. Außerdem habe ich auch schon einen Fehler gefunden. Ich kann mich über das Formular einloggen. Es steht dann auch dran, dass ich eingeloggt bin. ABER es kommt zu einem Fehler.
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
Du bist angemeldet.
Zum Abmelden hier klicken
So und wenn ich da jetzt auf Abmelden klicke, komme ich zur Login Seite. Allerdings wird mir dann 404 Error angezeigt, weil es die Seite nicht gibt. Ist ja klar, im Verzeichnis vom Forum gibt es keine Datei mit dem Namen login.php.
Wenn ich also das Rootverzeichnis anpasse, dann kann ich mich einloggen. Passe ich es nicht an, kann ich mich theoretisch nur ausloggen, aber nicht einloggen. Also sind ein paar Fehler im Script und es kann somit nicht so richtig funktionieren, wenn das Forum in einem extra Verzeichnis liegt (was man ja normal auch so machen sollte. Oder nicht?)
So, jetzt hatte ich es dann zum Testen mal etwas geändert, so, dass ich zur Datei login.php geführt werde, wenn ich mich auslogge. Allerdings passiert dann das:
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 990: Cannot modify header information - headers already sent by (output started at /srv/www/httpd/phost/g/de/gmmts/web/login.php:1)
Du bist abgemeldet
Nochmal versuchen?
Funktioniert dieses Script also nur, wenn die 2 Dateien da liegen, wo das Forum liegt? Muss ich die Dateien also dort hinbauen und das Formular muss dann so gebaut werden, dass ich genau dort hingeführt werde? Dann kann ich das Teil ja gleich ins normale Forum führen lassen.
EDIT: Selbst wenn ich es im Verzeichnis vom Forum teste, klappt es nicht richtig. Ich bin dann zwar auch eingeloggt, aber nicht im Forum. Das scheint irgendwie nicht zu klappen. Ist es überhaupt mit dem Script möglich? Also ich will, dass man sich im Forum und auf der Page einloggen kann. Wenn man sich auf der Page einloggt, sollte man auch im Forum surfen können und wenn man sich im Forum einloggt, soll man auch auf der Page surfen können. Also ganz egal wo man sich einloggt, man soll überall surfen können.