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').
"
53 ## LogFormat informations
54 Include \"/etc/alternc/apache_logformat.conf\"";
58 $conf2.=
"\n## Manual VHOST\nInclude ".ALTERNC_VHOST_MANUALCONF.
"\n" ;
60 $conf2.=
"\n## Manual VHOST directory missing (".ALTERNC_VHOST_MANUALCONF.
")\n" ;
63 $conf2.=
"\n$conf\n\n###END OF ALTERNC AUTO-GENERATED FILE - DO NOT EDIT MANUALLY###\n";
67 die(
"Error: writing content\n");
71 foreach (
$todo as $taction=>$tlist){
72 foreach ($tlist as $ttype) {
73 foreach($ttype as $tid) {
74 $dom->subdomain_modif_are_done($tid, $taction);
80 foreach (array(
'DELETE',
'CREATE',
'UPDATE',
'ENABLE',
'DISABLE') as $y) {