Changeset 44 for trunk/wp-admin/b2header.php
- Timestamp:
- 05/23/2003 08:29:51 AM (23 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/b2header.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/b2header.php
r40 r44 1 1 <?php 2 2 3 require _once("../b2config.php");3 require("../b2config.php"); 4 4 require_once($b2inc."/b2template.functions.php"); 5 5 require_once("b2verifauth.php"); … … 16 16 get_currentuserinfo(); 17 17 18 $request = " SELECT * FROM $tablesettings";18 $request = "SELECT * FROM $tablesettings"; 19 19 $result = mysql_query($request); 20 20 $querycount++; … … 24 24 $archive_mode=$row->archive_mode; 25 25 $time_difference=$row->time_difference; 26 $autobr=$row->AutoBR;27 26 $date_format=stripslashes($row->date_format); 28 27 $time_format=stripslashes($row->time_format); … … 31 30 // let's deactivate quicktags on IE Mac and Lynx, because they don't work there. 32 31 if (($is_macIE) || ($is_lynx)) 33 $use_quicktags =0;32 $use_quicktags = 0; 34 33 35 34 $b2varstoreset = array('profile','standalone','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback'); … … 51 50 if ($standalone == 0) { 52 51 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"> 55 54 <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 96 59 <?php 97 60 if ($redirect==1) { … … 106 69 </script> 107 70 <?php 108 } 71 } // redirect 109 72 ?> 73 110 74 <script language="javascript" type="text/javascript"> 111 75 <!-- hiding from old terrible browsers … … 113 77 function profile(userID) { 114 78 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");131 79 } 132 80 … … 140 88 <body> 141 89 142 <table width="100%" cellpadding="0" cellspacing="0" align="center">143 90 <?php 144 91 if ($profile==0) { 92 include('b2menutop.php'); 93 } 145 94 ?> 146 <tr height="60"> 147 <td valign="top"> 148 <?php include('b2menutop.php') ?> 149 </td> 150 </tr><tr> 95 151 96 <?php 152 97 } 153 98 ?> 154 <td valign="top">155 <div class="panelbody">156 <?php157 158 }159 ?>
Note: See TracChangeset
for help on using the changeset viewer.