Location: PHPKode > projects > chillyCMS > chillyCMS/admin/content.site.php
<?php
//#################################################################################################
//	Content 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/menuitem.class.php");
require_once(PATH."/admin/content.include.php");
require_once(PATH."/admin/modules.include.php");

if (isset($_POST["name"]))	{ $name		= 		$_POST["name"];		} else { $name = false; }
if (isset($_POST["status"]))	{ $status	= only_text(	$_POST["status"]);	} else { $status = false; }
if (isset($_POST["direction"]))	{ $direction	= only_text(	$_POST["direction"]);	} else { $direction = false; }
if (isset($_POST["id"]))	{ $id		= intval(	$_POST["id"]);		} else { $id = 0; }
if (isset($_POST["action"]))	{ $action	= only_text(	$_POST["action"]);	} else { $action = false; }
if (isset($_POST["access"]))	{ $access	= intval(	$_POST["access"]);	} else { $access = 0; }
if (isset($_POST["order"]))	{ $order	= only_text(	$_POST["order"]);	} else { $order = "alphaasc"; }

$orderby = get_order();

if	($action == "switch")		{ $msg	= switch_status_content($status,$id);		}
elseif	($action == "delete")		{ $msg	= delete_content($id);				}
elseif	($action == "move")		{ $msg	= move_item($id,$direction,"site_content");	}
elseif	($action == "switchaccess")	{ $msg	= switch_access($id,$access);			}
elseif	($action == "newmenu")		{ $msg	= create_menu($name);				}
elseif	($action == "changestartpage")	{ $msg	= change_startpage($id);			}
else { $msg = ""; }

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