1
Northern
Site Preferences
  • 2007/3/20 4:21

  • Northern

  • Just can't stay away

  • Posts: 420

  • Since: 2004/12/26


what file/s do I need to alter or remove to take out or
make the "Turn your site off?" not work, so the site cant
be turned off?

2
ninja
Re: Site Preferences
  • 2007/3/20 4:40

  • ninja

  • Just popping in

  • Posts: 70

  • Since: 2003/5/27


i'm curious why would you want to do that?

3
Northern
Re: Site Preferences
  • 2007/3/20 6:32

  • Northern

  • Just can't stay away

  • Posts: 420

  • Since: 2004/12/26


simple.

Click on the site link and it will take you to a Undistructable XOOPS demo site. Where you are admin of the site and control all accpects of the XOOPS site ( minus the cpanel ).
and with this you could turn the site on and off.
that great, but what if another person would likw to try it?
the sites turned off.

now if I remove this command there would be no more problems with users turning it off.

granted, the site restores itself every 120 mins ( 2 hours )
but its still a pain nun the less.

this would also help in aplying the same thing ( deableing the turn site off ) in XOOPS Cube and cube legasy.

4
irmtfan
Re: Site Preferences
  • 2007/3/20 9:45

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


in xoops-2016/include/common.php(341) AND xoops-2016/include/checklogin.php(72) look for
if ($xoopsConfig['closesite'] == 1) {
        
$allowed false;

and change it to
if ($xoopsConfig['closesite'] == 1) {
        
$allowed = [color=FF0000]true[/color];

i dont test it by myself and maybe there is no need to change checklogin.

Login

Who's Online

343 user(s) are online (271 user(s) are browsing Support Forums)


Members: 0


Guests: 343


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits