<?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                                 */
/************************************************************************/
if (!defined('ADMIN_ALLOW') && !defined('ADMIN_MAX')) {
	die ("Access Denied");
}
if ($acces == 1) {
if($admintest && $adminsecu)  {

  $file = fopen("".$cache."/".$cache_prefix."_cMax_config.php", "w");
$content = $begin_content;
$content .= "\$cache_admin = \"0\";\n";
$content .= "\$cache_vnews = \"0\";\n";
$content .= "\$cache_unews = \"0\";\n";
$content .= "\$cache_anews = \"0\";\n";
$content .= "\$cache_varchives = \"0\";\n";
$content .= "\$cache_uarchives = \"0\";\n";
$content .= "\$cache_aarchives = \"0\";\n";
$content .= "\$cache_varchives1 = \"0\";\n";
$content .= "\$cache_uarchives1 = \"0\";\n";
$content .= "\$cache_aarchives1 = \"0\";\n";
$content .= "\$cache_varchives2 = \"0\";\n";
$content .= "\$cache_uarchives2 = \"0\";\n";
$content .= "\$cache_aarchives2 = \"0\";\n";
$content .= "\$cache_vtopics = \"0\";\n";
$content .= "\$cache_utopics = \"0\";\n";
$content .= "\$cache_atopics = \"0\";\n";
$content .= $end_content;
fwrite($file, $content);
fclose($file);
redirect_url("".$admin_file.".php?op=cMax");


}
}else {
	echo "Access Denied";
}