示例#1
0
$hc_Side[] = array(CalRoot . '/', 'view_public.png', $hc_lang_core['Link'], 1);
include HCLANG . '/admin/core.php';
include HCLANG . '/admin/menu.php';
echo '<!doctype html>
<html lang="' . $hc_lang_config['HTMLTemplate'] . '">
<head>
	<meta charset="' . $hc_lang_config['CharSet'] . '">
	<meta name="robots" content="noindex, nofollow">
	
	<link rel="stylesheet" type="text/css" href="' . AdminRoot . '/css/admin.css">
	<!--[if IE 8]>
		<link rel="stylesheet" type="text/css" href="' . AdminRoot . '/css/admin_ie8.css">
		<script src="' . AdminRoot . '/inc/javascript/ie8.js"></script>
	<![endif]-->
	
	<link rel="shortcut icon" href="' . CalRoot . '/admin/favicon' . (has_pending() > 0 ? '_e' : '') . '.ico">
	<title>' . CalName . ', powered by Helios Calendar</title>
	<script src="' . CalRoot . '/inc/javascript/validation.js"></script>
	<script>
	//<!--
	if(top.location != location)
		top.location.href = document.location.href;
';
if (!isset($_SESSION['AdminLoggedIn'])) {
    include_once HCADMIN . '/inc/javascript/login.php';
} else {
    include_once HCADMIN . '/inc/javascript/core.php';
}
echo '
	//-->
	</script>
示例#2
0
文件: check.php 项目: pvidali/BCSR-1
<?php

/**
 * @package Helios Calendar
 * @license GNU General Public License version 2 or later; see LICENSE
 */
define('hcAdmin', true);
include 'loader.php';
admin_logged_in();
action_headers();
if (isset($_GET['go'])) {
    echo has_pending();
} else {
    exit;
}