Changeset 83
- Timestamp:
- 05/24/2003 09:50:22 PM (21 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2-include/b2template.functions.php
r24 r83 41 41 42 42 function get_bloginfo($show='') { 43 global $siteurl, $blogfilename, $blogname, $blogdescription, $ pathserver, $admin_email;43 global $siteurl, $blogfilename, $blogname, $blogdescription, $siteurl, $admin_email; 44 44 switch($show) { 45 45 case "url": … … 59 59 break; 60 60 case "pingback_url": 61 $output = $ pathserver.'/xmlrpc.php';61 $output = $siteurl.'/xmlrpc.php'; 62 62 break; 63 63 case "admin_email": … … 1084 1084 1085 1085 function trackback_url($display = 1) { 1086 global $ pathserver, $id;1087 $tb_url = $ pathserver.'/b2trackback.php/'.$id;1086 global $siteurl, $id; 1087 $tb_url = $siteurl.'/b2trackback.php/'.$id; 1088 1088 if ($display) { 1089 1089 echo $tb_url; … … 1137 1137 1138 1138 function trackback_rdf($timezone=0) { 1139 global $ pathserver, $id, $HTTP_SERVER_VARS;1139 global $siteurl, $id, $HTTP_SERVER_VARS; 1140 1140 if (!stristr($HTTP_SERVER_VARS['HTTP_USER_AGENT'], 'W3C_Validator')) { 1141 1141 echo '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" '."\n"; -
trunk/b2config.php
r61 r83 19 19 $blogdescription = "babblings !"; 20 20 21 22 23 // $pathserver is where you have uploaded b2: for example, 'http://mydomain.com' (no ending slash !)24 // by default b2 is set to run in the folder your blog resides, same as $siteurl25 26 $pathserver = 'http://example.com';27 28 29 21 // your email (obvious eh ?) 30 22 $admin_email = 'you@example.com'; … … 41 33 // day at the start of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, etc 42 34 $start_of_week = 1; 43 44 35 45 36 … … 336 327 $loginsql = $dbusername; 337 328 $passsql = $dbpassword; 338 $path = $ pathserver;329 $path = $siteurl; 339 330 $base = $dbname; 340 331 … … 344 335 $path_sep=':'; 345 336 ini_set('include_path', ".$path_sep..$path_sep../$b2inc$path_sep./$b2inc"); 346 347 337 ?> -
trunk/b2login.php
r80 r83 176 176 <title>WordPress > Lost password ?</title> 177 177 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 178 <link rel="stylesheet" href="<?php echo $ pathserver; ?>/wp-admin/b2.css" type="text/css" />178 <link rel="stylesheet" href="<?php echo $siteurl; ?>/wp-admin/b2.css" type="text/css" /> 179 179 <style type="text/css"> 180 180 <!-- … … 288 288 <title>WordPress > Login form</title> 289 289 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 290 <link rel="stylesheet" href="<?php echo $ pathserver; ?>/wp-admin/b2.css" type="text/css">290 <link rel="stylesheet" href="<?php echo $siteurl; ?>/wp-admin/b2.css" type="text/css"> 291 291 <style type="text/css"> 292 292 <!-- … … 314 314 315 315 <div id="login"> 316 <p><a href="<?=$ pathserver?>">Back to blog?</a><br />316 <p><a href="<?=$siteurl?>">Back to blog?</a><br /> 317 317 <?php if ($users_can_register) { ?> 318 <a href="<?php echo $ pathserver; ?>/b2register.php">Register?</a><br />318 <a href="<?php echo $siteurl; ?>/b2register.php">Register?</a><br /> 319 319 <?php } ?> 320 <a href="<?php echo $ pathserver; ?>/b2login.php?action=lostpassword">Lost your password?</a></p>320 <a href="<?php echo $siteurl; ?>/b2login.php?action=lostpassword">Lost your password?</a></p> 321 321 322 322 <?php -
trunk/blog.header.php
r57 r83 36 36 dbconnect(); 37 37 38 @header ("X-Pingback: $ pathserver/xmlrpc.php");38 @header ("X-Pingback: $siteurl/xmlrpc.php"); 39 39 /* Sending HTTP headers 40 40 // It is presumptious to think that WP is the only thing that might change on the page. -
trunk/wp-admin/b2menutop.php
r50 r83 24 24 } 25 25 ?> 26 <li><a href="<?php echo $ pathserver."/".$blogfilename; ?>">View site</a></li>26 <li><a href="<?php echo $siteurl."/".$blogfilename; ?>">View site</a></li> 27 27 <li id="last"><a href="<?php echo $siteurl ?>/b2login.php?action=logout">Logout</a></li> 28 28 </ul> -
trunk/wp-admin/b2profile.php
r73 r83 259 259 <p>To have a one-click bookmarklet, just copy and paste this<br />into a new text file:</p> 260 260 <?php 261 $regedit = "REGEDIT4\r\n[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Post To &WP : ".$blogname."]\r\n@=\"javascript:doc=external.menuArguments.document;Q=doc.selection.createRange().text;void(btw=window.open('".$ pathserver."/wp-admin/b2bookmarklet.php?text='+escape(Q)+'".$bookmarklet_tbpb."&popupurl='+escape(doc.location.href)+'&popuptitle='+escape(doc.title),'b2bookmarklet','scrollbars=no,width=480,height=".$bookmarklet_height.",left=100,top=150,status=yes'));btw.focus();\"\r\n\"contexts\"=hex:31\"";261 $regedit = "REGEDIT4\r\n[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Post To &WP : ".$blogname."]\r\n@=\"javascript:doc=external.menuArguments.document;Q=doc.selection.createRange().text;void(btw=window.open('".$siteurl."/wp-admin/b2bookmarklet.php?text='+escape(Q)+'".$bookmarklet_tbpb."&popupurl='+escape(doc.location.href)+'&popuptitle='+escape(doc.title),'b2bookmarklet','scrollbars=no,width=480,height=".$bookmarklet_height.",left=100,top=150,status=yes'));btw.focus();\"\r\n\"contexts\"=hex:31\""; 262 262 ?> 263 263 <pre style="margin: 20px; background-color: #cccccc; border: 1px dashed #333333; padding: 5px; font-size: 12px;"><?php echo $regedit; ?></pre> … … 436 436 { 437 437 if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) 438 window.sidebar.addPanel("WordPress post: <?php echo $blogname ?>","<?php echo $ pathserver?>/wp-admin/b2sidebar.php","");438 window.sidebar.addPanel("WordPress post: <?php echo $blogname ?>","<?php echo $siteurl ?>/wp-admin/b2sidebar.php",""); 439 439 else 440 440 alert('No Sidebar found! You must use Mozilla 0.9.4 or later!'); … … 446 446 <br /><br /> 447 447 <strong>SideBar</strong><br /> 448 Add this link to your favorites:<br /><a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(_search=open('<?php echo $ pathserver?>/wp-admin/b2sidebar.php?text='+escape(Q)+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'_search'))">WordPress Sidebar</a>.448 Add this link to your favorites:<br /><a href="javascript:Q='';if(top.frames.length==0)Q=document.selection.createRange().text;void(_search=open('<?php echo $siteurl ?>/wp-admin/b2sidebar.php?text='+escape(Q)+'&popupurl='+escape(location.href)+'&popuptitle='+escape(document.title),'_search'))">WordPress Sidebar</a>. 449 449 <?php } ?> 450 450 </td> -
trunk/wp-admin/b2sidebar.php
r44 r83 61 61 document.SPELLDATA.companyID.value="custom\\http://cafelog.com" 62 62 document.SPELLDATA.language.value=1033 63 document.SPELLDATA.opener.value="<?php echo $ pathserver?>/sproxy.pl"63 document.SPELLDATA.opener.value="<?php echo $siteurl ?>/sproxy.pl" 64 64 document.SPELLDATA.formaction.value="http://www.spellchecker.com/spell/startspelling.asp " 65 window.open("<?php echo $ pathserver?>/b2spell.php","Spell",65 window.open("<?php echo $siteurl ?>/b2spell.php","Spell", 66 66 "toolbar=no,directories=no,location=yes,resizable=yes,width=620,height=400,top=100,left=100") 67 67 }
Note: See TracChangeset
for help on using the changeset viewer.