Location: PHPKode > projects > chillyCMS > chillyCMS/admin/modulesedit.site.php
<?php
//#################################################################################################
//	Modules edit 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."/core/frontendpage.class.php");
require_once(PATH."/core/listitem.class.php");
require_once(PATH."/admin/modulesedit.include.php");

$action = false;

if (isset($_REQUEST["action"])) 	{ $action	= only_text(	$_REQUEST["action"]);		}
if (isset($_REQUEST["direction"]))	{ $direction	= only_text(	$_REQUEST["direction"]);	}
if (isset($_POST["status"]))		{ $status	= only_text(	$_POST["status"]);		}
if (isset($_POST["access"]))		{ $access	= intval(	$_POST["access"]);		}
if (isset($_REQUEST["id"]))		{ $id		= intval(	$_REQUEST["id"]);		}
if (isset($_GET["moveid"]))		{ $moveid	= intval(	$_GET["moveid"]);		}

if	($action=="move") 	{ $msg = move_item($moveid,$direction,"site_modules");	} 
elseif	($action=="save")	{ $msg = save_module($id);				}
else				{ $msg = ""; }

$page->use_scripts(array("toggle.js","specialrightsmenu.js"));
$page->print_head();
$page->add(moduleform($id));
$page->print_body($msg);
?>
Return current item: chillyCMS