summaryrefslogtreecommitdiff
path: root/message_box.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-08-01 18:41:09 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-08-01 18:41:09 +0000
commitcf0e9b1c3f80ae05fc53d3de8cdd374ebd49c385 (patch)
treebd11de940890d755733cfc9252cb6ea75f5f16fc /message_box.php
parentfa35a532c456369432c149e1531d8d6d74097416 (diff)
downloadmessages-cf0e9b1c3f80ae05fc53d3de8cdd374ebd49c385.tar.gz
messages-cf0e9b1c3f80ae05fc53d3de8cdd374ebd49c385.tar.bz2
messages-cf0e9b1c3f80ae05fc53d3de8cdd374ebd49c385.zip
merge recent changes with HEAD - R1 and HEAD are identical now
Diffstat (limited to 'message_box.php')
-rw-r--r--message_box.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/message_box.php b/message_box.php
index 82d858f..36fb3e4 100644
--- a/message_box.php
+++ b/message_box.php
@@ -3,7 +3,7 @@
* message package modules
*
* @author
-* @version $Header: /cvsroot/bitweaver/_bit_messages/message_box.php,v 1.2 2005/06/28 07:45:52 spiderr Exp $
+* @version $Header: /cvsroot/bitweaver/_bit_messages/message_box.php,v 1.3 2005/08/01 18:41:08 squareing Exp $
* @package messages
* @subpackage functions
*/
@@ -19,7 +19,7 @@ require_once( '../bit_setup_inc.php' );
require_once( MESSU_PKG_PATH.'messu_lib.php' );
if( !$gBitUser->isRegistered() ) {
- $smarty->assign('msg', tra("You are not logged in"));
+ $gBitSmarty->assign('msg', tra("You are not logged in"));
$gBitSystem->display( 'error.tpl' );
die;
}
@@ -81,33 +81,33 @@ if (isset($_REQUEST["find"])) {
$find = '';
}
-$smarty->assign_by_ref('flag', $_REQUEST['flag']);
-$smarty->assign_by_ref('priority', $_REQUEST['priority']);
-$smarty->assign_by_ref('flagval', $_REQUEST['flagval']);
-$smarty->assign_by_ref('offset', $offset);
-$smarty->assign_by_ref('sort_mode', $sort_mode);
-$smarty->assign('find', $find);
+$gBitSmarty->assign_by_ref('flag', $_REQUEST['flag']);
+$gBitSmarty->assign_by_ref('priority', $_REQUEST['priority']);
+$gBitSmarty->assign_by_ref('flagval', $_REQUEST['flagval']);
+$gBitSmarty->assign_by_ref('offset', $offset);
+$gBitSmarty->assign_by_ref('sort_mode', $sort_mode);
+$gBitSmarty->assign('find', $find);
// What are we paginating: items
$items = $messulib->list_messages( $gBitUser->mUserId, $offset, $maxRecords, $sort_mode,
$find, $_REQUEST["flag"], $_REQUEST["flagval"], $_REQUEST['priority']);
$cant_pages = ceil($items["cant"] / $maxRecords);
-$smarty->assign_by_ref('cant_pages', $cant_pages);
-$smarty->assign('actual_page', 1 + ($offset / $maxRecords));
+$gBitSmarty->assign_by_ref('cant_pages', $cant_pages);
+$gBitSmarty->assign('actual_page', 1 + ($offset / $maxRecords));
if ($items["cant"] > ($offset + $maxRecords)) {
- $smarty->assign('next_offset', $offset + $maxRecords);
+ $gBitSmarty->assign('next_offset', $offset + $maxRecords);
} else {
- $smarty->assign('next_offset', -1);
+ $gBitSmarty->assign('next_offset', -1);
}
if ($offset > 0) {
- $smarty->assign('prev_offset', $offset - $maxRecords);
+ $gBitSmarty->assign('prev_offset', $offset - $maxRecords);
} else {
- $smarty->assign('prev_offset', -1);
+ $gBitSmarty->assign('prev_offset', -1);
}
-$smarty->assign_by_ref('items', $items["data"]);
+$gBitSmarty->assign_by_ref('items', $items["data"]);
$section = 'user_messages';