summaryrefslogtreecommitdiff
path: root/broadcast.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 /broadcast.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 'broadcast.php')
-rw-r--r--broadcast.php32
1 files changed, 16 insertions, 16 deletions
diff --git a/broadcast.php b/broadcast.php
index c18657f..64e274b 100644
--- a/broadcast.php
+++ b/broadcast.php
@@ -3,7 +3,7 @@
* message package modules
*
* @author
-* @version $Header: /cvsroot/bitweaver/_bit_messages/broadcast.php,v 1.2 2005/06/28 07:45:52 spiderr Exp $
+* @version $Header: /cvsroot/bitweaver/_bit_messages/broadcast.php,v 1.3 2005/08/01 18:41:08 squareing Exp $
* @package messages
* @subpackage functions
*/
@@ -20,21 +20,21 @@ require_once( '../bit_setup_inc.php' );
include_once( MESSU_PKG_PATH.'messu_lib.php' );
if (!$user) {
- $smarty->assign('msg', tra("You are not logged in"));
+ $gBitSmarty->assign('msg', tra("You are not logged in"));
$gBitSystem->display( 'error.tpl' );
die;
}
if ($feature_messages != 'y') {
- $smarty->assign('msg', tra("This feature is disabled").": feature_messages");
+ $gBitSmarty->assign('msg', tra("This feature is disabled").": feature_messages");
$gBitSystem->display( 'error.tpl' );
die;
}
if ($bit_p_broadcast != 'y') {
- $smarty->assign('msg', tra("Permission denied"));
+ $gBitSmarty->assign('msg', tra("Permission denied"));
$gBitSystem->display( 'error.tpl' );
die;
@@ -58,16 +58,16 @@ if (!isset($_REQUEST['body']))
if (!isset($_REQUEST['priority']))
$_REQUEST['priority'] = 3;
-$smarty->assign('to', $_REQUEST['to']);
-$smarty->assign('cc', $_REQUEST['cc']);
-$smarty->assign('bcc', $_REQUEST['bcc']);
-$smarty->assign('subject', $_REQUEST['subject']);
-$smarty->assign('body', $_REQUEST['body']);
-$smarty->assign('priority', $_REQUEST['priority']);
+$gBitSmarty->assign('to', $_REQUEST['to']);
+$gBitSmarty->assign('cc', $_REQUEST['cc']);
+$gBitSmarty->assign('bcc', $_REQUEST['bcc']);
+$gBitSmarty->assign('subject', $_REQUEST['subject']);
+$gBitSmarty->assign('body', $_REQUEST['body']);
+$gBitSmarty->assign('priority', $_REQUEST['priority']);
$gBitSystem->display( 'bitpackage:messu/messu_broadcast.tpl');
-$smarty->assign('sent', 0);
+$gBitSmarty->assign('sent', 0);
if (isset($_REQUEST['reply']) || isset($_REQUEST['replyall'])) {
$messulib->flag_message($user, $_REQUEST['msg_id'], 'is_replied', 'y');
@@ -89,14 +89,14 @@ if (isset($_REQUEST['group'])) {
if (isset($_REQUEST['send'])) {
- $smarty->assign('sent', 1);
+ $gBitSmarty->assign('sent', 1);
$message = '';
// Validation:
// must have a subject or body non-empty (or both)
if (empty($_REQUEST['subject']) && empty($_REQUEST['body'])) {
- $smarty->assign('message', tra('ERROR: Either the subject or body must be non-empty'));
+ $gBitSmarty->assign('message', tra('ERROR: Either the subject or body must be non-empty'));
die;
}
@@ -127,7 +127,7 @@ if (isset($_REQUEST['send'])) {
} else {
$message = tra('ERROR: No valid users to send the message');
- $smarty->assign('message', $message);
+ $gBitSmarty->assign('message', $message);
die;
}
@@ -136,12 +136,12 @@ if (isset($_REQUEST['send'])) {
$messulib->post_message($a_user, $user, $a_user, '', $_REQUEST['subject'], $_REQUEST['body'], $_REQUEST['priority']);
}
- $smarty->assign('message', $message);
+ $gBitSmarty->assign('message', $message);
}
$groups = $userlib->get_groups(0, -1, 'group_name_asc', '');
-$smarty->assign_by_ref('groups', $groups["data"]);
+$gBitSmarty->assign_by_ref('groups', $groups["data"]);
$section = 'user_messages';
?>