Location: PHPKode > projects > chillyCMS > chillyCMS/admin/settings.site.php
<?php
//#################################################################################################
//	Settings page
//#################################################################################################
//	chillyCMS - Content Management System
//	Copyright (C) 2008
//	Stefanie Wiegand <hide@address.com> & Johannes Cox <hide@address.com>
//	
//	This program is licensed under the GPL 3.0 license. For more information see LICENSE.txt.
//#################################################################################################
define('DOIT',true);

require_once("../core/session.admin.include.php");
require_once(PATH."/admin/settings.include.php");

if (isset($_POST["action"]) && $_POST["action"]=="save") {
	//were the settings saved?
	$msg=save_settings();
	//set new settings
	include(PATH."/core/settings.include.php");
	//set new style
	$style = escape_html($_POST["backendstyle"]);
	$oldstyle = escape_html($_POST["oldbackendstyle"]);
	if ($style!=$oldstyle) {
		$page->set_style($style);
	}
} else {
	$msg = "";
}

$page->use_scripts("toggle.js");
$page->print_head();
$page->add(load_settings());
$page->print_body($msg);
?>
Return current item: chillyCMS