Location: PHPKode > projects > chillyCMS > chillyCMS/admin/tools.site.php
<?php
//#################################################################################################
//	Tools 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.backend.include.php");
require_once(PATH."/core/zipper.class.php");
require_once(PATH."/admin/tools.include.php");

if (isset($_POST["tool"])) { $tool = only_text($_POST["tool"]); } else { $tool = false; }
if (isset($_POST["action"])) { $action = only_text($_POST["action"]); } else { $action = false; }
if (isset($_POST["name"])) { $name = $_POST["name"]; } else { $name = false; }
if (isset($_POST["table"])) { $table = $_POST["table"]; } else { $table = false; }

if ($action=="backupnow") { $msg = backup_now(); }
elseif ($action=="delete") { $msg = delete_backup($name); }
elseif ($action=="reset") { $msg = reset_stats($table); }
elseif ($action==$l_tools["lbl_sendnl"]) { $msg	= send_newsletter(); }
else { $msg = false; }
 
$page->use_scripts("ckeditor");
$page->print_head();
$page->add(tools_menu($tool));
$page->print_body($msg);
?>
Return current item: chillyCMS