Update of /cvsroot/openbash-org/openbash-org/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24765/modules
Modified Files:
Quote.php
Log Message:
cambiada Quote.php para volver a ofrecer soporte PHP4
Index: Quote.php
===================================================================
RCS file: /cvsroot/openbash-org/openbash-org/modules/Quote.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** Quote.php 4 Jan 2005 11:33:41 -0000 1.19
--- Quote.php 27 Jan 2005 16:52:54 -0000 1.20
***************
*** 8,15 ****
class Quote
{
! private $bd;
! private $expire_cache;
! function __construct()
{
include ('config.php');
--- 8,15 ----
class Quote
{
! var $bd;
! var $expire_cache;
! function Quote()
{
include ('config.php');
***************
*** 21,25 ****
}
! function __destruct() { $this->bd->Close(); }
function insert_quote($quote, $author, $channel, $network, $ip)
--- 21,25 ----
}
! //function __destruct() { $this->bd->Close(); }
function insert_quote($quote, $author, $channel, $network, $ip)
***************
*** 52,56 ****
} else {
$this->mail_pending_quote($author, $quote, $ip);
! $url = '?page=quote&action=single&quote='.$bd->Insert_ID();
$view->view_inserted_quote($url);
}
--- 52,56 ----
} else {
$this->mail_pending_quote($author, $quote, $ip);
! $url = '?page=quote&action=single&quote='.$this->bd->Insert_ID();
$view->view_inserted_quote($url);
}
***************
*** 66,70 ****
* return 1: valid / return 2: pending
*/
! if ($quote->fields['pending'] == 1) return (1);
return ($quote->fields);
}
--- 66,70 ----
* return 1: valid / return 2: pending
*/
! if ($quote->fields['pending'] == 1) return (2);
return ($quote->fields);
}
***************
*** 187,190 ****
--- 187,191 ----
function mail_revision_quote($id)
{
+ include ('config.php');
$sql = "SELECT quote FROM quote WHERE id='$id'";
$quote = $this->bd->CacheExecute($sql);
***************
*** 206,209 ****
--- 207,211 ----
function mail_pending_quote($author, $quote, $ip)
{
+ include ('config.php');
$rcpt = $moderator_email;
$subject = "[ OpenBash ] new quote inserted by $author";
|