Fix to use ezsql

git-svn-id: http://svn.automattic.com/wordpress/trunk@144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-06-01 20:59:33 +00:00
parent 290ac10686
commit cacc4ed4fd
5 changed files with 8 additions and 5 deletions

9
b2.php
View File

@ -18,9 +18,8 @@
<body> <body>
<!-- // b2 loop start --> <!-- // b2 loop start -->
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?> <?php foreach ($posts as $post) { start_b2(); ?>
<?php the_date("d.m.y","<h1>","</h1>"); ?> <?php the_date("d.m.y","<h1>","</h1>"); ?>
@ -39,8 +38,8 @@
<?php include ("b2comments.php"); ?> <?php include ("b2comments.php"); ?>
<!-- // this is just the end of the motor - don't touch that line either :) --> <!-- // this is just the end of the motor - don't touch that line either :) -->
<?php } ?> <?php } ?>
<div align="right"><cite>Powered by <a href="http://wordpress.org"><strong>Wordpress</strong></a></cite><br /> <div align="right"><cite>Powered by <a href="http://wordpress.org"><strong>Wordpress</strong></a></cite><br />
<br /> <br />

View File

@ -3,6 +3,7 @@ require('b2config.php');
require_once($abspath.$b2inc.'/b2template.functions.php'); require_once($abspath.$b2inc.'/b2template.functions.php');
require_once($abspath.$b2inc.'/b2functions.php'); require_once($abspath.$b2inc.'/b2functions.php');
require_once($abspath.$b2inc.'/b2vars.php'); require_once($abspath.$b2inc.'/b2vars.php');
require_once($abspath.$b2inc.'/wp-db.php');
if (!function_exists('add_magic_quotes')) { if (!function_exists('add_magic_quotes')) {
function add_magic_quotes($array) { function add_magic_quotes($array) {

View File

@ -12,6 +12,7 @@ require_once ($curpath.$b2inc.'/b2vars.php');
require_once ($curpath.$b2inc.'/b2functions.php'); require_once ($curpath.$b2inc.'/b2functions.php');
require_once ($curpath.$b2inc.'/xmlrpc.inc'); require_once ($curpath.$b2inc.'/xmlrpc.inc');
require_once ($curpath.$b2inc.'/xmlrpcs.inc'); require_once ($curpath.$b2inc.'/xmlrpcs.inc');
require_once ($curpath.$b2inc.'/wp-db.php');
$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'); $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');

View File

@ -7,6 +7,7 @@ require_once($abspath.$b2inc.'/b2vars.php');
require_once($abspath.$b2inc.'/b2functions.php'); require_once($abspath.$b2inc.'/b2functions.php');
require_once($abspath.$b2inc.'/xmlrpc.inc'); require_once($abspath.$b2inc.'/xmlrpc.inc');
require_once($abspath.$b2inc.'/xmlrpcs.inc'); require_once($abspath.$b2inc.'/xmlrpcs.inc');
require_once($abspath.$b2inc.'/wp-db.php');
if (!isset($use_cache)) $use_cache=1; if (!isset($use_cache)) $use_cache=1;
if (!isset($blogID)) $blog_ID=1; if (!isset($blogID)) $blog_ID=1;

View File

@ -1,6 +1,7 @@
<?php <?php
require_once('../b2config.php'); require_once('../b2config.php');
require_once($abspath.$b2inc.'/wp-db.php');
/* checking login & pass in the database */ /* checking login & pass in the database */
function veriflog() { function veriflog() {