Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

excepcion in maintance.php

Asked Modified Viewed 2,954 times
F
FsDk
F
FsDk 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
asked
Newbie

I would like to access the file register.php on maintance mode is it possible?

Where do I have to edit the exception friends?
0 replies

7 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

In themes/templates/header.php look for...

if ($settings['maintenance'] == "1" && ((iMEMBER && $settings['maintenance_level'] == "1" 
   && $userdata['user_id'] != "1") || ($settings['maintenance_level'] > $userdata['user_level'])
)) {
   redirect(BASEDIR."maintenance.php");
 }


Change it to....

if ($settings['maintenance'] == "1" && ((iMEMBER && $settings['maintenance_level'] == "1" 
   && $userdata['user_id'] != "1") || ($settings['maintenance_level'] > $userdata['user_level'])
) && FUSION_SELF !=="register.php") {
   redirect(BASEDIR."maintenance.php");
 }


This will allow access to register.php when maintenance mode is on.
0 replies
-
- Tony -
-
www.lemviginfo.dk/platuglerne_ikon2.gif
www.lemviginfo.dk/../../images/lemvig_info.gif

Mainsite still running version 6 pfft
  • Junior Member, joined since
  • Contributed 38 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

So nothing like making site only for members - that was my first thought when i saw your post ;)




0 replies
G
Gillette
G
Gillette 10
  • Senior Member, joined since
  • Contributed 335 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

essentially just wanting to code register into maintenance mode?
0 replies
F
FsDk
F
FsDk 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Newbie

offer permissions to the users guests to register.php nothing more ggg
0 replies
-
- Tony -
-
www.lemviginfo.dk/platuglerne_ikon2.gif
www.lemviginfo.dk/../../images/lemvig_info.gif

Mainsite still running version 6 pfft
  • Junior Member, joined since
  • Contributed 38 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

Can you reveal what is your idea?





0 replies
F
FsDk
F
FsDk 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
answered
Newbie

nice - tony - very thanks!!!

me invit for my site www.php-fusion.com.es

"thanks tony"
0 replies
-
- Tony -
-
www.lemviginfo.dk/platuglerne_ikon2.gif
www.lemviginfo.dk/../../images/lemvig_info.gif

Mainsite still running version 6 pfft
  • Junior Member, joined since
  • Contributed 38 posts on the community forums.
  • Started 1 thread in the forums
answered
Junior Member

The maintenance settings is defined in

../themes/templates/header.php





0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

-
-
www.lemviginfo.dk/platuglerne_ikon2.gif
www.lemviginfo.dk/../../images/lemvig_info.gif

Mainsite still running version 6 pfft
  • Junior Member, joined since
  • Contributed 38 posts on the community forums.
  • Started 1 thread in the forums
C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
F
F
FsDk 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 3 threads in the forums
  • Started this discussions
G
G
Gillette 10
  • Senior Member, joined since
  • Contributed 335 posts on the community forums.
  • Started 4 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet