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

@@ -14,6 +14,8 @@
*/
class acp_jabber
{
var $u_action;
function main($id, $mode)
{
global $db, $user, $auth, $template;
@@ -31,7 +33,6 @@ class acp_jabber
return;
}
$u_action = "{$phpbb_admin_path}index.$phpEx$SID&i=$id&mode=$mode";
$this->tpl_name = 'acp_jabber';
$this->page_title = 'ACP_JABBER_SETTINGS';
@@ -63,7 +64,7 @@ class acp_jabber
{
if (!$jabber->Connect())
{
trigger_error('Could not connect to Jabber server' . adm_back_link($u_action));
trigger_error('Could not connect to Jabber server' . adm_back_link($this->u_action));
}
// First we'll try to authorise using this account, if that fails we'll
@@ -93,12 +94,12 @@ class acp_jabber
{
if (!$jabber->Connect())
{
trigger_error('Could not connect to Jabber server' . adm_back_link($u_action));
trigger_error('Could not connect to Jabber server' . adm_back_link($this->u_action));
}
if (!$jabber->SendAuth())
{
trigger_error('Could not authorise on Jabber server' . adm_back_link($u_action));
trigger_error('Could not authorise on Jabber server' . adm_back_link($this->u_action));
}
$jabber->SendPresence(NULL, NULL, 'online');
@@ -140,7 +141,7 @@ class acp_jabber
if ($submit && !sizeof($error))
{
add_log('admin', 'LOG_' . $log);
trigger_error($message . adm_back_link($u_action));
trigger_error($message . adm_back_link($this->u_action));
}
if (sizeof($error))
@@ -152,7 +153,7 @@ class acp_jabber
}
$template->assign_vars(array(
'U_ACTION' => $u_action,
'U_ACTION' => $this->u_action,
'JAB_ENABLE' => $new['jab_enable'],
'L_JAB_SERVER_EXPLAIN' => sprintf($user->lang['JAB_SERVER_EXPLAIN'], '<a href="http://www.jabber.org/user/publicservers.php" rel="external">', '</a>'),
'JAB_HOST' => $new['jab_host'],