Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [el noe] enable / disable page from script suggestion

Quote Reply
Re: [el noe] enable / disable page from script suggestion In reply to
Hi,

You're trying to disable the site?

This should do it in a global/plugin/.cgi script:

Code:
$CFG->{disabled} = 0;
$CFG->save();

...and:

Code:
$CFG->{disabled} = 1;
$CFG->save();

Muich safer than editing the way you are doing it Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread enable / disable page from script suggestion el noe 3457 May 6, 2010, 3:45 PM
Thread Re: [el noe] enable / disable page from script suggestion
Andy 3352 May 6, 2010, 11:59 PM
Thread Re: [Andy] enable / disable page from script suggestion
el noe 3362 May 7, 2010, 12:26 AM
Post Re: [el noe] enable / disable page from script suggestion
Andy 3340 May 7, 2010, 12:49 AM