4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: mantra on May 07, 2003, 02:13:37 AM
-
I wish can have for Mods under contruction , so when the admin make change of the site this mods will activate.
:wink:
-
and? :?
what whould it do?
-
i think he mean so the site can be turned offline. So a message will be shown that the site is under costrution...
-
I think this is a good idea. :)
-
then, maybe the simplies way to do is add in constants.php something like:
// set to 1 for under construction mode
define('CONSTRUCTION', 0);
then in "main" templates just before
include(ROOT_PATH.'includes/page_header.php');
add something like this:
if (CONSTRUCTION && $user_info['user_level'] != ADMIN) {
header("Location: construction.html");
exit;
}
it will redirect to construction.html page (located in root of 4images) if user is not admin.
-
ah yes i think about this 2. But i think he want this in his admin panel switching on or off...
By the way i'm going 2 work on a admin function 2 add more smilies...
How far have u got the smlie creator or haven't done yet?
-
thanksV@no but how I add this feature in admin sections so if he admin he can switching on or off the pages.