• [Mod] Maintenance Page - Set from Admin Control panel 5 0 5 1
Currently:  

Author Topic: [Mod] Maintenance Page - Set from Admin Control panel  (Read 93921 times)

0 Members and 1 Guest are viewing this topic.

Offline piyda

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [Mod] Maintenance Page - Set from Admin Control panel
« Reply #45 on: June 04, 2007, 01:32:39 PM »
Thanks!

You're a life saver :-D

Offline apearce

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: [Mod] Maintenance Page - Set from Admin Control panel
« Reply #46 on: January 27, 2009, 05:30:48 PM »
Hey, my first ever post so please bare with me :). Just an update if anybody's interested. If you want to be able to log in and still use the site as an administrator, here's a code I thought I'd share:
-----
Hey, meine erste Post, so wenden Sie sich bitte mit nackten mich:). Nur ein Update, wenn jemand interessiert. Wenn Sie möchten, können sich anmelden, und nach wie vor nutzen die Site als Administrator an, hier ist ein Code Ich dachte, ich würde Aktie:

FIND/FINDE (includes/page_header.php):
Code: [Select]
if ($maintenance){
  header("Location: ".$site_sess->url($redirect_url, "&"));
  exit;
}

REPLACE WITH/ERSETSEN DURCH:
Code: [Select]
if ($user_info['user_level'] != ADMIN && $maintenance) {
  header("Location: " . $site_sess->url($redirect_url, "&"));
  exit;
}

Sorry für die schlechte Deutsch, ich habe Google Translator.

Login into your Admin CP by visiting gallery/admin/, once in the Admin CP you can return to your gallery with maintenance mode on.

Offline sanko86

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
    • Elemegim
Re: [Mod] Maintenance Page - Set from Admin Control panel
« Reply #47 on: January 27, 2009, 06:08:24 PM »
ý thanks good mod.
Web site:http://www.anlatiyoruz.com
Hayat zorluklarla doludur.Ama en zoru insanýn insana düþmanlýðýdýr.

Offline Bommel

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Re: [Mod] Maintenance Page - Set from Admin Control panel
« Reply #48 on: January 31, 2010, 05:35:14 PM »
Hallo allerseits,

habe diese MOD installiert und funktioniert bestens. :thumbup:

Mir ist aber aufgefallen, dass der Redirect nur über die Indexseite erfolgt. Wenn jetzt jemand z.B. die Top10 als Favorit abgelegt hat, dann kann er auf diese Seite trotzdem noch zugreifen.

Um das zu unterbinden - reicht es aus, wenn ich folgenden Code in jede php-Seite einfüge?

//-----------------------------------------------------
//--- Maintenance      --------------------------------
//-----------------------------------------------------
$maintenance $config['maintenance'];
$redirect_url TEMPLATE_PATH."/maintenance.html";
if (
$maintenance){
  
header("Location: ".$site_sess->url($redirect_url"&"));
  exit;
}

//-----------------------------------------------------
//--- End of Maintenance      -------------------------
//-----------------------------------------------------


Freundliche Grüße, Bommel
Freundliche Grüße, Bommel

Nicht die Geduld mit mir verlieren, ich bin noch am Lernen./ Do not lose the patience with me, I am still in the learning. ;)

Offline Bommel

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Re: [Mod] Maintenance Page - Set from Admin Control panel
« Reply #49 on: February 02, 2010, 02:32:57 PM »
Hallo allerseits,

wer diese MOD hier verwendet: http://www.4homepages.de/forum/index.php?topic=17155.msg91450#msg91450 kann für die Moderatoren auch die Zugriffsberechtigung während dem Wartungsmodus setzen, in dem er diese Zeile:

if ($maintenance && $user_info['user_level'] != ADMIN){

mit folgender ersetzt:

if ($maintenance && $user_info['user_level'] != ADMIN && $user_info['user_level'] != MODERADOR){

Ich liebe diese MOD... :D

Freundliche Grüße, Bommel
Freundliche Grüße, Bommel

Nicht die Geduld mit mir verlieren, ich bin noch am Lernen./ Do not lose the patience with me, I am still in the learning. ;)

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [Mod] Maintenance Page - Set from Admin Control panel
« Reply #50 on: August 29, 2010, 04:03:00 AM »
I miss Vanos help and advice. He was so nice before
« Last Edit: August 29, 2010, 04:19:48 AM by zakaria666 »