CoreFiles by mySites.guru
admin-header.php147 lines, 4,369 bytes, from wordpress-1.0.1-RC1.zip
Raw History Compare with 1.0-RC1
md5
5905c3fec85a8edc08f2a243257e3d99
sha1
737d43af3c6434598b04825208d59c28995fa71d
sha256
c7aa885d7bbfb340a4c4402c4f681a5e4679853a1806f3e2649a08ed24fbda1b
<?php

require_once('../wp-config.php');
require_once(ABSPATH.'/wp-admin/auth.php');

function gethelp_link($this_file, $helptag) {
    $url = 'http://wordpress.org/docs/reference/links/#'.$helptag;
    $s = ' <a href="'.$url.'" title="Click here for help">?</a>';
    return $s;
}

if (!isset($use_cache))	$use_cache=1;
if (!isset($blogID))	$blog_ID=1;
if (!isset($debug))		$debug=0;
timer_start();

get_currentuserinfo();

$posts_per_page = get_settings('posts_per_page');
$what_to_show = get_settings('what_to_show');
$archive_mode = get_settings('archive_mode');
$time_difference = get_settings('time_difference');
$date_format = stripslashes(get_settings('date_format'));
$time_format = stripslashes(get_settings('time_format'));

$admin_area_charset = (!isset($admin_area_charset)) ? 'iso-8859-15' : $admin_area_charset;

// let's deactivate quicktags on IE Mac and Lynx, because they don't work there.
if (($is_macIE) || ($is_lynx))
	$use_quicktags = 0;

$wpvarstoreset = array('profile','standalone','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback');
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
	$wpvar = $wpvarstoreset[$i];
	if (!isset($$wpvar)) {
		if (empty($HTTP_POST_VARS["$wpvar"])) {
			if (empty($HTTP_GET_VARS["$wpvar"])) {
				$$wpvar = '';
			} else {
				$$wpvar = $HTTP_GET_VARS["$wpvar"];
			}
		} else {
			$$wpvar = $HTTP_POST_VARS["$wpvar"];
		}
	}
}

if ($standalone == 0) {

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WordPress &rsaquo; <?php bloginfo('name') ?> &rsaquo; <?php echo $title; ?></title>
<link rel="stylesheet" href="wp-admin.css" type="text/css" />
<link rel="shortcut icon" href="../wp-images/wp-favicon.png" />
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $admin_area_charset ?>" />
<?php
if ($redirect==1) {
?>
<script language="javascript" type="text/javascript">
<!--
function redirect() {
  window.location = "<?php echo $redirect_url; ?>";
}
setTimeout("redirect();", 600);
//-->
</script>
<?php
} // redirect
?>

<script language="javascript" type="text/javascript">
//<![CDATA[

	function profile(userID) {
		window.open ("profile.php?action=viewprofile&user="+userID, "Profile", "width=500, height=450, location=0, menubar=0, resizable=0, scrollbars=1, status=1, titlebar=0, toolbar=0, screenX=60, left=60, screenY=60, top=60");
	}

	function launchupload() {
		window.open ("upload.php", "wpupload", "width=380,height=360,location=0,menubar=0,resizable=1,scrollbars=yes,status=1,toolbar=0");
	}

    function helpWindow(url) {
		window.open(url, "Help", "width=640, height=450, location=0, menubar=0, resizable=0, scrollbars=1, status=1, titlebar=0, toolbar=0, screenX=60, left=60, screenY=60, top=60");
	}
	function GetElementsWithClassName(elementName, className) {
	   var allElements = document.getElementsByTagName(elementName);
	   var elemColl = new Array();
	   for (i = 0; i < allElements.length; i++) {
		   if (allElements[i].className == className) {
			   elemColl[elemColl.length] = allElements[i];
		   }
	   }
	   return elemColl;
	}
	
	function blurry() {
	   if (!document.getElementById) return;
	
	   var aInputs = document.getElementsByTagName('input');
	
	   for (var i = 0; i < aInputs.length; i++) {      
	
		   aInputs[i].onclick = function() {
			   var inputColl = GetElementsWithClassName('input','valinp');
			   var rel = document.getElementById('rel');
			   var inputs = '';
			   for (i = 0; i < inputColl.length; i++) {
				   if (inputColl[i].checked) {
					   if (inputColl[i].value != '') inputs += inputColl[i].value + ' ';
					   }
				   }
			   inputs = inputs.substr(0,inputs.length - 1);
			   rel.value = inputs;
		   }
	
		   aInputs[i].onkeyup = function() {
			   var inputColl = GetElementsWithClassName('input','valinp');
			   var rel = document.getElementById('rel');
			   var inputs = '';
			   for (i = 0; i < inputColl.length; i++) {
				   if (inputColl[i].checked) {
					   inputs += inputColl[i].value + ' ';
					   }
				   }
			   inputs = inputs.substr(0,inputs.length - 1);
			   rel.value = inputs;
		   }
	   
	   }
	}
	
	window.onload = blurry;
//]]>
</script>
</head>
<body>

<?php
if ($profile==0) {
	include('menu.php');
}
?>

<?php
}
?>

No other release has this exact content. See every version of this file.