Page 1 of 1

Board Disable - Special

PostPosted: April 7th, 2012, 5:52 pm
by Jessica
Open language/en/common.php

FIND:
Code: Select all
?>


ADD BEFORE:
Code: Select all
// Board disable
$lang = array_merge($lang, array(
   'DISABLE_MESSAGE'         => 'Board unavailable',
   'DISABLE_RETURN'         => 'Return to index page',
));



Open includes/sessions.php

FIND:
Code: Select all
if ($this->data['is_bot'])
       {
        send_status_line(503, 'Service Unavailable');
       }

       $message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE';
       trigger_error($message);


REPLACE WITH:
Code: Select all
header('HTTP/1.1 503 Service Unavailable');
        header('Status: 503 Service Unavailable');

        $template->assign_vars(array(
          'MESSAGE'    => $config['board_disable_msg'],
          'DISABLE'    => $this->lang['DISABLE_MESSAGE'])
        );

        page_header($this->lang['OFFLINE']);

        $template->set_filenames(array(
             'body' => 'board_disable.html'
        ));

        page_footer();

        exit;


Unzip and upload to template folder:
board_disable.zip
(672 Bytes) Downloaded 274 times