diff options
| author | oweissbarth | 2014-03-14 20:31:13 +0100 |
|---|---|---|
| committer | oweissbarth | 2014-03-14 20:31:13 +0100 |
| commit | 09d24a3f321476ecdbbf10156fe724343a7d4084 (patch) | |
| tree | 73f572583180c326301fa94d0fc30df2a2712288 /www/login.php | |
| parent | 20d1d5e53ce7713f7d0beb5f8538b936836ad54c (diff) | |
| download | files.iamfabulous.de-09d24a3f321476ecdbbf10156fe724343a7d4084.tar.gz | |
Removed more warnings.
Added and reorganized inline docs. Every file should have a small header explaining what the file does and what the paramerters are.
Diffstat (limited to 'www/login.php')
| -rwxr-xr-x | www/login.php | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/www/login.php b/www/login.php index c2847b3..3207703 100755 --- a/www/login.php +++ b/www/login.php @@ -1,13 +1,19 @@ <?php -/* - $_GET Paramter für Oli von Max: - - --LOGIN-- - - $_GET["username"]: derjenige, der sich ein-/ausloggt (wird immer mitgegeben) - $_GET["reason"]: failure wenn das Passwort aus der Datenbank nicht übereinstimmt mit dem eingegeben - database wenn aus irgendwelchen Gründen nicht in die Datenbank geschrieben werden kann aka. transaction failed - logout nachdem logout erfolgreich war (man wird auf /login wieder zurück geleitet) + /* + Displays the login page and possible errors. Users can enter their username and password to login. TODO recover Password + It has already been checked that the user isn't already logged in. + + $_GET["reason"] can have the following values: + + failure: Specifies that the username and password didn't match. The user is not logged in. + + database: Specifies that the request could not be fullfilled due to a database error. The user is not logged in. + + succuss: Specifies that the request was successfull. TODO should probably redirect to user root. + + $_GET["username"] contains the username if a prior attempt to login wasn't successfull. + + ================================================================================================================================================== */ ?> |
