Update of /cvsroot/phpwebsite-comm/modules/phpwsbb/class
In directory sc8-pr-cvs1:/tmp/cvs-serv28863/class
Modified Files:
Manager.php Message.php
Log Message:
Got search working
Index: Manager.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/phpwsbb/class/Manager.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Manager.php 3 Jun 2003 21:26:42 -0000 1.11
--- Manager.php 3 Jun 2003 21:54:28 -0000 1.12
***************
*** 37,41 ****
$links[] = "<a href=\"index.php?module=phpwsbb&PHPWSBB_MAN_OP=new\">" . $_SESSION["translate"]->it("New Topic") . "</a>";
if($tid)
! $links[] = "<a href=\"./index.php?module=phpwsbb&PHPWSBB_MAN_OP=reply&PHPWS_MAN_ITEMS[]=" . $this->thread->getId() . "\">" . $_SESSION["translate"]->it("Post Reply") . "</a>";
$links[] = "<a href=\"index.php?module=phpwsbb&PHPWSBB_MAN_OP=list\">" . $_SESSION["translate"]->it("List Topics") . "</a>";
--- 37,41 ----
$links[] = "<a href=\"index.php?module=phpwsbb&PHPWSBB_MAN_OP=new\">" . $_SESSION["translate"]->it("New Topic") . "</a>";
if($tid)
! $links[] = "<a href=\"./index.php?module=phpwsbb&PHPWSBB_MAN_OP=reply&PHPWS_MAN_ITEMS[]=" . $tid . "\">" . $_SESSION["translate"]->it("Post Reply") . "</a>";
$links[] = "<a href=\"index.php?module=phpwsbb&PHPWSBB_MAN_OP=list\">" . $_SESSION["translate"]->it("List Topics") . "</a>";
***************
*** 95,103 ****
function search($where) {
! $sql = "SELECT tid,label FROM " . $GLOBALS["core"]->tbl_prefix . "mod_phpwsbb_messages $where";
$result = $GLOBALS["core"]->query($sql);
! if($results) {
! while($row = $result->fetchRow(DB_FETCHMOD_ASSOC)) {
$array[$row["tid"]] = $row["label"];
}
--- 95,105 ----
function search($where) {
! $array = array();
!
! $sql = "SELECT tid, label FROM " . $GLOBALS["core"]->tbl_prefix . "mod_phpwsbb_messages $where";
$result = $GLOBALS["core"]->query($sql);
! if($result) {
! while($row = $result->fetchRow(DB_FETCHMODE_ASSOC)) {
$array[$row["tid"]] = $row["label"];
}
Index: Message.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/phpwsbb/class/Message.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Message.php 3 Jun 2003 21:13:26 -0000 1.11
--- Message.php 3 Jun 2003 21:54:28 -0000 1.12
***************
*** 187,191 ****
$thread = new PHPWSBB_Thread;
$thread->setLabel($this->getLabel());
- $thread->_lastreply = time();
$thread->commit();
$this->_tid = $thread->getId();
--- 187,190 ----
|