So I could do this then to make it possibly easier:
Code:
include_once("includes/adminfunctions.php");
include_once("includes/adminfunctions_options.php");
if(new_mod_setting_board_offline){
save_settings(array('bbactive' => 0));
}
if(new_mod_setting_board_online){
save_settings(array('bbactive' => 1));
}
EDIT: No, I wouldn't want to do that as it would then run on all pages unless there's and option or a way to only run it when settings are saved, right?