diff options
| author | Max | 2017-05-15 13:46:43 +0200 |
|---|---|---|
| committer | Max | 2017-05-15 13:46:43 +0200 |
| commit | 2666796615ccb82e0da09a3c422cc0cbd9a22755 (patch) | |
| tree | e32aafcf5ffd5a91d4ccf8fd119cdb8d7ac89cc0 | |
| parent | 1553506b15bf24156159624513d52cafab0bf073 (diff) | |
| parent | e47b2f79aec8166eb4b6f452015a210f6320d9e6 (diff) | |
| download | gospeladlershof.de-2666796615ccb82e0da09a3c422cc0cbd9a22755.tar.gz | |
Merge branch 'master' of git.iamfabulous.de:gospeladlershof.de
| -rw-r--r-- | intern.gospeladlershof.de/code/erinnerung.php | 14 | ||||
| -rw-r--r-- | intern.gospeladlershof.de/code/login.php | 22 |
2 files changed, 9 insertions, 27 deletions
diff --git a/intern.gospeladlershof.de/code/erinnerung.php b/intern.gospeladlershof.de/code/erinnerung.php index 49bbcb7..426b37b 100644 --- a/intern.gospeladlershof.de/code/erinnerung.php +++ b/intern.gospeladlershof.de/code/erinnerung.php @@ -1,6 +1,6 @@ <?php /** - * Das Script wird per Cronjob aufgerufen und überprüft, ob noch genügend Proben eingetragen sind. + * Das Script wird per Cronjob aufgerufen und überprüft, ob noch genügend Proben eingetragen sind, bzw. ob mindestens ein Termin als Einsteigertermin ausgewählt ist. * Wenn nicht, dann wird per E-Mail daran erinnert. */ @@ -27,8 +27,10 @@ if ( false === $db ) { } if ( $error_msg != "" ) { - // Fehlerbehandlung - // schickt mir ne E-Mail mit der Fehlermeldung + /* + * Fehlerbehandlung, + * schickt mir ne E-Mail mit der Fehlermeldung. + */ $pheanstalk = new Pheanstalk('192.168.122.1'); $data = array( @@ -46,8 +48,10 @@ if ( $error_msg != "" ) { ->put(json_encode($data)); } else { if ( $count_proben <= 4 || $count_einsteiger < 1 ) { - // email schicken, da wenige proben in der datenbank vorhanden sind - // + /* + * Es sind zu wenige Proben eingetragen oder es fehlt der Termin für Einsteiger. + * Ab hier läuft der Code, der eine E-Mail verschickt. + */ $text_msg = 'Hi Lotte, '; diff --git a/intern.gospeladlershof.de/code/login.php b/intern.gospeladlershof.de/code/login.php index b1ad01f..e72213a 100644 --- a/intern.gospeladlershof.de/code/login.php +++ b/intern.gospeladlershof.de/code/login.php @@ -6,7 +6,6 @@ require_once __DIR__ . '/../vendor/autoload.php'; use Pheanstalk\Pheanstalk; $mail = strtolower($_REQUEST["email"]); -$passwd = hash("sha512", $_REQUEST["password"]); $addresses= file(__DIR__ . "/../../intern/chor_list_members.txt", FILE_IGNORE_NEW_LINES); @@ -55,24 +54,3 @@ foreach($addresses as $a) { header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect"); header("Location: /check_login.php"); - - /* - $_SESSION["login"] = true; - $_SESSION["success"] = "Erfolgreich eingeloggt."; - - $_SESSION["dontdisplaydeploybutton"] = 1; - $_SESSION["user"] = $mail; - - header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect"); - header("Location: /"); - - exit; - } -} - -$_SESSION["login"] = false; -$_SESSION["error"] = "E-Mail oder Passwort stimmmen nicht überein."; - -header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect"); -header("Location: /login.php"); - */ |
