<?php
/************************************************************************/
/* Maximus CMS: Web Portal System                                       */
/* ==============================                                       */
/*                                                                      */
/* Copyright (c) 2002 - 2006                                            */
/* http://www.php-maximus.fr                                            */
/* dev@php-maximus.org                                                  */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/* Based on PHP-NUKE: Web Portal System                                 */
/************************************************************************/
defined('MAXIMUS') or die ('Access denied pre header MAXIMUS directly...');

if (!defined('ADMIN_ALLOW') && (!defined('ADMIN_MAX'))) {

global $cache, $cache_prefix;
	if (is_file("".$cache."/Configuration/".$cache_prefix."_configadvance.php")) {
		include_once ("".$cache."/Configuration/".$cache_prefix."_configadvance.php");
	}

if ( MAXADV_CRYPTAGE == 0 ) {
	if (is_file('kernel/addons/csource.php')) {
		include_once('kernel/addons/csource.php');
		}
	}

if ( MAXADV_ANTICLICKRIGHT == 0 ) {
	echo "<script type='text/javascript' src='kernel/addons/norightclick.js'></script>";
}

if ( MAXADV_ANTISELECT == 0 ) {
	echo "<script type='text/javascript' src='kernel/addons/noselect.js'></script>";
}

}