2003-05-22 14:12:53 +02:00
|
|
|
<?php
|
|
|
|
|
2003-06-13 00:42:48 +02:00
|
|
|
require_once('../wp-config.php');
|
2004-08-01 10:04:39 +02:00
|
|
|
require_once(ABSPATH . '/wp-admin/auth.php');
|
|
|
|
require(ABSPATH . '/wp-admin/admin-functions.php');
|
2003-05-22 14:12:53 +02:00
|
|
|
|
2004-08-01 10:04:39 +02:00
|
|
|
$dogs = $wpdb->get_results("SELECT * FROM $wpdb->categories");
|
2004-01-27 07:35:07 +01:00
|
|
|
foreach ($dogs as $catt) {
|
2004-08-01 10:04:39 +02:00
|
|
|
$cache_categories[$catt->cat_ID] = $catt;
|
2004-01-27 07:35:07 +01:00
|
|
|
}
|
|
|
|
|
2003-05-22 14:12:53 +02:00
|
|
|
get_currentuserinfo();
|
|
|
|
|
2003-08-15 21:39:58 +02:00
|
|
|
$posts_per_page = get_settings('posts_per_page');
|
|
|
|
$what_to_show = get_settings('what_to_show');
|
2004-08-01 10:04:39 +02:00
|
|
|
$date_format = get_settings('date_format');
|
|
|
|
$time_format = get_settings('time_format');
|
2003-05-22 14:12:53 +02:00
|
|
|
|
2003-12-18 10:36:13 +01: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 07:35:07 +01:00
|
|
|
$wpvar = $wpvarstoreset[$i];
|
|
|
|
if (!isset($$wpvar)) {
|
2004-04-21 00:56:47 +02:00
|
|
|
if (empty($_POST["$wpvar"])) {
|
|
|
|
if (empty($_GET["$wpvar"])) {
|
2004-01-27 07:35:07 +01:00
|
|
|
$$wpvar = '';
|
|
|
|
} else {
|
2004-04-21 00:56:47 +02:00
|
|
|
$$wpvar = $_GET["$wpvar"];
|
2004-01-27 07:35:07 +01:00
|
|
|
}
|
|
|
|
} else {
|
2004-04-21 00:56:47 +02:00
|
|
|
$$wpvar = $_POST["$wpvar"];
|
2004-01-27 07:35:07 +01:00
|
|
|
}
|
|
|
|
}
|
2003-05-22 14:12:53 +02:00
|
|
|
}
|
|
|
|
|
2004-04-17 20:44:10 +02:00
|
|
|
if ($standalone == 0) :
|
2003-05-22 14:12:53 +02:00
|
|
|
|
2003-05-23 10:29:51 +02: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 14:12:53 +02:00
|
|
|
<head>
|
2004-07-21 03:59:09 +02:00
|
|
|
<title><?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress</title>
|
2004-01-03 06:21:38 +01:00
|
|
|
<link rel="stylesheet" href="wp-admin.css" type="text/css" />
|
|
|
|
<link rel="shortcut icon" href="../wp-images/wp-favicon.png" />
|
2004-03-01 07:13:32 +01:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />
|
2003-05-22 14:12:53 +02:00
|
|
|
<?php
|
|
|
|
if ($redirect==1) {
|
|
|
|
?>
|
2004-08-01 10:04:39 +02:00
|
|
|
<script type="text/javascript">
|
2003-05-22 14:12:53 +02:00
|
|
|
<!--
|
|
|
|
function redirect() {
|
|
|
|
window.location = "<?php echo $redirect_url; ?>";
|
|
|
|
}
|
|
|
|
setTimeout("redirect();", 600);
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
<?php
|
2003-05-23 10:29:51 +02:00
|
|
|
} // redirect
|
2003-05-22 14:12:53 +02:00
|
|
|
?>
|
2003-05-23 10:29:51 +02:00
|
|
|
|
2004-05-07 23:05:02 +02:00
|
|
|
<?php if (isset($xfn)) : ?>
|
2004-08-01 10:04:39 +02:00
|
|
|
<script type="text/javascript">
|
2003-12-22 01:09:59 +01:00
|
|
|
//<![CDATA[
|
2003-05-22 14:12:53 +02:00
|
|
|
|
2004-02-05 06:40:25 +01:00
|
|
|
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-22 01:09:59 +01:00
|
|
|
//]]>
|
2003-05-22 14:12:53 +02:00
|
|
|
</script>
|
2004-04-28 07:34:50 +02:00
|
|
|
<?php endif; ?>
|
2004-04-19 10:09:27 +02:00
|
|
|
|
2004-05-22 10:45:36 +02:00
|
|
|
<?php do_action('admin_head', ''); ?>
|
2003-05-22 14:12:53 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2004-08-01 10:04:39 +02:00
|
|
|
|
2004-04-28 21:49:27 +02:00
|
|
|
<div id="wphead">
|
2004-09-14 12:17:12 +02:00
|
|
|
<h1><?php echo wptexturize(get_settings(('blogname'))); ?> <span>(<a href="<?php echo get_settings('home') . '/' . get_settings('blogfilename'); ?>"><?php _e('View site') ?> »</a>)</span></h1>
|
2004-04-28 21:49:27 +02:00
|
|
|
</div>
|
2004-04-28 07:34:50 +02:00
|
|
|
|
2003-05-22 14:12:53 +02:00
|
|
|
<?php
|
2004-04-28 07:34:50 +02:00
|
|
|
require('./menu.php');
|
2004-04-17 20:44:10 +02:00
|
|
|
endif;
|
2004-01-28 17:18:49 +01:00
|
|
|
?>
|