Changeset 628
- Timestamp:
- 12/18/2003 09:36:13 AM (21 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 41 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2rdf.php
r601 r628 2 2 $curpath = dirname(__FILE__).'/'; 3 3 require_once ($curpath.'wp-config.php'); 4 require_once ($curpath. $b2inc.'/template-functions.php');4 require_once ($curpath.WPINC.'/template-functions.php'); 5 5 header('HTTP/1.0 301 Moved Permanently'); 6 6 header('Location: ' . get_bloginfo('rdf_url') . "\n"); -
trunk/b2rss.php
r601 r628 2 2 $curpath = dirname(__FILE__).'/'; 3 3 require_once ($curpath.'wp-config.php'); 4 require_once ($curpath. $b2inc.'/template-functions.php');4 require_once ($curpath.WPINC.'/template-functions.php'); 5 5 header('HTTP/1.0 301 Moved Permanently'); 6 6 header('Location: ' . get_bloginfo('rss_url') . "\n"); -
trunk/b2rss2.php
r601 r628 2 2 $curpath = dirname(__FILE__).'/'; 3 3 require_once ($curpath.'wp-config.php'); 4 require_once ($curpath. $b2inc.'/template-functions.php');4 require_once ($curpath.WPINC.'/template-functions.php'); 5 5 header('HTTP/1.0 301 Moved Permanently'); 6 6 header('Location: ' . get_bloginfo('rss2_url') . "\n"); -
trunk/index-smarty.php
r601 r628 12 12 $blog = 1; 13 13 require_once('wp-blog-header.php'); 14 require_once( $abspath.'wp-links/links.php');15 // not on by default: require_once( $abspath.'wp-links/links.weblogs.com.php');14 require_once(ABSPATH.'wp-links/links.php'); 15 // not on by default: require_once(ABSPATH.'wp-links/links.weblogs.com.php'); 16 16 17 17 define( 'NODISPLAY', false ); 18 18 19 19 $wpsmarty->assign( 'siteurl', $siteurl ); 20 $wpsmarty->assign( 'b2_version', $ b2_version );20 $wpsmarty->assign( 'b2_version', $wp_version ); 21 21 22 22 if($posts) … … 24 24 foreach ($posts as $post) 25 25 { 26 start_ b2();26 start_wp(); 27 27 $content .= $wpsmarty->fetch( 'post.html' ); 28 28 ob_start(); 29 include( $abspath. 'wp-comments.php');29 include(ABSPATH . 'wp-comments.php'); 30 30 $txt = ob_get_contents(); 31 31 ob_end_clean(); -
trunk/index.php
r617 r628 31 31 32 32 <div id="content"> 33 <?php if ($posts) { foreach ($posts as $post) { start_ b2(); ?>33 <?php if ($posts) { foreach ($posts as $post) { start_wp(); ?> 34 34 35 35 <?php the_date('','<h2>','</h2>'); ?> … … 52 52 --> 53 53 54 <?php include( $abspath. 'wp-comments.php'); ?>54 <?php include(ABSPATH . 'wp-comments.php'); ?> 55 55 </div> 56 56 -
trunk/wp-admin/admin-footer.php
r606 r628 1 1 2 2 3 <p align="center" style="width: 100%" class="tabletoprow"><strong><a href="http://wordpress.org">WordPress</a></strong> <?php echo $ b2_version ?> — <a href="http://wordpress.org/support/">Support Forums</a><br />3 <p align="center" style="width: 100%" class="tabletoprow"><strong><a href="http://wordpress.org">WordPress</a></strong> <?php echo $wp_version ?> — <a href="http://wordpress.org/support/">Support Forums</a><br /> 4 4 <?php 5 5 echo number_format(timer_stop(), 2)." seconds"; -
trunk/wp-admin/admin-header.php
r617 r628 2 2 3 3 require_once('../wp-config.php'); 4 require_once( $abspath.'/wp-admin/auth.php');4 require_once(ABSPATH.'/wp-admin/auth.php'); 5 5 6 6 function gethelp_link($this_file, $helptag) { … … 30 30 $use_quicktags = 0; 31 31 32 $ b2varstoreset = array('profile','standalone','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback');33 for ($i=0; $i<count($ b2varstoreset); $i += 1) {34 $ b2var = $b2varstoreset[$i];35 if (!isset($$ b2var)) {36 if (empty($HTTP_POST_VARS["$ b2var"])) {37 if (empty($HTTP_GET_VARS["$ b2var"])) {38 $$ b2var = '';32 $wpvarstoreset = array('profile','standalone','redirect','redirect_url','a','popuptitle','popupurl','text', 'trackback', 'pingback'); 33 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 34 $wpvar = $wpvarstoreset[$i]; 35 if (!isset($$wpvar)) { 36 if (empty($HTTP_POST_VARS["$wpvar"])) { 37 if (empty($HTTP_GET_VARS["$wpvar"])) { 38 $$wpvar = ''; 39 39 } else { 40 $$ b2var = $HTTP_GET_VARS["$b2var"];40 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 41 41 } 42 42 } else { 43 $$ b2var = $HTTP_POST_VARS["$b2var"];43 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 44 44 } 45 45 } -
trunk/wp-admin/bookmarklet.php
r617 r628 91 91 92 92 if (($is_macIE) && (!isset($IEMac_bookmarklet_fix))) { 93 $popuptitle = preg_replace($ b2_macIE_correction["in"],$b2_macIE_correction["out"],$popuptitle);94 $text = preg_replace($ b2_macIE_correction["in"],$b2_macIE_correction["out"],$text);93 $popuptitle = preg_replace($wp_macIE_correction["in"],$wp_macIE_correction["out"],$popuptitle); 94 $text = preg_replace($wp_macIE_correction["in"],$wp_macIE_correction["out"],$text); 95 95 } 96 96 … … 101 101 102 102 if (($is_gecko) && (!isset($Gecko_bookmarklet_fix))) { 103 $popuptitle = preg_replace($ b2_gecko_correction["in"],$b2_gecko_correction["out"],$popuptitle);104 $text = preg_replace($ b2_gecko_correction["in"],$b2_gecko_correction["out"],$text);103 $popuptitle = preg_replace($wp_gecko_correction["in"],$wp_gecko_correction["out"],$popuptitle); 104 $text = preg_replace($wp_gecko_correction["in"],$wp_gecko_correction["out"],$text); 105 105 } 106 106 -
trunk/wp-admin/categories.php
r601 r628 20 20 } 21 21 22 $ b2varstoreset = array('action','standalone','cat');23 for ($i=0; $i<count($ b2varstoreset); $i += 1) {24 $ b2var = $b2varstoreset[$i];25 if (!isset($$ b2var)) {26 if (empty($HTTP_POST_VARS["$ b2var"])) {27 if (empty($HTTP_GET_VARS["$ b2var"])) {28 $$ b2var = '';22 $wpvarstoreset = array('action','standalone','cat'); 23 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 24 $wpvar = $wpvarstoreset[$i]; 25 if (!isset($$wpvar)) { 26 if (empty($HTTP_POST_VARS["$wpvar"])) { 27 if (empty($HTTP_GET_VARS["$wpvar"])) { 28 $$wpvar = ''; 29 29 } else { 30 $$ b2var = $HTTP_GET_VARS["$b2var"];30 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 31 31 } 32 32 } else { 33 $$ b2var = $HTTP_POST_VARS["$b2var"];33 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 34 34 } 35 35 } -
trunk/wp-admin/edit-showposts.php
r617 r628 235 235 <?php 236 236 // these lines are b2's "motor", do not alter nor remove them 237 include( $abspath.'wp-blog-header.php');237 include(ABSPATH.'wp-blog-header.php'); 238 238 239 239 if ($posts) { 240 240 foreach ($posts as $post) { 241 241 //$posts_per_page = 10; 242 start_ b2(); ?>242 start_wp(); ?> 243 243 <p> 244 244 <strong><?php the_time('Y/m/d @ H:i:s'); ?></strong> [ <a href="post.php?p=<?php echo $id ?>&c=1"><?php comments_number('no comments', '1 comment', "% comments", true) ?></a> -
trunk/wp-admin/edit.php
r601 r628 234 234 235 235 <?php 236 include( $abspath.'wp-blog-header.php');236 include(ABSPATH.'wp-blog-header.php'); 237 237 238 238 if ($posts) { 239 foreach ($posts as $post) { start_ b2();239 foreach ($posts as $post) { start_wp(); 240 240 ?> 241 241 <p> -
trunk/wp-admin/import-blogger.php
r617 r628 1 1 <?php // rename this to blogger-2-b2.php 2 2 3 $ b2varstoreset = array('action');4 for ($i=0; $i<count($ b2varstoreset); $i += 1) {5 $ b2var = $b2varstoreset[$i];6 if (!isset($$ b2var)) {7 if (empty($HTTP_POST_VARS["$ b2var"])) {8 if (empty($HTTP_GET_VARS["$ b2var"])) {9 $$ b2var = '';3 $wpvarstoreset = array('action'); 4 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 5 $wpvar = $wpvarstoreset[$i]; 6 if (!isset($$wpvar)) { 7 if (empty($HTTP_POST_VARS["$wpvar"])) { 8 if (empty($HTTP_GET_VARS["$wpvar"])) { 9 $$wpvar = ''; 10 10 } else { 11 $$ b2var = $HTTP_GET_VARS["$b2var"];11 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 12 12 } 13 13 } else { 14 $$ b2var = $HTTP_POST_VARS["$b2var"];14 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 15 15 } 16 16 } … … 22 22 23 23 require_once('../wp-config.php'); 24 require_once( $abspath.$b2inc.'/template-functions.php');25 require_once( $abspath.$b2inc.'/functions.php');26 require_once( $abspath.$b2inc.'/vars.php');24 require_once(ABSPATH.WPINC.'/template-functions.php'); 25 require_once(ABSPATH.WPINC.'/functions.php'); 26 require_once(ABSPATH.WPINC.'/vars.php'); 27 27 28 28 ?> -
trunk/wp-admin/import-greymatter.php
r617 r628 6 6 7 7 require_once('wp-config.php'); 8 require_once( $abspath.$b2inc.'/functions.php');9 10 $ b2varstoreset = array('action', 'gmpath', 'archivespath');11 for ($i=0; $i<count($ b2varstoreset); $i += 1) {12 $ b2var = $b2varstoreset[$i];13 if (!isset($$ b2var)) {14 if (empty($HTTP_POST_VARS["$ b2var"])) {15 if (empty($HTTP_GET_VARS["$ b2var"])) {16 $$ b2var = '';8 require_once(ABSPATH.WPINC.'/functions.php'); 9 10 $wpvarstoreset = array('action', 'gmpath', 'archivespath'); 11 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 12 $wpvar = $wpvarstoreset[$i]; 13 if (!isset($$wpvar)) { 14 if (empty($HTTP_POST_VARS["$wpvar"])) { 15 if (empty($HTTP_GET_VARS["$wpvar"])) { 16 $$wpvar = ''; 17 17 } else { 18 $$ b2var = $HTTP_GET_VARS["$b2var"];18 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 19 19 } 20 20 } else { 21 $$ b2var = $HTTP_POST_VARS["$b2var"];21 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 22 22 } 23 23 } -
trunk/wp-admin/link-categories.php
r616 r628 8 8 $parent_file = 'link-manager.php'; 9 9 10 $ b2varstoreset = array('action','standalone','cat', 'auto_toggle');11 for ($i=0; $i<count($ b2varstoreset); $i += 1) {12 $ b2var = $b2varstoreset[$i];13 if (!isset($$ b2var)) {14 if (empty($HTTP_POST_VARS["$ b2var"])) {15 if (empty($HTTP_GET_VARS["$ b2var"])) {16 $$ b2var = '';10 $wpvarstoreset = array('action','standalone','cat', 'auto_toggle'); 11 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 12 $wpvar = $wpvarstoreset[$i]; 13 if (!isset($$wpvar)) { 14 if (empty($HTTP_POST_VARS["$wpvar"])) { 15 if (empty($HTTP_GET_VARS["$wpvar"])) { 16 $$wpvar = ''; 17 17 } else { 18 $$ b2var = $HTTP_GET_VARS["$b2var"];18 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 19 19 } 20 20 } else { 21 $$ b2var = $HTTP_POST_VARS["$b2var"];21 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 22 22 } 23 23 } -
trunk/wp-admin/link-manager.php
r601 r628 42 42 } 43 43 44 $ b2varstoreset = array('action','standalone','cat_id', 'linkurl', 'name', 'image',44 $wpvarstoreset = array('action','standalone','cat_id', 'linkurl', 'name', 'image', 45 45 'description', 'visible', 'target', 'category', 'link_id', 46 46 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel', 47 47 'notes', 'linkcheck[]'); 48 for ($i=0; $i<count($ b2varstoreset); $i += 1) {49 $ b2var = $b2varstoreset[$i];50 if (!isset($$ b2var)) {51 if (empty($HTTP_POST_VARS["$ b2var"])) {52 if (empty($HTTP_GET_VARS["$ b2var"])) {53 $$ b2var = '';48 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 49 $wpvar = $wpvarstoreset[$i]; 50 if (!isset($$wpvar)) { 51 if (empty($HTTP_POST_VARS["$wpvar"])) { 52 if (empty($HTTP_GET_VARS["$wpvar"])) { 53 $$wpvar = ''; 54 54 } else { 55 $$ b2var = $HTTP_GET_VARS["$b2var"];55 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 56 56 } 57 57 } else { 58 $$ b2var = $HTTP_POST_VARS["$b2var"];58 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 59 59 } 60 60 } -
trunk/wp-admin/link-parse-opml.php
r601 r628 1 1 <?php 2 2 require_once('../wp-config.php'); 3 require_once( $abspath.$b2inc.'/functions.php');3 require_once(ABSPATH.WPINC.'/functions.php'); 4 4 5 5 // columns we wish to find are: link_url, link_name, link_target, link_description -
trunk/wp-admin/moderation.php
r601 r628 21 21 } 22 22 23 $ b2varstoreset = array('action','item_ignored','item_deleted','item_approved');24 for ($i=0; $i<count($ b2varstoreset); $i += 1) {25 $ b2var = $b2varstoreset[$i];26 if (!isset($$ b2var)) {27 if (empty($HTTP_POST_VARS["$ b2var"])) {28 if (empty($HTTP_GET_VARS["$ b2var"])) {29 $$ b2var = '';23 $wpvarstoreset = array('action','item_ignored','item_deleted','item_approved'); 24 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 25 $wpvar = $wpvarstoreset[$i]; 26 if (!isset($$wpvar)) { 27 if (empty($HTTP_POST_VARS["$wpvar"])) { 28 if (empty($HTTP_GET_VARS["$wpvar"])) { 29 $$wpvar = ''; 30 30 } else { 31 $$ b2var = $HTTP_GET_VARS["$b2var"];31 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 32 32 } 33 33 } else { 34 $$ b2var = $HTTP_POST_VARS["$b2var"];34 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 35 35 } 36 36 } -
trunk/wp-admin/options-permalink.php
r613 r628 20 20 } 21 21 22 $ b2varstoreset = array('action','standalone', 'option_group_id');23 for ($i=0; $i<count($ b2varstoreset); $i += 1) {24 $ b2var = $b2varstoreset[$i];25 if (!isset($$ b2var)) {26 if (empty($HTTP_POST_VARS["$ b2var"])) {27 if (empty($HTTP_GET_VARS["$ b2var"])) {28 $$ b2var = '';22 $wpvarstoreset = array('action','standalone', 'option_group_id'); 23 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 24 $wpvar = $wpvarstoreset[$i]; 25 if (!isset($$wpvar)) { 26 if (empty($HTTP_POST_VARS["$wpvar"])) { 27 if (empty($HTTP_GET_VARS["$wpvar"])) { 28 $$wpvar = ''; 29 29 } else { 30 $$ b2var = $HTTP_GET_VARS["$b2var"];30 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 31 31 } 32 32 } else { 33 $$ b2var = $HTTP_POST_VARS["$b2var"];33 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 34 34 } 35 35 } -
trunk/wp-admin/options.php
r620 r628 20 20 } 21 21 22 $ b2varstoreset = array('action','standalone', 'option_group_id');23 for ($i=0; $i<count($ b2varstoreset); $i += 1) {24 $ b2var = $b2varstoreset[$i];25 if (!isset($$ b2var)) {26 if (empty($HTTP_POST_VARS["$ b2var"])) {27 if (empty($HTTP_GET_VARS["$ b2var"])) {28 $$ b2var = '';22 $wpvarstoreset = array('action','standalone', 'option_group_id'); 23 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 24 $wpvar = $wpvarstoreset[$i]; 25 if (!isset($$wpvar)) { 26 if (empty($HTTP_POST_VARS["$wpvar"])) { 27 if (empty($HTTP_GET_VARS["$wpvar"])) { 28 $$wpvar = ''; 29 29 } else { 30 $$ b2var = $HTTP_GET_VARS["$b2var"];30 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 31 31 } 32 32 } else { 33 $$ b2var = $HTTP_POST_VARS["$b2var"];33 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 34 34 } 35 35 } -
trunk/wp-admin/post.php
r607 r628 19 19 } 20 20 21 $ b2varstoreset = array('action', 'safe_mode', 'withcomments', 'c', 'posts', 'poststart', 'postend', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder');22 23 for ($i=0; $i<count($ b2varstoreset); $i += 1) {24 $ b2var = $b2varstoreset[$i];25 if (!isset($$ b2var)) {26 if (empty($HTTP_POST_VARS["$ b2var"])) {27 if (empty($HTTP_GET_VARS["$ b2var"])) {28 $$ b2var = '';21 $wpvarstoreset = array('action', 'safe_mode', 'withcomments', 'c', 'posts', 'poststart', 'postend', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder'); 22 23 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 24 $wpvar = $wpvarstoreset[$i]; 25 if (!isset($$wpvar)) { 26 if (empty($HTTP_POST_VARS["$wpvar"])) { 27 if (empty($HTTP_GET_VARS["$wpvar"])) { 28 $$wpvar = ''; 29 29 } else { 30 $$ b2var = $HTTP_GET_VARS["$b2var"];31 } 32 } else { 33 $$ b2var = $HTTP_POST_VARS["$b2var"];30 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 31 } 32 } else { 33 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 34 34 } 35 35 } -
trunk/wp-admin/profile.php
r617 r628 19 19 } 20 20 21 $ b2varstoreset = array('action','standalone','redirect','profile','user');22 for ($i=0; $i<count($ b2varstoreset); $i += 1) {23 $ b2var = $b2varstoreset[$i];24 if (!isset($$ b2var)) {25 if (empty($HTTP_POST_VARS["$ b2var"])) {26 if (empty($HTTP_GET_VARS["$ b2var"])) {27 $$ b2var = '';21 $wpvarstoreset = array('action','standalone','redirect','profile','user'); 22 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 23 $wpvar = $wpvarstoreset[$i]; 24 if (!isset($$wpvar)) { 25 if (empty($HTTP_POST_VARS["$wpvar"])) { 26 if (empty($HTTP_GET_VARS["$wpvar"])) { 27 $$wpvar = ''; 28 28 } else { 29 $$ b2var = $HTTP_GET_VARS["$b2var"];29 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 30 30 } 31 31 } else { 32 $$ b2var = $HTTP_POST_VARS["$b2var"];32 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 33 33 } 34 34 } … … 36 36 37 37 require_once('../wp-config.php'); 38 require_once( $abspath.$b2inc.'/functions.php');38 require_once(ABSPATH.WPINC.'/functions.php'); 39 39 40 40 switch($action) { -
trunk/wp-admin/templates.php
r618 r628 19 19 } 20 20 21 $ b2varstoreset = array('action','standalone','redirect','profile','error','warning','a','file');22 for ($i=0; $i<count($ b2varstoreset); $i += 1) {23 $ b2var = $b2varstoreset[$i];24 if (!isset($$ b2var)) {25 if (empty($HTTP_POST_VARS["$ b2var"])) {26 if (empty($HTTP_GET_VARS["$ b2var"])) {27 $$ b2var = '';21 $wpvarstoreset = array('action','standalone','redirect','profile','error','warning','a','file'); 22 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 23 $wpvar = $wpvarstoreset[$i]; 24 if (!isset($$wpvar)) { 25 if (empty($HTTP_POST_VARS["$wpvar"])) { 26 if (empty($HTTP_GET_VARS["$wpvar"])) { 27 $$wpvar = ''; 28 28 } else { 29 $$ b2var = $HTTP_GET_VARS["$b2var"];29 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 30 30 } 31 31 } else { 32 $$ b2var = $HTTP_POST_VARS["$b2var"];32 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 33 33 } 34 34 } -
trunk/wp-admin/upload.php
r601 r628 16 16 <head> 17 17 <title>WordPress :: upload images/files</title> 18 <link rel="stylesheet" href="<?php echo $b2inc; ?>/b2.css" type="text/css">18 <link rel="stylesheet" href="<?php echo WPINC; ?>/b2.css" type="text/css"> 19 19 <style type="text/css"> 20 20 <!-- -
trunk/wp-admin/users.php
r601 r628 3 3 /* <Team> */ 4 4 5 $ b2varstoreset = array('action','standalone','redirect','profile');6 for ($i=0; $i<count($ b2varstoreset); $i += 1) {7 $ b2var = $b2varstoreset[$i];8 if (!isset($$ b2var)) {9 if (empty($HTTP_POST_VARS["$ b2var"])) {10 if (empty($HTTP_GET_VARS["$ b2var"])) {11 $$ b2var = '';5 $wpvarstoreset = array('action','standalone','redirect','profile'); 6 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 7 $wpvar = $wpvarstoreset[$i]; 8 if (!isset($$wpvar)) { 9 if (empty($HTTP_POST_VARS["$wpvar"])) { 10 if (empty($HTTP_GET_VARS["$wpvar"])) { 11 $$wpvar = ''; 12 12 } else { 13 $$ b2var = $HTTP_GET_VARS["$b2var"];13 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 14 14 } 15 15 } else { 16 $$ b2var = $HTTP_POST_VARS["$b2var"];16 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 17 17 } 18 18 } -
trunk/wp-blog-header.php
r601 r628 12 12 require_once ($curpath.'/wp-config.php'); 13 13 14 $ b2varstoreset = array('m','p','posts','w','c', 'cat','withcomments','s','search','exact', 'sentence','poststart','postend','preview','debug', 'calendar','page','paged','more','tb', 'pb','author','order','orderby', 'year', 'monthnum', 'day', 'name', 'category_name');15 16 for ($i=0; $i<count($ b2varstoreset); $i += 1) {17 $ b2var = $b2varstoreset[$i];18 if (!isset($$ b2var)) {19 if (empty($HTTP_POST_VARS[$ b2var])) {20 if (empty($HTTP_GET_VARS[$ b2var])) {21 $$ b2var = '';14 $wpvarstoreset = array('m','p','posts','w','c', 'cat','withcomments','s','search','exact', 'sentence','poststart','postend','preview','debug', 'calendar','page','paged','more','tb', 'pb','author','order','orderby', 'year', 'monthnum', 'day', 'name', 'category_name'); 15 16 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 17 $wpvar = $wpvarstoreset[$i]; 18 if (!isset($$wpvar)) { 19 if (empty($HTTP_POST_VARS[$wpvar])) { 20 if (empty($HTTP_GET_VARS[$wpvar])) { 21 $$wpvar = ''; 22 22 } else { 23 $$ b2var = $HTTP_GET_VARS[$b2var];23 $$wpvar = $HTTP_GET_VARS[$wpvar]; 24 24 } 25 25 } else { 26 $$ b2var = $HTTP_POST_VARS[$b2var];26 $$wpvar = $HTTP_POST_VARS[$wpvar]; 27 27 } 28 28 } -
trunk/wp-comments-popup.php
r601 r628 4 4 require ('wp-blog-header.php'); 5 5 add_filter('comment_text', 'popuplinks'); 6 foreach ($posts as $post) { start_ b2();6 foreach ($posts as $post) { start_wp(); 7 7 ?> 8 8 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -
trunk/wp-commentsrss2.php
r601 r628 13 13 echo "<?xml version=\"1.0\"?".">"; 14 14 ?> 15 <!-- generator="wordpress/<?php echo $ b2_version ?>" -->15 <!-- generator="wordpress/<?php echo $wp_version ?>" --> 16 16 <rss version="2.0" 17 17 xmlns:dc="http://purl.org/dc/elements/1.1/" … … 23 23 <?php 24 24 $i = 0; 25 foreach ($posts as $post) { start_ b2();25 foreach ($posts as $post) { start_wp(); 26 26 if ($i < 1) { 27 27 $i++; … … 34 34 <dc:rights>Copyright <?php echo mysql2date('Y', get_lastpostdate()); ?></dc:rights> 35 35 <dc:date><?php echo gmdate('Y-m-d\TH:i:s'); ?></dc:date> 36 <admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $ b2_version ?>"/>36 <admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $wp_version ?>"/> 37 37 <admin:errorReportsTo rdf:resource="mailto:<?php echo antispambot($admin_email) ?>"/> 38 38 <sy:updatePeriod>hourly</sy:updatePeriod> -
trunk/wp-config-extra.php
r372 r628 27 27 28 28 // here's the conversion table, you can modify it if you know what you're doing 29 $ b2smiliestrans = array(29 $wpsmiliestrans = array( 30 30 ' :)' => 'icon_smile.gif', 31 31 ' :D' => 'icon_biggrin.gif', -
trunk/wp-config-sample.php
r601 r628 20 20 $base = DB_NAME; 21 21 22 $abspath = dirname(__FILE__).'/';22 define('ABSPATH', dirname(__FILE__).'/'); 23 23 24 24 // Get everything else 25 require_once( $abspath.'wp-settings.php');25 require_once(ABSPATH.'wp-settings.php'); 26 26 ?> -
trunk/wp-includes/functions.php
r617 r628 229 229 function convert_chars($content,$flag='obsolete attribute left there for backwards compatibility') { // html/unicode entities output 230 230 231 global $use_htmltrans, $ b2_htmltrans, $b2_htmltranswinuni;231 global $use_htmltrans, $wp_htmltrans, $wp_htmltranswinuni; 232 232 233 233 // removes metadata tags … … 242 242 // converts HTML-entities to their display values in order to convert them again later 243 243 $content = preg_replace('/['.chr(127).'-'.chr(255).']/e', '"&#".ord(\'\0\').";"', $content ); 244 $content = strtr($content, $ b2_htmltrans);244 $content = strtr($content, $wp_htmltrans); 245 245 246 246 // now converting: Windows CP1252 => Unicode (valid HTML) 247 247 // (if you've ever pasted text from MSWord, you'll understand) 248 248 249 $content = strtr($content, $ b2_htmltranswinuni);249 $content = strtr($content, $wp_htmltranswinuni); 250 250 251 251 } … … 260 260 261 261 function convert_bbcode($content) { 262 global $ b2_bbcode, $use_bbcode;262 global $wp_bbcode, $use_bbcode; 263 263 if ($use_bbcode) { 264 $content = preg_replace($ b2_bbcode["in"], $b2_bbcode["out"], $content);264 $content = preg_replace($wp_bbcode["in"], $wp_bbcode["out"], $content); 265 265 } 266 266 $content = convert_bbcode_email($content); … … 284 284 285 285 function convert_gmcode($content) { 286 global $ b2_gmcode, $use_gmcode;286 global $wp_gmcode, $use_gmcode; 287 287 if ($use_gmcode) { 288 $content = preg_replace($ b2_gmcode["in"], $b2_gmcode["out"], $content);288 $content = preg_replace($wp_gmcode["in"], $wp_gmcode["out"], $content); 289 289 } 290 290 return $content; … … 293 293 function convert_smilies($text) { 294 294 global $smilies_directory, $use_smilies; 295 global $ b2_smiliessearch, $b2_smiliesreplace;295 global $wp_smiliessearch, $wp_smiliesreplace; 296 296 $output = ''; 297 297 if ($use_smilies) { … … 302 302 $content = $textarr[$i]; 303 303 if ((strlen($content) > 0) && ('<' != $content{0})) { // If it's not a tag 304 $content = str_replace($ b2_smiliessearch, $b2_smiliesreplace, $content);304 $content = str_replace($wp_smiliessearch, $wp_smiliesreplace, $content); 305 305 } 306 306 $output .= $content; … … 1031 1031 function pingback($content, $post_ID) { 1032 1032 // original code by Mort (http://mort.mine.nu:8080) 1033 global $siteurl, $blogfilename, $ b2_version;1033 global $siteurl, $blogfilename, $wp_version; 1034 1034 $log = debug_fopen('./pingback.log', 'a'); 1035 1035 $post_links = array(); … … 1100 1100 1101 1101 // Send the GET request 1102 $request = "GET $path HTTP/1.1\r\nHost: $host\r\nUser-Agent: b2/$ b2_version PHP/" . phpversion() . "\r\n\r\n";1102 $request = "GET $path HTTP/1.1\r\nHost: $host\r\nUser-Agent: b2/$wp_version PHP/" . phpversion() . "\r\n\r\n"; 1103 1103 ob_end_flush(); 1104 1104 fputs($fp, $request); … … 1554 1554 } 1555 1555 1556 function start_ b2() {1556 function start_wp() { 1557 1557 global $post, $id, $postdata, $authordata, $day, $preview, $page, $pages, $multipage, $more, $numpages; 1558 1558 global $preview_userid,$preview_date,$preview_content,$preview_title,$preview_category,$preview_notify,$preview_make_clickable,$preview_autobr; … … 1610 1610 1611 1611 function apply_filters($tag, $string) { 1612 global $ b2_filter;1613 if (isset($ b2_filter['all'])) {1614 $ b2_filter['all'] = (is_string($b2_filter['all'])) ? array($b2_filter['all']) : $b2_filter['all'];1615 if (isset($ b2_filter[$tag]))1616 $ b2_filter[$tag] = array_merge($b2_filter['all'], $b2_filter[$tag]);1612 global $wp_filter; 1613 if (isset($wp_filter['all'])) { 1614 $wp_filter['all'] = (is_string($wp_filter['all'])) ? array($wp_filter['all']) : $wp_filter['all']; 1615 if (isset($wp_filter[$tag])) 1616 $wp_filter[$tag] = array_merge($wp_filter['all'], $wp_filter[$tag]); 1617 1617 else 1618 $ b2_filter[$tag] = array_merge($b2_filter['all'], array());1619 $ b2_filter[$tag] = array_unique($b2_filter[$tag]);1620 } 1621 if (isset($ b2_filter[$tag])) {1622 $ b2_filter[$tag] = (is_string($b2_filter[$tag])) ? array($b2_filter[$tag]) : $b2_filter[$tag];1623 $functions = $ b2_filter[$tag];1618 $wp_filter[$tag] = array_merge($wp_filter['all'], array()); 1619 $wp_filter[$tag] = array_unique($wp_filter[$tag]); 1620 } 1621 if (isset($wp_filter[$tag])) { 1622 $wp_filter[$tag] = (is_string($wp_filter[$tag])) ? array($wp_filter[$tag]) : $wp_filter[$tag]; 1623 $functions = $wp_filter[$tag]; 1624 1624 foreach($functions as $function) { 1625 1625 //error_log("apply_filters #1 applying filter $function"); … … 1631 1631 1632 1632 function add_filter($tag, $function_to_add) { 1633 global $ b2_filter;1634 if (isset($ b2_filter[$tag])) {1635 $functions = $ b2_filter[$tag];1633 global $wp_filter; 1634 if (isset($wp_filter[$tag])) { 1635 $functions = $wp_filter[$tag]; 1636 1636 if (is_array($functions)) { 1637 1637 foreach($functions as $function) { … … 1645 1645 if (is_array($function_to_add)) { 1646 1646 foreach($function_to_add as $function) { 1647 if (!in_array($function, $ b2_filter[$tag])) {1647 if (!in_array($function, $wp_filter[$tag])) { 1648 1648 $new_functions[] = $function; 1649 1649 } 1650 1650 } 1651 1651 } else */if (is_string($function_to_add)) { 1652 if (!@in_array($function_to_add, $ b2_filter[$tag])) {1652 if (!@in_array($function_to_add, $wp_filter[$tag])) { 1653 1653 $new_functions[] = $function_to_add; 1654 1654 } 1655 1655 } 1656 $ b2_filter[$tag] = $new_functions;1657 } else { 1658 $ b2_filter[$tag] = array($function_to_add);1656 $wp_filter[$tag] = $new_functions; 1657 } else { 1658 $wp_filter[$tag] = array($function_to_add); 1659 1659 } 1660 1660 return true; … … 1663 1663 // Check for hacks file if the option is enabled 1664 1664 if (get_settings('hack_file')) { 1665 if (file_exists( $abspath. '/my-hacks.php'))1666 require( $abspath. '/my-hacks.php');1665 if (file_exists(ABSPATH . '/my-hacks.php')) 1666 require(ABSPATH . '/my-hacks.php'); 1667 1667 } 1668 1668 ?> -
trunk/wp-includes/template-functions.php
r624 r628 1465 1465 1466 1466 function comments_popup_script($width=400, $height=400, $file='wp-comments-popup.php') { 1467 global $ b2commentspopupfile, $b2trackbackpopupfile, $b2pingbackpopupfile, $b2commentsjavascript;1468 $ b2commentspopupfile = $file;1469 $ b2commentsjavascript = 1;1467 global $wpcommentspopupfile, $wptrackbackpopupfile, $wppingbackpopupfile, $wpcommentsjavascript; 1468 $wpcommentspopupfile = $file; 1469 $wpcommentsjavascript = 1; 1470 1470 $javascript = "<script type='text/javascript'>\nfunction wpopen (macagna) {\n window.open(macagna, '_blank', 'width=$width,height=$height,scrollbars=yes,status=yes');\n}\n</script>\n"; 1471 1471 echo $javascript; … … 1473 1473 1474 1474 function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Comments', $CSSclass='', $none='Comments Off') { 1475 global $id, $ b2commentspopupfile, $b2commentsjavascript, $post, $wpdb, $tablecomments, $HTTP_COOKIE_VARS, $cookiehash;1475 global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post, $wpdb, $tablecomments, $HTTP_COOKIE_VARS, $cookiehash; 1476 1476 global $querystring_start, $querystring_equal, $querystring_separator, $siteurl; 1477 1477 $number = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1'"); … … 1487 1487 } 1488 1488 echo '<a href="'; 1489 if ($ b2commentsjavascript) {1490 echo $ b2commentspopupfile.$querystring_start.'p'.$querystring_equal.$id.$querystring_separator.'c'.$querystring_equal.'1';1489 if ($wpcommentsjavascript) { 1490 echo $wpcommentspopupfile.$querystring_start.'p'.$querystring_equal.$id.$querystring_separator.'c'.$querystring_equal.'1'; 1491 1491 //echo get_permalink(); 1492 1492 echo '" onclick="wpopen(this.href); return false"'; -
trunk/wp-includes/vars.php
r611 r628 4 4 5 5 #b2 version 6 $ b2_version = '0.80';6 $wp_version = '0.80'; 7 7 8 8 #BBcode search and replace arrays 9 $ b2_bbcode['in'] = array(9 $wp_bbcode['in'] = array( 10 10 '#\[b](.+?)\[/b]#is', // Formatting tags 11 11 '#\[i](.+?)\[/i]#is', … … 21 21 # '#\[email=(.+?)](.+?)\[/email]#eis' 22 22 ); 23 $ b2_bbcode['out'] = array(23 $wp_bbcode['out'] = array( 24 24 '<strong>$1</strong>', // Formatting tags 25 25 '<em>$1</em>', … … 37 37 38 38 #GreyMatter formatting search and replace arrays 39 $ b2_gmcode['in'] = array(39 $wp_gmcode['in'] = array( 40 40 '#\\*\*(.+?)\\*\*#is', // **bold** 41 41 '#\\\\(.+?)\\\\#is', // \\italic\\ 42 42 '#\__(.+?)\__#is' // __underline__ 43 43 ); 44 $ b2_gmcode['out'] = array(44 $wp_gmcode['out'] = array( 45 45 '<strong>$1</strong>', 46 46 '<em>$1</em>', … … 49 49 50 50 #Translation of HTML entities and special characters 51 $ b2_htmltrans = array_flip(get_html_translation_table(HTML_ENTITIES));52 $ b2_htmltrans['<'] = '<'; # preserve HTML53 $ b2_htmltrans['>'] = '>'; # preserve HTML54 $ b2_htmltransbis = array(51 $wp_htmltrans = array_flip(get_html_translation_table(HTML_ENTITIES)); 52 $wp_htmltrans['<'] = '<'; # preserve HTML 53 $wp_htmltrans['>'] = '>'; # preserve HTML 54 $wp_htmltransbis = array( 55 55 '' => '–', 56 56 '' => '—', … … 96 96 '⟩' => '〉', '◊' => '◊', '♠' => '♠', '♣' => '♣', '♥' => '♥', '♦' => '♦' 97 97 ); 98 $ b2_htmltrans = array_merge($b2_htmltrans,$b2_htmltransbis);98 $wp_htmltrans = array_merge($wp_htmltrans,$wp_htmltransbis); 99 99 100 100 #Translation of invalid Unicode references range to valid range 101 $ b2_htmltranswinuni = array(101 $wp_htmltranswinuni = array( 102 102 '€' => '€', // the Euro sign 103 103 '' => '', … … 165 165 166 166 # browser-specific javascript corrections 167 $ b2_macIE_correction['in'] = array(167 $wp_macIE_correction['in'] = array( 168 168 '/\%uFFD4/', '/\%uFFD5/', '/\%uFFD2/', '/\%uFFD3/', 169 169 '/\%uFFA5/', '/\%uFFD0/', '/\%uFFD1/', '/\%uFFBD/', … … 172 172 '/\%uFFDB/' 173 173 ); 174 $ b2_macIE_correction['out'] = array(174 $wp_macIE_correction['out'] = array( 175 175 '‘', '’', '“', '”', 176 176 '•', '–', '—', 'Ω', … … 179 179 '€' 180 180 ); 181 $ b2_gecko_correction['in'] = array(181 $wp_gecko_correction['in'] = array( 182 182 '/\â/', '/\â/', '/\â/', '/\â/', 183 183 '/\â¢/', '/\â/', '/\â/', '/\Ω/', … … 186 186 '/\â¬/', '/\â/' 187 187 ); 188 $ b2_gecko_correction['out'] = array(188 $wp_gecko_correction['out'] = array( 189 189 '&8216;', '’', '“', '”', 190 190 '•', '–', '—', 'Ω', … … 199 199 200 200 # if the config file does not provide the smilies array, let's define it here 201 if (!isset($ b2smiliestrans)) {202 $ b2smiliestrans = array(201 if (!isset($wpsmiliestrans)) { 202 $wpsmiliestrans = array( 203 203 ' :)' => 'icon_smile.gif', 204 204 ' :D' => 'icon_biggrin.gif', … … 258 258 } 259 259 } 260 uksort($ b2smiliestrans, 'smiliescmp');260 uksort($wpsmiliestrans, 'smiliescmp'); 261 261 262 262 # generates smilies' search & replace arrays 263 foreach($ b2smiliestrans as $smiley => $img) {264 $ b2_smiliessearch[] = $smiley;263 foreach($wpsmiliestrans as $smiley => $img) { 264 $wp_smiliessearch[] = $smiley; 265 265 $smiley_masked = ''; 266 266 for ($i = 0; $i < strlen($smiley); $i = $i + 1) { 267 267 $smiley_masked .= substr($smiley, $i, 1).chr(160); 268 268 } 269 $ b2_smiliesreplace[] = " <img src='$smilies_directory/$img' alt='$smiley_masked' />";269 $wp_smiliesreplace[] = " <img src='$smilies_directory/$img' alt='$smiley_masked' />"; 270 270 } 271 271 -
trunk/wp-locations.php
r601 r628 8 8 for ($i = $start; $i >= 0; $i--) { 9 9 $post = $posts[$i]; 10 start_ b2();10 start_wp(); 11 11 if ((get_Lon() != null) && (get_Lon > -360) && (get_Lon() < 360 )) { 12 12 ?> -
trunk/wp-login.php
r601 r628 21 21 } 22 22 23 $ b2varstoreset = array('action','mode','error','text','popupurl','popuptitle');24 25 for ($i = 0; $i < count($ b2varstoreset); $i = $i + 1) {26 $ b2var = $b2varstoreset[$i];27 if (!isset($$ b2var)) {28 if (empty($HTTP_POST_VARS["$ b2var"])) {29 if (empty($HTTP_GET_VARS["$ b2var"])) {30 $$ b2var = '';23 $wpvarstoreset = array('action','mode','error','text','popupurl','popuptitle'); 24 25 for ($i = 0; $i < count($wpvarstoreset); $i = $i + 1) { 26 $wpvar = $wpvarstoreset[$i]; 27 if (!isset($$wpvar)) { 28 if (empty($HTTP_POST_VARS["$wpvar"])) { 29 if (empty($HTTP_GET_VARS["$wpvar"])) { 30 $$wpvar = ''; 31 31 } else { 32 $$ b2var = $HTTP_GET_VARS["$b2var"];32 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 33 33 } 34 34 } else { 35 $$ b2var = $HTTP_POST_VARS["$b2var"];35 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 36 36 } 37 37 } -
trunk/wp-mail.php
r601 r628 2 2 require(dirname(__FILE__) . '/wp-config.php'); 3 3 4 require_once( $abspath.$b2inc.'/class-pop3.php');4 require_once(ABSPATH.WPINC.'/class-pop3.php'); 5 5 6 6 -
trunk/wp-rdf.php
r601 r628 21 21 ?> 22 22 <?php echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?".">"; ?> 23 <!-- generator="wordpress/<?php echo $ b2_version ?>" -->23 <!-- generator="wordpress/<?php echo $wp_version ?>" --> 24 24 <rdf:RDF 25 25 xmlns="http://purl.org/rss/1.0/" … … 37 37 <dc:date><?php echo gmdate('Y-m-d\TH:i:s'); ?></dc:date> 38 38 <dc:creator><?php echo antispambot($admin_email) ?></dc:creator> 39 <admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $ b2_version ?>"/>39 <admin:generatorAgent rdf:resource="http://wordpress.org/?v=<?php echo $wp_version ?>"/> 40 40 <admin:errorReportsTo rdf:resource="mailto:<?php echo antispambot($admin_email) ?>"/> 41 41 <sy:updatePeriod>hourly</sy:updatePeriod> … … 44 44 <items> 45 45 <rdf:Seq> 46 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_ b2(); ?>46 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?> 47 47 <rdf:li rdf:resource="<?php permalink_single_rss() ?>"/> 48 <?php $ b2_items[] = $row; $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } } ?>48 <?php $wp_items[] = $row; $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { break; } } } ?> 49 49 </rdf:Seq> 50 50 </items> 51 51 </channel> 52 <?php if ($posts) { foreach ($posts as $post) { start_ b2(); ?>52 <?php if ($posts) { foreach ($posts as $post) { start_wp(); ?> 53 53 <item rdf:about="<?php permalink_single_rss() ?>"> 54 54 <title><?php the_title_rss() ?></title> -
trunk/wp-register.php
r601 r628 19 19 } 20 20 21 $ b2varstoreset = array('action');22 for ($i=0; $i<count($ b2varstoreset); $i += 1) {23 $ b2var = $b2varstoreset[$i];24 if (!isset($$ b2var)) {25 if (empty($HTTP_POST_VARS["$ b2var"])) {26 if (empty($HTTP_GET_VARS["$ b2var"])) {27 $$ b2var = '';21 $wpvarstoreset = array('action'); 22 for ($i=0; $i<count($wpvarstoreset); $i += 1) { 23 $wpvar = $wpvarstoreset[$i]; 24 if (!isset($$wpvar)) { 25 if (empty($HTTP_POST_VARS["$wpvar"])) { 26 if (empty($HTTP_GET_VARS["$wpvar"])) { 27 $$wpvar = ''; 28 28 } else { 29 $$ b2var = $HTTP_GET_VARS["$b2var"];29 $$wpvar = $HTTP_GET_VARS["$wpvar"]; 30 30 } 31 31 } else { 32 $$ b2var = $HTTP_POST_VARS["$b2var"];32 $$wpvar = $HTTP_POST_VARS["$wpvar"]; 33 33 } 34 34 } -
trunk/wp-rss.php
r601 r628 23 23 ?> 24 24 <?php echo "<?xml version=\"1.0\"?".">"; ?> 25 <!-- generator="wordpress/<?php echo $ b2_version ?>" -->25 <!-- generator="wordpress/<?php echo $wp_version ?>" --> 26 26 <rss version="0.92"> 27 27 <channel> … … 35 35 <language><?php echo $rss_language ?></language> 36 36 37 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_ b2(); ?>37 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?> 38 38 <item> 39 39 <title><?php the_title_rss() ?></title> -
trunk/wp-rss2.php
r624 r628 24 24 ?> 25 25 <?php echo '<?xml version="1.0"?'.'>'; ?> 26 <!-- generator="wordpress/<?php echo $ b2_version ?>" -->26 <!-- generator="wordpress/<?php echo $wp_version ?>" --> 27 27 <rss version="2.0" 28 28 xmlns:content="http://purl.org/rss/1.0/modules/content/"> … … 35 35 <copyright>Copyright <?php echo mysql2date('Y', get_lastpostdate()); ?></copyright> 36 36 <pubDate><?php echo gmdate('r'); ?></pubDate> 37 <generator>http://wordpress.org/?v=<?php echo $ b2_version ?>"</generator>37 <generator>http://wordpress.org/?v=<?php echo $wp_version ?>"</generator> 38 38 39 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_ b2(); ?>39 <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?> 40 40 <item> 41 41 <title><?php the_title_rss() ?></title> -
trunk/wp-settings.php
r614 r628 20 20 21 21 // This is the name of the include directory. No "/" allowed. 22 $b2inc = 'wp-includes';22 define('WPINC', 'wp-includes'); 23 23 24 require ( $abspath. 'wp-config-extra.php');25 require ( $abspath . $b2inc. '/wp-db.php');26 require ( $abspath . $b2inc. '/functions.php');27 require ( $abspath . $b2inc. '/template-functions.php');28 require ( $abspath . $b2inc. '/class-xmlrpc.php');29 require ( $abspath . $b2inc. '/class-xmlrpcs.php');30 require ( $abspath. '/wp-links/links.php');24 require (ABSPATH . 'wp-config-extra.php'); 25 require (ABSPATH . WPINC . '/wp-db.php'); 26 require (ABSPATH . WPINC . '/functions.php'); 27 require (ABSPATH . WPINC . '/template-functions.php'); 28 require (ABSPATH . WPINC . '/class-xmlrpc.php'); 29 require (ABSPATH . WPINC . '/class-xmlrpcs.php'); 30 require (ABSPATH . '/wp-links/links.php'); 31 31 32 32 //setup the old globals from b2config.php … … 98 98 } //end !$_wp_installing 99 99 100 require ( $abspath . $b2inc. '/vars.php');100 require (ABSPATH . WPINC . '/vars.php'); 101 101 ?> -
trunk/wp.php
r618 r628 9 9 <!-- Change charset if needed(?) But please do not remove this metatag --> 10 10 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 11 <meta name="generator" content="WordPress <?php $ b2_version ?>" /> <!-- leave this for stats -->11 <meta name="generator" content="WordPress <?php $wp_version ?>" /> <!-- leave this for stats --> 12 12 <meta http-equiv="reply-to" content="you@somewhere.zzz" /> 13 13 <link rel="alternate" type="text/xml" title="RDF" href="<?php bloginfo('rdf_url'); ?>" /> … … 19 19 20 20 <!-- // loop start --> 21 <?php foreach ($posts as $post) { start_ b2(); ?>21 <?php foreach ($posts as $post) { start_wp(); ?> 22 22 <?php the_date("d.m.y","<h2>","</h2>"); ?> 23 23 <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
Note: See TracChangeset
for help on using the changeset viewer.