Hello everyone I am trying to make it so I don't need to go into my php pages as much for my website, in my configuration.php page I have this.
$_CONFIG['website']['in_maint'] = false; //False if website is NOT in maintenance. True if website IS in maintenance
Which tells the site to either show a maintenance page or not, in my website administrator CP what I have been working on I have this https://i.stack.imgur.com/Yf73P.png copy image to view need more points to post a picture...
here is the code what I have put into that also,
<form action='' method='POST'>
<div align='left'><label for='Main'><b>Turn Maintenance</b></label><input class='btn btn-primary' name='on' type='submit' value='On'></div></div>
</form>
when I press the button it doesn't update anything is there even a way to update one php page from another? Or am I going to have to re code and make the maintenance into a database thing?