Evening all 
I have a config.php file for my site which, in short, contains a few variables and nothing else. These are sitewide variables and the file is included on most pages of the site.
What I'm looking at doing is being able to modify the values of these variables in config.php though a web interface.
For example in config.php:
And I would like a "Disable Site" link on a page, which would then change the value of '$c_enablesite' to 'false' in config.php.
What's the best way to go about doing this? Are there any prewritten scripts or classes that could help at all?
Thanks,
Jon

I have a config.php file for my site which, in short, contains a few variables and nothing else. These are sitewide variables and the file is included on most pages of the site.
What I'm looking at doing is being able to modify the values of these variables in config.php though a web interface.
For example in config.php:
Code:
$c_enablesite = true;
And I would like a "Disable Site" link on a page, which would then change the value of '$c_enablesite' to 'false' in config.php.
What's the best way to go about doing this? Are there any prewritten scripts or classes that could help at all?
Thanks,
Jon