summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorus_arch2017-03-07 12:49:51 +0100
committerhorus_arch2017-03-07 12:49:51 +0100
commit86a6756fbc911da8c3917774e5043717c0b0ccdd (patch)
tree0e23b8dab0f9e6cfa14a0c4e4ab6c8f0bf81ca34
parent2eb4a7847cb6c8b1a4a8bb7cfd668309c27917e2 (diff)
downloadgospeladlershof.de-86a6756fbc911da8c3917774e5043717c0b0ccdd.tar.gz
Doku + besserer hit count.
-rw-r--r--intern.gospeladlershof.de/code/erinnerung.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/intern.gospeladlershof.de/code/erinnerung.php b/intern.gospeladlershof.de/code/erinnerung.php
index b700833..27b9b4b 100644
--- a/intern.gospeladlershof.de/code/erinnerung.php
+++ b/intern.gospeladlershof.de/code/erinnerung.php
@@ -1,4 +1,8 @@
<?php
+/**
+ * Das Script wird per Cronjob aufgerufen und überprüft, ob noch genügend Proben eingetragen sind.
+ * Wenn nicht, dann wird per E-Mail daran erinnert.
+ */
require_once __DIR__ . '/db.php';
require_once __DIR__ . '/../vendor/autoload.php';
@@ -38,7 +42,7 @@ if ( $error_msg != "" ) {
->useTube('contactme_mail')
->put(json_encode($data));
} else {
- if ( $count_proben <= 3 ) {
+ if ( $count_proben <= 4 ) {
$text_msg = 'Hi Lotte,
es sind nur noch ' . $count_proben . ' Proben eingetragen.