1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

- fix some tiny bugs

- fix module system (sometimes the layout is broken due to falsly deactivated categories)
- auth updates (setting permissions)
- fix "category jumping" bug in acp
- u_action is defined by the module itself


git-svn-id: file:///svn/phpbb/trunk@5558 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2006-02-18 13:54:12 +00:00
parent f2f0dc7892
commit 26a6d215d0
29 changed files with 954 additions and 866 deletions

View File

@@ -13,6 +13,8 @@
*/
class acp_email
{
var $u_action;
function main($id, $mode)
{
global $config, $db, $user, $auth, $template, $cache;
@@ -22,8 +24,6 @@ class acp_email
$this->tpl_name = 'acp_email';
$this->page_title = 'ACP_MASS_EMAIL';
$u_action = "{$phpbb_admin_path}index.$phpEx$SID&i=$id&mode=$mode";
// Set some vars
$submit = (isset($_POST['submit'])) ? true : false;
$error = array();
@@ -87,7 +87,7 @@ class acp_email
if (!($row = $db->sql_fetchrow($result)))
{
trigger_error($user->lang['NO_USER'] . adm_back_link($u_action));
trigger_error($user->lang['NO_USER'] . adm_back_link($this->u_action));
}
$db->sql_freeresult($result);
@@ -186,7 +186,7 @@ class acp_email
add_log('admin', 'LOG_MASS_EMAIL', $group_name);
$message = (!$errored) ? $user->lang['EMAIL_SENT'] : sprintf($user->lang['EMAIL_SEND_ERROR'], '<a href="' . $phpbb_admin_path . "index.$phpEx$SID&amp;i=logs&amp;mode=critical" . '">', '</a>');
trigger_error($message . adm_back_link($u_action));
trigger_error($message . adm_back_link($this->u_action));
}
}
@@ -206,7 +206,7 @@ class acp_email
$template->assign_vars(array(
'S_WARNING' => (sizeof($error)) ? true : false,
'WARNING_MSG' => (sizeof($error)) ? implode('<br />', $error) : '',
'U_ACTION' => $u_action,
'U_ACTION' => $this->u_action,
'S_GROUP_OPTIONS' => $select_list,
'USERNAMES' => $usernames,
'U_FIND_USERNAME' => $phpbb_root_path . "memberlist.$phpEx$SID&amp;mode=searchuser&amp;form=acp_email&amp;field=usernames",