Revert install to require admin, rather than founder.
This commit is contained in:
@@ -59,7 +59,7 @@ $lang = array_merge($lang, array(
|
||||
'INSTALLER_UNINSTALL_NOTE' => 'Wikommen im Aktualisierungs Menü',
|
||||
'INSTALLER_UNINSTALL_SUCCESSFUL' => 'Die Deinstallation des MODs v%s war erfolgreich.',
|
||||
|
||||
'INSTALLER_NEEDS_FOUNDER' => 'Du musst als Gründer eingeloggt sein.<br /><a href="../ucp.php?mode=login"><strong>Zum Login</strong></a>',
|
||||
'INSTALLER_NEEDS_ADMIN' => 'Du musst als Gründer eingeloggt sein.<br /><a href="../ucp.php?mode=login"><strong>Zum Login</strong></a>',
|
||||
|
||||
'INSTALLER_UPDATE' => 'Update',
|
||||
'INSTALLER_UPDATE_MENU' => 'Updatemenü',
|
||||
|
||||
@@ -27,6 +27,8 @@ $mode = request_var('mode', '');
|
||||
|
||||
$page_title = 'Board3portal v' . $current_version;
|
||||
|
||||
if( $user->data['is_registered'] && $user->data['user_type'] == USER_ADMIN )
|
||||
{
|
||||
$version_array = array('0.1.0', 'p3p1.2.2', 'p3p1.2.1', 'p3p1.2.0', 'p3p1.1.0b');
|
||||
|
||||
$old_version = 0;
|
||||
@@ -964,5 +966,11 @@ default:
|
||||
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
include($phpbb_root_path . 'install_portal/style/layout_header.'.$phpEx);
|
||||
echo '<h1>' . $user->lang['INSTALLER_ERROR'] . '</h1>';
|
||||
echo '<p>' . $user->lang['INSTALLER_NEEDS_ADMIN'] . '</p>';
|
||||
include($phpbb_root_path . 'install_portal/style/layout_footer.'.$phpEx);
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -59,7 +59,7 @@ $lang = array_merge($lang, array(
|
||||
'INSTALLER_UNINSTALL_NOTE' => 'Welcome to the Updatemenu',
|
||||
'INSTALLER_UNINSTALL_SUCCESSFUL' => 'Installation of the MOD v%s was successful.',
|
||||
|
||||
'INSTALLER_NEEDS_FOUNDER' => 'You must be logged in as a founder.<br /><a href="../ucp.php?mode=login"><strong>Go to login</strong>',
|
||||
'INSTALLER_NEEDS_ADMIN' => 'You must be logged in as an admin.<br /><a href="../ucp.php?mode=login"><strong>Go to login</strong>',
|
||||
|
||||
'INSTALLER_UPDATE' => 'Update',
|
||||
'INSTALLER_UPDATE_MENU' => 'Updatemenu',
|
||||
|
||||
Reference in New Issue
Block a user