Changeset 628
- Timestamp:
- 12/18/03 09:36:13 (5 years ago)
- Files:
-
- trunk/b2rdf.php (modified) (1 diff)
- trunk/b2rss.php (modified) (1 diff)
- trunk/b2rss2.php (modified) (1 diff)
- trunk/index-smarty.php (modified) (2 diffs)
- trunk/index.php (modified) (2 diffs)
- trunk/layout2b.css (deleted)
- trunk/wp-admin/admin-footer.php (modified) (1 diff)
- trunk/wp-admin/admin-header.php (modified) (2 diffs)
- trunk/wp-admin/bookmarklet.php (modified) (2 diffs)
- trunk/wp-admin/categories.php (modified) (1 diff)
- trunk/wp-admin/edit-showposts.php (modified) (1 diff)
- trunk/wp-admin/edit.php (modified) (1 diff)
- trunk/wp-admin/import-blogger.php (modified) (2 diffs)
- trunk/wp-admin/import-greymatter.php (modified) (1 diff)
- trunk/wp-admin/link-categories.php (modified) (1 diff)
- trunk/wp-admin/link-manager.php (modified) (1 diff)
- trunk/wp-admin/link-parse-opml.php (modified) (1 diff)
- trunk/wp-admin/moderation.php (modified) (1 diff)
- trunk/wp-admin/options-permalink.php (modified) (1 diff)
- trunk/wp-admin/options.php (modified) (1 diff)
- trunk/wp-admin/post.php (modified) (1 diff)
- trunk/wp-admin/profile.php (modified) (2 diffs)
- trunk/wp-admin/templates.php (modified) (1 diff)
- trunk/wp-admin/upload.php (modified) (1 diff)
- trunk/wp-admin/users.php (modified) (1 diff)
- trunk/wp-blog-header.php (modified) (1 diff)
- trunk/wp-comments-popup.php (modified) (1 diff)
- trunk/wp-commentsrss2.php (modified) (3 diffs)
- trunk/wp-config-extra.php (modified) (1 diff)
- trunk/wp-config-sample.php (modified) (1 diff)
- trunk/wp-includes/functions.php (modified) (13 diffs)
- trunk/wp-includes/template-functions.php (modified) (3 diffs)
- trunk/wp-includes/vars.php (modified) (11 diffs)
- trunk/wp-locations.php (modified) (1 diff)
- trunk/wp-login.php (modified) (1 diff)
- trunk/wp-mail.php (modified) (1 diff)
- trunk/wp-rdf.php (modified) (3 diffs)
- trunk/wp-register.php (modified) (1 diff)
- trunk/wp-rss.php (modified) (2 diffs)
- trunk/wp-rss2.php (modified) (2 diffs)
- trunk/wp-settings.php (modified) (2 diffs)
- trunk/wp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
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
