Update of /cvsroot/phpwebsite-comm/modules/phpwsbb/class
In directory sc8-pr-cvs1:/tmp/cvs-serv6229/class
Modified Files:
Manager.php Message.php
Log Message:
Progress
Index: Manager.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/phpwsbb/class/Manager.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Manager.php 20 May 2003 19:29:38 -0000 1.1
--- Manager.php 20 May 2003 21:59:16 -0000 1.2
***************
*** 17,20 ****
--- 17,46 ----
+ function _list() {
+ $GLOBALS["CNT_phpwsbb"]["title"] = $_SESSION["translate"]->it("Bulletin Board Messages");
+
+ $links = array();
+ $links[] = "<a href=\"index.php?module=phpwsbb&PHPWSBB_MAN_OP=list\">" . $_SESSION["translate"]->it("List Messages") . "</a>";
+ $links[] = "<a href=\"index.php?module=phpwsbb&PHPWSBB_MAN_OP=new\">" . $_SESSION["translate"]->it("Add New Message") . "</a>";
+
+ $GLOBALS["CNT_phpwsbb"]["content"] .= "<div align=\"right\">" . implode(" | ", $links) . "</div><br />";
+
+ $GLOBALS["CNT_phpwsbb"]["content"] .= $this->getList("messages", $_SESSION["translate"]->it("Bulletin Board Messages"));
+ }// END FUNC _list
+
+
+ function _view($id) {
+ $this->message = new PHPWSBB_Message($id[0]);
+ $_REQUEST["PHPWSBB_OP"] = "view";
+ }// END FUNC _view
+
+
+ function _new() {
+ // Will pid be passed along so I don't need separate reply() function?
+ $this->message = new PHPWSBB_Message;
+ $_REQUEST["PHPWSBB_OP"] = "edit";
+ }// END FUNC _new
+
+
function _accessDenied() {
$message = $_SESSION["translate"]->it("Access was denied due to lack of proper permissions.");
***************
*** 26,35 ****
function action() {
switch($_REQUEST["PHPWSBB_MAN_OP"]) {
! case "main":
! $content = $this->_list();
case "access_denied":
$this->_accessDenied();
break;
}
}// END FUNC action
}
--- 52,62 ----
function action() {
switch($_REQUEST["PHPWSBB_MAN_OP"]) {
! case "new":
! $content = $this->_new();
case "access_denied":
$this->_accessDenied();
break;
}
+
}// END FUNC action
}
Index: Message.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/phpwsbb/class/Message.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Message.php 20 May 2003 19:29:38 -0000 1.1
--- Message.php 20 May 2003 21:59:16 -0000 1.2
***************
*** 103,107 ****
if(isset($_REQUEST["Message_body"]))
! $this->setLabel($_REQUEST["Message_body"]);
$error = $this->commit();
--- 103,110 ----
if(isset($_REQUEST["Message_body"]))
! $this->_body($_REQUEST["Message_body"]);
!
! if(isset($_REQUEST["Message_pid"]))
! $this->_pid($_REQUEST["Message_pid"]);
$error = $this->commit();
|