SimplePortal

Support => Install and Upgrade => Topic started by: jekeke123 on May 07, 2012, 11:47:21 AM

Title: A little error with index.php
Post 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:
Code: [Select]
Parse error: syntax error, unexpected T_ELSEIF in /home/u927189194/public_html/index.php on line 228

The line 220-230:
Code: [Select]
// 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
Title: Re: A little error with index.php
Post by: Kryzen on May 07, 2012, 12:15:06 PM
Hi, welcome to Simple Portal! :)
Replace
Code: [Select]
// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))

{

}
With
Code: [Select]
// Is the forum in maintenance mode? (doesn't apply to administrators.)
if (!empty($maintenance) && !allowedTo('admin_forum'))

{
This should work :)
Title: Re: A little error with index.php
Post by: jekeke123 on May 07, 2012, 12:19:15 PM
Thanks it works perfectly
Title: Re: A little error with index.php
Post by: Kryzen on May 07, 2012, 12:20:43 PM
You're welcome :)
SimplePortal 2.3.8 © 2008-2024, SimplePortal