<?php if (isset($_REQUEST["gen_named_files"]) && $_REQUEST["gen_named_files"] == 1) { named_generate(); $console .= _("Named conf files generated !"); $console .= "\n"; } // Executes the command liste bellow if (isset($_REQUEST["gen_perso_vhost"]) && $_REQUEST["gen_perso_vhost"] == 1) { perso_vhost_generate(); $console .= _("Apache vhost file for personal account generated !"); $console .= "\n"; } if (isset($_REQUEST["gen_pro_vhost"]) && $_REQUEST["gen_pro_vhost"] == 1) { pro_vhost_generate(); $console .= _("Apache vhost file generated !"); $console .= "\n"; } if (isset($_REQUEST["gen_email_account"]) && $_REQUEST["gen_email_account"] == 1) { mail_account_generate(); $console .= _("Email user and domain files generated !"); $console .= "\n"; } if (isset($_REQUEST["gen_backup_script"]) && $_REQUEST["gen_backup_script"] == 1) { backup_script_generate(); $console .= _("Backup script generated !"); $console .= "\n"; } if (isset($_REQUEST["gen_stat_script"]) && $_REQUEST["gen_stat_script"] == 1) { stat_script_generate(); $console .= _("Stat script generated !");
function checkApacheCronService() { global $conf_dtc_system_groupname; global $conf_generated_file_path; $cronjob_table_content = getCronFlags(); if ($cronjob_table_content["gen_vhosts"] == "yes") { echo "Generating Apache vhosts\n"; pro_vhost_generate(); system("chgrp {$conf_dtc_system_groupname} \"{$conf_generated_file_path}/vhosts.conf\""); system("chmod 660 \"{$conf_generated_file_path}/vhosts.conf\""); markCronflagOk("gen_vhosts='no'"); } if ($cronjob_table_content["restart_apache"] == "yes") { restartApache(); markCronflagOk("restart_apache='no'"); } }