summaryrefslogtreecommitdiff
path: root/computer-time-limit.php
diff options
context:
space:
mode:
Diffstat (limited to 'computer-time-limit.php')
-rw-r--r--computer-time-limit.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/computer-time-limit.php b/computer-time-limit.php
index c97db5e..9619066 100644
--- a/computer-time-limit.php
+++ b/computer-time-limit.php
@@ -61,7 +61,13 @@ if (array_key_exists('msg', $_POST) && array_key_exists('sig', $_POST)) {
$msg_parts = explode(' ', $_POST['msg'], 2);
- print($noch . "\n");
+ date_default_timezone_set('Europe/Berlin');
+ if ((1<=date('w')) && (date('w')<=5) && (date('G')<16)) {
+ print("0\n");
+ } else {
+ print($noch . "\n");
+ }
+
switch ($msg_parts[1]) {
case 'start':
$host = $msg_parts[0];