Location: PHPKode > projects > chillyCMS > chillyCMS/admin/design.site.php
<?php
//#################################################################################################
//	Design 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/design.include.php");

if (isset($_POST["name"])) { $name = num_text($_POST["name"]); } else { $name = false; }
if (isset($_POST["action"])) { $action = num_text($_POST["action"]); } else { $action = false; }
if (isset($_FILES["newtemplate"])) { $src_file = $_FILES["newtemplate"]["tmp_name"]; } else { $src_file = false; }

if ($src_file != "" && is_safe($src_file)) { $msg = upload_template($src_file); }
elseif ($action=="activate") { $msg = activate_template($name); $settings["template"]=$name; }
elseif ($action=="delete") { $msg = delete_template($name); }
else { $msg = false; }

$page->print_head();
$page->add(load_templates());
$page->print_body($msg);
?>
Return current item: chillyCMS