From 936d2ab48da1080ce1f6b4af40eb7f381f259cb4 Mon Sep 17 00:00:00 2001 From: shish Date: Sat, 21 Apr 2007 14:02:15 +0000 Subject: [PATCH] merging minor updates from trunk git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.0@6 7f39781d-f577-437e-ae19-be835c7a54ca --- README.txt | 2 +- ext/downtime.ext.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.txt b/README.txt index 467e600b..b7a71087 100644 --- a/README.txt +++ b/README.txt @@ -54,7 +54,7 @@ Upgrade process: 3) Create a new, blank database, separate from the old one 4) Unzip shimmie2 into a different folder than shimmie1 5) Visit the URL of shimmie2 -6) Full in the old database location, the new database location, and the full +6) Fill in the old database location, the new database location, and the full path to the old installation folder (the folder where the old "images" and "thumbs" can be found) 7) Click "upgrade" diff --git a/ext/downtime.ext.php b/ext/downtime.ext.php index 6a4edaea..fd707005 100644 --- a/ext/downtime.ext.php +++ b/ext/downtime.ext.php @@ -17,6 +17,14 @@ class Downtime extends Extension { $event->config->set_bool("downtime", $_POST['downtime']); $event->config->set_string("downtime_message", $_POST['downtime_message']); } + if(is_a($event, 'PageRequestEvent')) { + global $config; + if($config->get_bool("downtime")) { + global $page; + + $page->add_side_block(new Block("Downtime", "DOWNTIME MODE IS ON!"), 0); + } + } } // }}} // do things {{{