2003-05-22 14:12:53 +02:00
|
|
|
<?php
|
|
|
|
|
2003-06-13 00:42:48 +02:00
|
|
|
require_once('../wp-config.php');
|
2003-12-18 10:36:13 +01:00
|
|
|
require_once(ABSPATH.'/wp-admin/auth.php');
|
2003-05-22 14:12:53 +02:00
|
|
|
|
2003-08-07 02:00:55 +02:00
|
|
|
function gethelp_link($this_file, $helptag) {
|
2003-08-15 21:39:58 +02:00
|
|
|
$url = 'http://wordpress.org/docs/reference/links/#'.$helptag;
|
|
|
|
$s = ' <a href="'.$url.'" title="Click here for help">?</a>';
|
2003-08-07 02:00:55 +02:00
|
|
|
return $s;
|
|
|
|
}
|
|
|
|
|
2003-05-22 14:12:53 +02:00
|
|
|
if (!isset($use_cache)) $use_cache=1;
|
|
|
|
if (!isset($blogID)) $blog_ID=1;
|
|
|
|
if (!isset($debug)) $debug=0;
|
|
|
|
timer_start();
|
|
|
|
|
|
|
|
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');
|
|
|
|
$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 14:12:53 +02:00
|
|
|
|
2003-08-12 22:35:53 +02:00
|
|
|
$admin_area_charset = (!isset($admin_area_charset)) ? 'iso-8859-15' : $admin_area_charset;
|
|
|
|
|
2003-05-22 14:12:53 +02:00
|
|
|
// let's deactivate quicktags on IE Mac and Lynx, because they don't work there.
|
|
|
|
if (($is_macIE) || ($is_lynx))
|
2003-05-23 10:29:51 +02:00
|
|
|
$use_quicktags = 0;
|
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) {
|
|
|
|
$wpvar = $wpvarstoreset[$i];
|
|
|
|
if (!isset($$wpvar)) {
|
|
|
|
if (empty($HTTP_POST_VARS["$wpvar"])) {
|
|
|
|
if (empty($HTTP_GET_VARS["$wpvar"])) {
|
|
|
|
$$wpvar = '';
|
2003-05-22 14:12:53 +02:00
|
|
|
} else {
|
2003-12-18 10:36:13 +01:00
|
|
|
$$wpvar = $HTTP_GET_VARS["$wpvar"];
|
2003-05-22 14:12:53 +02:00
|
|
|
}
|
|
|
|
} else {
|
2003-12-18 10:36:13 +01:00
|
|
|
$$wpvar = $HTTP_POST_VARS["$wpvar"];
|
2003-05-22 14:12:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($standalone == 0) {
|
|
|
|
|
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>
|
2003-10-13 07:15:47 +02:00
|
|
|
<title>WordPress › <?php bloginfo('name') ?> › <?php echo $title; ?></title>
|
2003-08-15 17:12:25 +02:00
|
|
|
<link rel="stylesheet" href="wp-admin.css" type="text/css" />
|
2003-08-12 22:35:53 +02:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $admin_area_charset ?>" />
|
2003-05-22 14:12:53 +02: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 10:29:51 +02:00
|
|
|
} // redirect
|
2003-05-22 14:12:53 +02:00
|
|
|
?>
|
2003-05-23 10:29:51 +02:00
|
|
|
|
2003-05-22 14:12:53 +02:00
|
|
|
<script language="javascript" type="text/javascript">
|
2003-12-22 01:09:59 +01:00
|
|
|
//<![CDATA[
|
2003-05-22 14:12:53 +02:00
|
|
|
|
|
|
|
function profile(userID) {
|
2003-12-11 01:22:36 +01:00
|
|
|
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");
|
2003-05-22 14:12:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function launchupload() {
|
2003-12-16 02:58:39 +01:00
|
|
|
window.open ("upload.php", "wpupload", "width=380,height=360,location=0,menubar=0,resizable=1,scrollbars=yes,status=1,toolbar=0");
|
2003-05-22 14:12:53 +02:00
|
|
|
}
|
|
|
|
|
2003-08-07 02:00:55 +02: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");
|
|
|
|
}
|
2003-12-22 01:09:59 +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);
|
|
|
|
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;
|
|
|
|
//]]>
|
2003-05-22 14:12:53 +02:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
if ($profile==0) {
|
2003-12-11 01:22:36 +01:00
|
|
|
include('menu.php');
|
2003-05-22 14:12:53 +02:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2003-05-23 10:29:51 +02:00
|
|
|
<?php
|
2003-05-22 14:12:53 +02:00
|
|
|
}
|
2003-06-13 00:42:48 +02:00
|
|
|
?>
|