[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] forum/inc/class.uiforum.inc.php, 1.1.2.7.2.1
From: |
nomail |
Subject: |
[Phpgroupware-cvs] forum/inc/class.uiforum.inc.php, 1.1.2.7.2.1 |
Date: |
Wed, 20 Oct 2004 17:34:39 +0200 |
Update of /forum/inc
Modified Files:
Branch: Version-0_9_16-branch
class.uiforum.inc.php
date: 2004/10/20 15:34:39; author: skwashd; state: Exp; lines: +14 -12
Log Message:
some fixed
=====================================================================
Index: forum/inc/class.uiforum.inc.php
diff -u forum/inc/class.uiforum.inc.php:1.1.2.7
forum/inc/class.uiforum.inc.php:1.1.2.7.2.1
--- forum/inc/class.uiforum.inc.php:1.1.2.7 Tue Jun 4 14:14:48 2002
+++ forum/inc/class.uiforum.inc.php Wed Oct 20 15:34:39 2004
@@ -17,11 +17,11 @@
{
var $public_functions = array(
- 'index' => True,
- 'forum' => True,
+ 'index' => True,
+ 'forum' => True,
'threads' => True,
- 'read' => True,
- 'post' => True
+ 'read' => True,
+ 'post' => True
);
var $debug;
@@ -51,9 +51,9 @@
function _debug_sqsof()
{
$data = array(
- 'view'=> $this->bo->view,
+ 'view' => $this->bo->view,
'location' => $this->bo->location,
- 'cat_id'=> $this->bo->cat_id,
+ 'cat_id' => $this->bo->cat_id,
'forum_id' => $this->bo->forum_id
);
echo '<br>UI:';
@@ -64,9 +64,9 @@
function save_sessiondata()
{
$data = array(
- 'view'=> $this->bo->view,
+ 'view' => $this->bo->view,
'location' => $this->bo->location,
- 'cat_id'=> $this->bo->cat_id,
+ 'cat_id' => $this->bo->cat_id,
'forum_id' => $this->bo->forum_id
);
$this->bo->save_sessiondata($data);
@@ -339,8 +339,8 @@
$this->template->set_block('READ','read_body','read_body');
$this->template->set_block('READ','msg_template','msg_template');
- $msg = $GLOBALS['HTTP_GET_VARS']['msg'];
- $pos = $GLOBALS['HTTP_GET_VARS']['pos'];
+ $msg = intval($_GET['msg']);
+ $pos = intval($_GET['pos']);
$this->template->set_var('row_off',$GLOBALS['phpgw_info']['theme']['row_off']);
$this->template->set_var('row_on',$GLOBALS['phpgw_info']['theme']['row_on']);
@@ -463,6 +463,8 @@
$this->template->set_var('row_off',$GLOBALS['phpgw_info']['theme']['row_off']);
$this->template->set_var('row_on',$GLOBALS['phpgw_info']['theme']['row_on']);
+ $posttype = addslashes(htmlentities($_GET['type']));
+
$category = $this->bo->get_cat_info($this->bo->cat_id);
$forum =
$this->bo->get_forum_info($this->bo->cat_id,$this->bo->forum_id);
@@ -487,7 +489,7 @@
'POST_ACTION' =>
$GLOBALS['phpgw']->link('/index.php','menuaction=forum.boforum.post'),
'CAT_ID' => $this->bo->cat_id,
'FORUM_ID' => $this->bo->forum_id,
- 'TYPE' =>
$GLOBALS['HTTP_GET_VARS']['type'],
+ 'TYPE' => $posttype,
'ACTION' => 'post',
'LANG_DATE' => lang('Date'),
'LANG_SUBJECT' => lang('Subject'),
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] forum/inc/class.uiforum.inc.php, 1.1.2.7.2.1,
nomail <=