|
From: <dac...@us...> - 2007-09-10 03:47:18
|
Revision: 59
http://thevr.svn.sourceforge.net/thevr/?rev=59&view=rev
Author: dachebodt
Date: 2007-09-09 20:47:19 -0700 (Sun, 09 Sep 2007)
Log Message:
-----------
Fixed auth bug in installer
Modified Paths:
--------------
mods/cms/trunk/cms_install.php
Modified: mods/cms/trunk/cms_install.php
===================================================================
--- mods/cms/trunk/cms_install.php 2007-09-10 03:46:15 UTC (rev 58)
+++ mods/cms/trunk/cms_install.php 2007-09-10 03:47:19 UTC (rev 59)
@@ -31,19 +31,9 @@
login_box('', $user->lang['LOGIN_ADMIN'], $user->lang['LOGIN_ADMIN_SUCCESS'], true);
}
-// Have they authenticated (again) as an admin for this session?
-if (!isset($user->data['session_admin']) || !$user->data['session_admin'])
-{
- login_box('', $user->lang['LOGIN_ADMIN_CONFIRM'], $user->lang['LOGIN_ADMIN_SUCCESS'], true, false);
-}
page_header('CMS Installation');
-if (!$auth->acl_get('a_'))
-{
- trigger_error($user->lang['NO_ADMIN']);
-}
-
// We define the admin variables now, because the user is now able to use the admin related features...
define('IN_ADMIN', true);
$phpbb_admin_path = $phpbb_root_path . 'adm/';
@@ -55,6 +45,17 @@
if($mod && $action)
{
+ // Have they authenticated (again) as an admin for this session?
+ if (!isset($user->data['session_admin']) || !$user->data['session_admin'])
+ {
+ login_box('', $user->lang['LOGIN_ADMIN_CONFIRM'], $user->lang['LOGIN_ADMIN_SUCCESS'], true, false);
+ }
+
+ if (!$auth->acl_get('a_'))
+ {
+ trigger_error($user->lang['NO_ADMIN']);
+ }
+
include($phpbb_root_path . "modules/mods/acp_mods.$phpEx");
if($mod == 'mods')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|