2003-05-22 08:12:53 -04:00
< ? php
2003-06-12 18:42:48 -04:00
require_once ( '../wp-config.php' );
2003-05-25 08:43:31 -04:00
require_once ( $abspath . $b2inc . '/b2template.functions.php' );
require_once ( $abspath . '/wp-admin/b2verifauth.php' );
require_once ( $abspath . $b2inc . '/b2vars.php' );
require_once ( $abspath . $b2inc . '/b2functions.php' );
require_once ( $abspath . $b2inc . '/xmlrpc.inc' );
require_once ( $abspath . $b2inc . '/xmlrpcs.inc' );
2003-05-22 08:12:53 -04:00
2003-08-06 20:00:55 -04:00
function gethelp_link ( $this_file , $helptag ) {
$url = 'help/en/' . $this_file . '.help.html#' . $helptag ;
2003-08-09 19:10:16 -04:00
$s = ' <span class="helplink"><a href="' . $url . '" onclick="javascript:helpWindow(\'' . $url . '\'); return false;" title="Click here for help">[?]</a></span>' ;
2003-08-06 20:00:55 -04:00
return $s ;
}
2003-05-22 08:12:53 -04:00
if ( ! isset ( $use_cache )) $use_cache = 1 ;
if ( ! isset ( $blogID )) $blog_ID = 1 ;
if ( ! isset ( $debug )) $debug = 0 ;
timer_start ();
get_currentuserinfo ();
2003-06-15 18:48:49 -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
2003-08-12 16:35:53 -04:00
$admin_area_charset = ( ! isset ( $admin_area_charset )) ? 'iso-8859-15' : $admin_area_charset ;
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 ))
2003-05-23 04:29:51 -04:00
$use_quicktags = 0 ;
2003-05-22 08:12:53 -04:00
$b2varstoreset = array ( 'profile' , 'standalone' , 'redirect' , 'redirect_url' , 'a' , 'popuptitle' , 'popupurl' , 'text' , 'trackback' , 'pingback' );
for ( $i = 0 ; $i < count ( $b2varstoreset ); $i += 1 ) {
$b2var = $b2varstoreset [ $i ];
if ( ! isset ( $$b2var )) {
if ( empty ( $HTTP_POST_VARS [ " $b2var " ])) {
if ( empty ( $HTTP_GET_VARS [ " $b2var " ])) {
$$b2var = '' ;
} else {
$$b2var = $HTTP_GET_VARS [ " $b2var " ];
}
} else {
$$b2var = $HTTP_POST_VARS [ " $b2var " ];
}
}
}
if ( $standalone == 0 ) {
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-08-02 20:01:07 -04:00
< title > WordPress > < ? php bloginfo ( 'name' ) ?> > <?php echo $title; ?></title>
2003-05-23 04:29:51 -04:00
< link rel = " stylesheet " href = " b2.css " type = " text/css " />
2003-08-12 16:35:53 -04:00
< meta http - equiv = " Content-Type " content = " text/html; charset=<?php echo $admin_area_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 " >
<!-- hiding from old terrible browsers
function profile ( userID ) {
window . open ( " b2profile.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 ( " b2upload.php " , " b2upload " , " width=380,height=360,location=0,menubar=0,resizable=1,scrollbars=yes,status=1,toolbar=0 " );
}
2003-08-06 20:00:55 -04: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-05-22 08:12:53 -04:00
// End -->
</ script >
</ head >
< body >
< ? php
if ( $profile == 0 ) {
2003-05-23 04:29:51 -04:00
include ( 'b2menutop.php' );
2003-05-22 08:12:53 -04:00
}
?>
2003-05-23 04:29:51 -04:00
< ? php
2003-05-22 08:12:53 -04:00
}
2003-06-12 18:42:48 -04:00
?>