Make WordPress Core


Ignore:
Timestamp:
05/23/2003 08:29:51 AM (23 years ago)
Author:
saxmatt
Message:

Monster administration update. Tables fixed, format streamlined, HTML cleaned up.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/b2header.php

    r40 r44  
    11<?php
    22
    3 require_once("../b2config.php");
     3require("../b2config.php");
    44require_once($b2inc."/b2template.functions.php");
    55require_once("b2verifauth.php");
     
    1616get_currentuserinfo();
    1717
    18 $request = " SELECT * FROM $tablesettings ";
     18$request = "SELECT * FROM $tablesettings";
    1919$result = mysql_query($request);
    2020$querycount++;
     
    2424    $archive_mode=$row->archive_mode;
    2525    $time_difference=$row->time_difference;
    26     $autobr=$row->AutoBR;
    2726    $date_format=stripslashes($row->date_format);
    2827    $time_format=stripslashes($row->time_format);
     
    3130// let's deactivate quicktags on IE Mac and Lynx, because they don't work there.
    3231if (($is_macIE) || ($is_lynx))
    33     $use_quicktags=0;
     32    $use_quicktags = 0;
    3433
    3534$b2varstoreset = array('profile','standalone','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback');
     
    5150if ($standalone == 0) {
    5251
    53 ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    54 <html>
     52?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     53<html xmlns="http://www.w3.org/1999/xhtml">
    5554<head>
    56 <title>wordpress > <?php echo $title; ?></title>
    57 <link rel="stylesheet" href="b2.css" type="text/css">
    58 <style type="text/css">
    59 <!--
    60 <?php
    61 if (!$is_NS4) {
    62 ?>
    63 td.menutop {
    64     padding-top: 2px;
    65     padding-bottom: 2px;
    66     border-color: #999999;
    67     border-top-width: 1px;
    68     border-bottom-width: 1px;
    69     border-left-width: 0px;
    70     border-right-width: 0px;
    71     border-style: dashed;
    72 }
    73 textarea,input,select {
    74     background-color: #f0f0f0;
    75     border-width: 1px;
    76     border-color: #cccccc;
    77     border-style: solid;
    78     padding: 2px;
    79     margin: 1px;
    80     font-family: Georgia, "Times New Roman", Times, serif;
    81 }
    82 .checkbox {
    83 <?php
    84 if ((preg_match("/MSIE/",$HTTP_USER_AGENT)) && (!preg_match("/Mac/",$HTTP_USER_AGENT))) {
    85 ?>  background-color: #ffffff;
    86     border-width: 0px;
    87     padding: 0px;
    88     margin: 0px;
    89 }
    90 <?php
    91 }
    92 }
    93 ?>
    94 -->
    95 </style>
     55<title>WordPress > <?php echo $title; ?></title>
     56<link rel="stylesheet" href="b2.css" type="text/css" />
     57<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
     58
    9659<?php
    9760if ($redirect==1) {
     
    10669</script>
    10770<?php
    108 }
     71} // redirect
    10972?>
     73
    11074<script language="javascript" type="text/javascript">
    11175<!-- hiding from old terrible browsers
     
    11377    function profile(userID) {
    11478        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");
    115     }
    116 
    117     function preview(form) {
    118         var preview_date = "<?php echo date("Y-m-d H:i:s"); ?>";
    119         var preview_userid = "<?php echo $user_ID ?>";
    120         var preview_title = form.post_title.value;
    121         var preview_category = form.post_category.value;
    122         var preview_content = form.content.value;
    123         var preview_autobr = form.post_autobr.value;
    124         preview_date = escape(preview_date);
    125         preview_userid = escape(preview_userid);
    126         preview_title = escape(preview_title);
    127         preview_category = escape(preview_category);
    128         preview_content = escape(preview_content);
    129         preview_autobr = escape(preview_autobr);
    130         window.open ("<?php echo "$siteurl/$blogfilename" ?>?preview=1&preview_date="+preview_date +"&preview_userid="+preview_userid +"&preview_title="+preview_title +"&preview_category="+preview_category +"&preview_content="+preview_content +"&preview_autobr="+preview_autobr ,"Preview", "location=0,menubar=1,resizable=1,scrollbars=yes,status=1,toolbar=0");
    13179    }
    13280
     
    14088<body>
    14189
    142 <table width="100%" cellpadding="0" cellspacing="0" align="center">
    14390<?php
    14491if ($profile==0) {
     92    include('b2menutop.php');
     93}
    14594?>
    146 <tr height="60">
    147 <td valign="top">
    148 <?php include('b2menutop.php') ?>
    149 </td>
    150 </tr><tr>
     95
    15196<?php
    15297}
    15398?>
    154 <td valign="top">
    155 <div class="panelbody">
    156 <?php
    157 
    158 }
    159 ?>
Note: See TracChangeset for help on using the changeset viewer.