SimplePortal
Support => Install and Upgrade => Topic started by: jekeke123 on May 07, 2012, 11:47:21 AM
-
Okay i have a little problem with installing of the awesome portal
the error i get:
Parse error: syntax error, unexpected T_ELSEIF in /home/u927189194/public_html/index.php on line 228
The line 220-230:
// Don't even try it, sonny.
else
{
require_once($sourcedir . '/Subs-Auth.php');
return 'InMaintenance';
}
}
// If guest access is off, a guest can only do one of the very few following actions.
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_REQUEST['action']) || !in_array($_REQUEST['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', 'smstats', 'mailq', 'verificationcode', 'openidreturn'))))
{
And the hole index.php you can find that in the attachments
-
Hi, welcome to Simple Portal! :)
Replace
// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
}
With
// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))
{
This should work :)
-
Thanks it works perfectly
-
You're welcome :)