2003-05-22 08:12:53 -04:00
|
|
|
<?php
|
|
|
|
|
2003-06-12 18:42:48 -04:00
|
|
|
require_once('../wp-config.php');
|
2003-12-18 04:36:13 -05:00
|
|
|
require_once(ABSPATH.'/wp-admin/auth.php');
|
2004-01-27 03:31:17 -05:00
|
|
|
require(ABSPATH.'/wp-admin/admin-functions.php');
|
2003-05-22 08:12:53 -04:00
|
|
|
|
2003-08-06 20:00:55 -04:00
|
|
|
function gethelp_link($this_file, $helptag) {
|
2003-08-15 15:39:58 -04:00
|
|
|
$url = 'http://wordpress.org/docs/reference/links/#'.$helptag;
|
|
|
|
$s = ' <a href="'.$url.'" title="Click here for help">?</a>';
|
2003-08-06 20:00:55 -04:00
|
|
|
return $s;
|
|
|
|
}
|
|
|
|
|
2004-01-27 01:35:07 -05:00
|
|
|
if (!isset($use_cache)) $use_cache=1;
|
|
|
|
if (!isset($blogID)) $blog_ID=1;
|
|
|
|
if (!isset($debug)) $debug=0;
|
2003-05-22 08:12:53 -04:00
|
|
|
timer_start();
|
|
|
|
|
2004-01-27 01:35:07 -05:00
|
|
|
$dogs = $wpdb->get_results("SELECT * FROM $tablecategories WHERE 1=1");
|
|
|
|
foreach ($dogs as $catt) {
|
|
|
|
$cache_categories[$catt->cat_ID] = $catt;
|
|
|
|
}
|
|
|
|
|
2003-05-22 08:12:53 -04:00
|
|
|
get_currentuserinfo();
|
|
|
|
|
2003-08-15 15:39:58 -04:00
|
|
|
$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'));
|
2003-05-22 08:12:53 -04:00
|
|
|
|
|
|
|
// let's deactivate quicktags on IE Mac and Lynx, because they don't work there.
|
|
|
|
if (($is_macIE) || ($is_lynx))
|
2004-01-27 01:35:07 -05:00
|
|
|
$use_quicktags = 0;
|
2003-05-22 08:12:53 -04:00
|
|
|
|
2003-12-18 04:36:13 -05:00
|
|
|
$wpvarstoreset = array('profile','standalone','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback');
|
|
|
|
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
|
2004-01-27 01:35:07 -05:00
|
|
|
$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"];
|
|
|
|
}
|
|
|
|
}
|
2003-05-22 08:12:53 -04:00
|
|
|
}
|
|
|
|
|
2004-04-17 14:44:10 -04:00
|
|
|
if ($standalone == 0) :
|
2003-05-22 08:12:53 -04:00
|
|
|
|
2003-05-23 04:29:51 -04:00
|
|
|
?><!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">
|
2003-05-22 08:12:53 -04:00
|
|
|
<head>
|
2003-10-13 01:15:47 -04:00
|
|
|
<title>WordPress › <?php bloginfo('name') ?> › <?php echo $title; ?></title>
|
2004-01-03 00:21:38 -05:00
|
|
|
<link rel="stylesheet" href="wp-admin.css" type="text/css" />
|
|
|
|
<link rel="shortcut icon" href="../wp-images/wp-favicon.png" />
|
2004-03-01 01:13:32 -05:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />
|
2003-05-22 08:12:53 -04:00
|
|
|
<?php
|
|
|
|
if ($redirect==1) {
|
|
|
|
?>
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
<!--
|
|
|
|
function redirect() {
|
|
|
|
window.location = "<?php echo $redirect_url; ?>";
|
|
|
|
}
|
|
|
|
setTimeout("redirect();", 600);
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
<?php
|
2003-05-23 04:29:51 -04:00
|
|
|
} // redirect
|
2003-05-22 08:12:53 -04:00
|
|
|
?>
|
2003-05-23 04:29:51 -04:00
|
|
|
|
2003-05-22 08:12:53 -04:00
|
|
|
<script language="javascript" type="text/javascript">
|
2003-12-21 19:09:59 -05:00
|
|
|
//<![CDATA[
|
2003-05-22 08:12:53 -04:00
|
|
|
|
2004-02-05 00:40:25 -05:00
|
|
|
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);
|
|
|
|
if (rel != null) {
|
|
|
|
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);
|
|
|
|
if (rel != null) {
|
|
|
|
rel.value = inputs;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
window.onload = blurry;
|
2003-12-21 19:09:59 -05:00
|
|
|
//]]>
|
2003-05-22 08:12:53 -04:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
2004-02-05 09:28:02 -05:00
|
|
|
<h1 id="wphead"><a href="http://wordpress.org" rel="external" title="Visit WordPress.org">WordPress</a></h1>
|
2003-05-22 08:12:53 -04:00
|
|
|
<?php
|
|
|
|
if ($profile==0) {
|
2004-01-27 01:35:07 -05:00
|
|
|
include('menu.php');
|
2003-05-22 08:12:53 -04:00
|
|
|
}
|
2004-02-05 09:28:02 -05:00
|
|
|
?>
|
|
|
|
<?php
|
2004-04-17 14:44:10 -04:00
|
|
|
endif;
|
2004-01-28 11:18:49 -05:00
|
|
|
?>
|