4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: mantra on May 07, 2003, 02:13:37 AM

Title: Mods under contruction
Post 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:
Title: Mods under contruction
Post by: V@no on May 07, 2003, 02:18:54 AM
and? :?
what whould it do?
Title: Mods under contruction
Post by: Apollo13 on May 07, 2003, 07:35:28 AM
i think he mean so the site can be turned offline. So a message will be shown that the site is under costrution...
Title: Mods under contruction
Post by: Xwall on May 07, 2003, 10:42:17 AM
I think this is a good idea.  :)
Title: Mods under contruction
Post by: V@no on May 07, 2003, 10:58:20 AM
then, maybe the simplies way to do is add in constants.php something like:
Code: [Select]
// 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:
Code: [Select]
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.
Title: Mods under contruction
Post by: Apollo13 on May 07, 2003, 02:13:39 PM
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?
Title: yeah V@no
Post by: mantra on May 08, 2003, 04:42:22 AM
thanksV@no but how I add this feature in admin sections so if  he admin he can switching on or off the pages.