示例#1
0
文件: calendar.php 项目: philum/cms
function plug_calendar($p, $o)
{
    $rid = 'plg' . randid();
    $ret = calendar_build($p, 'res');
    $bt = input(1, 'res', '');
    return $bt . divd($rid, $ret);
}
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.status.inc');
	include_once('ressources/class.artica.graphs.inc');
	include_once('ressources/class.calendar.inc');
	include_once('ressources/class.tcpip.inc');
	$users=new usersMenus();
	if(!$users->AsDansGuardianAdministrator){die();}	
	if(isset($_GET["events"])){popup_list();exit;}
	if(isset($_POST["unlock"])){unlock();exit;}
	if(isset($_POST["biglock"])){biglock();exit;}
	if(isset($_GET["js"])){FULL_JS();exit;}
	if(isset($_GET["calendar"])){calendar();exit;}
	if(isset($_GET["title-zday"])){calendar_title();exit;}
	if(isset($_GET["build-calendar"])){calendar_build();exit;}
	if(isset($_POST["reload-unlock"])){reload_unlock();exit;}
	if(isset($_GET["full-js"])){FULL_JS();exit;}
	if(isset($_GET["tabs"])){tabs();exit;}
	
	if(isset($_GET["week"])){week_table();exit;}
	if(isset($_GET["week-events"])){week_events();exit;}
BlockedSites2();	


function FULL_JS(){
	header("content-type: application/x-javascript");
	$t=$_GET["t"];
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->javascript_parse_text("{blocked_requests}");
    exit;
}
if (isset($_GET["js"])) {
    FULL_JS();
    exit;
}
if (isset($_GET["calendar"])) {
    calendar();
    exit;
}
if (isset($_GET["title-zday"])) {
    calendar_title();
    exit;
}
if (isset($_GET["build-calendar"])) {
    calendar_build();
    exit;
}
if (isset($_POST["reload-unlock"])) {
    reload_unlock();
    exit;
}
if (isset($_GET["full-js"])) {
    FULL_JS();
    exit;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["week"])) {