Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-07-04 16:28:12 +0400
committerkondou <kondou@ts.unde.re>2014-09-09 19:26:11 +0400
commit69f2c0544e80ae1b47a715b3d8e586ac2bfffe98 (patch)
tree693f69163a366c209bf5e2ac6faab4dac05ea1a5 /status.php
parentdc99fd768ac99c380f1110c7bd4dd84d03256cd8 (diff)
Refresh if maintenance mode is over
Using status.php for this. I modified status.php to also show, whether we're in maintenance. Checks every 20 seconds if maintenance is over, if yes: reload.
Diffstat (limited to 'status.php')
-rw-r--r--status.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/status.php b/status.php
index a42c1581b83..db5813814d0 100644
--- a/status.php
+++ b/status.php
@@ -25,9 +25,11 @@ try {
require_once 'lib/base.php';
- if(OC_Config::getValue('installed')==1) $installed='true'; else $installed='false';
+ $installed = OC_Config::getValue('installed') == 1;
+ $maintenance = OC_Config::getValue('maintenance', false);
$values=array(
'installed'=>$installed,
+ 'maintenance' => $maintenance,
'version'=>implode('.', OC_Util::getVersion()),
'versionstring'=>OC_Util::getVersionString(),
'edition'=>OC_Util::getEditionString());