Example #1
0
 private function upgrade()
 {
     header("Expires: Thu, 01 Jan 1970 00:00:00 GMT");
     header("Cache-Control: no-store, no-cache, must-revalidate");
     camp_display_message("The website you are trying to view is currently down for maintenance.\n            <br>Normal service will resume shortly.");
     echo '<META HTTP-EQUIV="Refresh" content="10">';
 }
Example #2
0
.DIRECTORY_SEPARATOR.'campsite_constants.php');
require_once(CS_PATH_CONFIG.DIR_SEP.'install_conf.php');

// goes to install process if configuration files does not exist yet
if (!file_exists(CS_PATH_CONFIG.DIR_SEP.'configuration.php')
|| !file_exists(CS_PATH_CONFIG.DIR_SEP.'database_conf.php')) {
    header('Location: '.$Campsite['SUBDIR'].'/install/');
    exit(0);
}

require_once(CS_PATH_SITE.DIR_SEP.'include'.DIR_SEP.'campsite_init.php');
require_once(CS_PATH_CONFIG.DIR_SEP.'liveuser_configuration.php');
require_once(CS_PATH_SITE.DIR_SEP.'classes'.DIR_SEP.'CampTemplateCache.php');

if (file_exists(CS_PATH_SITE.DIR_SEP.'upgrade.php')) {
    camp_display_message("Site is down for upgrade. Please initiate upgrade process.");
    echo '<META HTTP-EQUIV="Refresh" content="10">';
    exit(0);
}

// detect extended login/logout files
$prefix = file_exists(CS_PATH_SITE.DIR_SEP.'admin-files'.DIR_SEP.'ext_login.php') ? '/ext_' : '/';

global $ADMIN_DIR;
global $ADMIN;
global $g_user;
require_once(CS_PATH_SITE.DIR_SEP.$ADMIN_DIR.DIR_SEP.'camp_html.php');
require_once(CS_PATH_CLASSES.DIR_SEP.'SecurityToken.php');

set_include_path(get_include_path() . PATH_SEPARATOR . CS_PATH_PEAR_LOCAL);