14 require_once(
"/usr/share/alternc/panel/class/config_nochk.php");
15 ini_set(
"display_errors", 1);
31 $db->query(
"select count(*) as c from sub_domaines where web_action != 'OK';");
36 if ( ! in_array(
'force', $argv) &&
$nb_todo < 1) {
47 die(
"Error: generate empty configuration\n");
51 $conf2 =
"###BEGIN OF ALTERNC AUTO-GENERATED FILE - DO NOT EDIT MANUALLY### 52 # Generation: ".date(
'Y-m-d H:i:s');
56 $conf2.=
"\n## Manual VHOST\nInclude ".ALTERNC_VHOST_MANUALCONF.
"\n" ;
58 $conf2.=
"\n## Manual VHOST directory missing (".ALTERNC_VHOST_MANUALCONF.
")\n" ;
61 $conf2.=
"\n$conf\n\n###END OF ALTERNC AUTO-GENERATED FILE - DO NOT EDIT MANUALLY###\n";
65 die(
"Error: writing content\n");
69 foreach (
$todo as $taction=>$tlist){
70 foreach ($tlist as $ttype) {
71 foreach($ttype as $tid) {
72 $dom->subdomain_modif_are_done($tid, $taction);
78 foreach (array(
'DELETE',
'CREATE',
'UPDATE',
'ENABLE',
'DISABLE') as $y) {
79 if (!isset(
$todo[$y]) || empty(
$todo[$y]))
continue;
if(! in_array('force', $argv) && $nb_todo< 1) $todo
const ALTERNC_VHOST_MANUALCONF