} /*if (file_exists($FILE_BASE.'/use_comp_name')) require_once($FILE_BASE.'/'.(array_key_exists('COMPUTERNAME',$_ENV)?$_ENV['COMPUTERNAME']:$_SERVER['SERVER_NAME']).'.php'); else */ require_once $FILE_BASE . '/info.php'; if (array_key_exists('given_password', $_POST)) { $given_password = $_POST['given_password']; if (ce_check_master_password($given_password)) { if (!array_key_exists('path', $_POST) && !array_key_exists('path', $_GET)) { do_get_path($given_password); } else { if (!isset($_POST['path_new'])) { $_POST['path_new'] = ''; } $path = $_POST['path_new'] != '' ? $_POST['path_new'] : (array_key_exists('path', $_POST) ? $_POST['path'] : $_GET['path']); do_page($given_password, $path); } } else { code_editor_do_login(); } } else { code_editor_do_login(); } code_editor_do_footer(); /** * Output the code editors page header. * * @param ID_TEXT The type our form clicks are. * @param ID_TEXT The target our form clicks get sent to. */ function code_editor_do_header($type, $target = '_top')
$ims = preg_replace('/;.*$/', '', $_SERVER["HTTP_IF_MODIFIED_SINCE"]); if ($ims == $lastdate) { header("HTTP/1.0 304 Not Modified"); exit; } } print "<?xml version=\"1.0\"?>\n"; ?> <rss version="2.0"> <channel> <title><?php print $name; ?> </title> <description><?php print $name; ?> - NITLog</description> <link><?php print "{$absoluteurl}/{$topdir}/"; ?> </link> <language>en-ca</language> <generator>NITLog</generator> <docs>http://blogs.law.harvard.edu/tech/rss</docs> <?php do_page($entries); ?> </channel> </rss>
$title['month'] = $value; break; case 'post': $title['post'] = $onepost['0']['title']; break; default: break; } } } $pagetitle = trim(sprintf('%s %s %s %s %s %s %s %s', $title['page'], $title['mode'], $title['section'], $title['category'], $title['dated'], $title['month'], $title['year'], $title['post'])); if (!$pagetitle) { $pagetitle = 'Main Page'; } // Page: Start do_header($pagetitle, $usejquery, true); if (isset($req_page)) { do_page($posts); // Don't forget to pass the posts to the page, eh. } else { echo '<div class="container"><!-- Page -->'; login_box(); if ($req_posts) { $posts->displayPosts('display'); } echo '</div><!-- Page -->'; } do_footer(); ?>
session_start(); include 'lib.php'; $hasError = false; $errormsg = ""; print_header("Series Control Panel"); ?> <div class="grid_10 suffix_1 prefix_1"> <div id="gatherling_main" class="box"> <div class="uppertitle"> Series Control Panel </div> <?php if (!Player::isLoggedIn()) { linkToLogin(); } else { do_page(); } ?> <div class="clear"></div> </div></div> <?php print_footer(); ?> <?php function do_page() { handleActions(); $player_series = Player::getSessionPlayer()->stewardsSeries(); if (count($player_series) == 0) {