Finally figured it out .. all of the options are saved in the table template with the title options
Code:
SELECT * FROM `template` WHERE `template` = 'options'
I made the following function to insert my banned IPs . but could also be used to manually insert other options:
PHP Code:
function Build_Options ($baniplist) {
global $DB_site;
$options = $DB_site->query_first("SELECT template FROM template where title = 'options'");
$opt = explode ('$banip = "";', $options['template']);
$newopts = $opt[0].'$banip = "'.$baniplist.'";'.$opt[1];
$options = $DB_site->query("UPDATE template SET template = '$newopts' where title = 'options'");
return;
}
Thanks for your help