| | |
| | | } |
| | | |
| | | // get the primitive folder for document_root and the filesystem, will need it later. |
| | | $df_output=explode(" ", exec("df -T " . $parent_domain["document_root"] . "|awk 'END{print \$2,\$NF}'")); |
| | | $df_output=explode(" ", exec("df -T " . escapeshellarg($parent_domain["document_root"]) . "|awk 'END{print \$2,\$NF}'")); |
| | | $file_system = $df_output[0]; |
| | | $primitive_root = $df_output[1]; |
| | | |
| | |
| | | |
| | | $command .= "\t{$this->parent_domain['system_user']}"; //* running as user |
| | | if($job['type'] == 'url') { |
| | | $command .= "\t{$cron_config['wget']} -q -t 1 -T 7200 -O " . $log_wget_target . " " . escapeshellarg($job['command']) . " " . $log_target; |
| | | $command .= "\t{$cron_config['wget']} --user-agent='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0' -q -t 1 -T 7200 -O " . $log_wget_target . " " . escapeshellarg($job['command']) . " " . $log_target; |
| | | } else { |
| | | $web_root = ''; |
| | | if($job['type'] == 'chrooted') { |