diff options
author | Udo Walter | 2017-11-21 17:52:04 +0100 |
---|---|---|
committer | Udo Walter | 2017-11-21 17:52:04 +0100 |
commit | 653851f35d0eea172c2302e9f1b6f0d03c70096c (patch) | |
tree | 42f267c360104b98d2e3199273adba62a1e2023b /modules-available/backup/hooks/main-warning.inc.php | |
parent | [internetaccess] reworked permission system from "click and you get error" to... (diff) | |
parent | [statistics] Also adapt MAC-UUID fixing code to mltk changes (diff) | |
download | slx-admin-653851f35d0eea172c2302e9f1b6f0d03c70096c.tar.gz slx-admin-653851f35d0eea172c2302e9f1b6f0d03c70096c.tar.xz slx-admin-653851f35d0eea172c2302e9f1b6f0d03c70096c.zip |
Merge remote-tracking branch 'origin/master' into permission-manager
# Conflicts:
# modules-available/backup/templates/_page.html
# style/default.css
Diffstat (limited to 'modules-available/backup/hooks/main-warning.inc.php')
-rw-r--r-- | modules-available/backup/hooks/main-warning.inc.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules-available/backup/hooks/main-warning.inc.php b/modules-available/backup/hooks/main-warning.inc.php new file mode 100644 index 00000000..0a0be7cc --- /dev/null +++ b/modules-available/backup/hooks/main-warning.inc.php @@ -0,0 +1,8 @@ +<?php + +$last = Property::get('backup.last-time', 0); +if ($last === 0) { + Message::addWarning('backup.last-time-unknown', true); +} elseif ($last + (30 * 86400) < time()) { + Message::addWarning('backup.last-time', true, date('d.m.Y', $last)); +} |