diff --git a/admin/communication.php b/admin/communication.php index 0bf03c6..45c0972 100644 --- a/admin/communication.php +++ b/admin/communication.php @@ -130,8 +130,8 @@ echo ""; - if(!function_exists("system")) { - echo "
Sending requires php's system() function to be available
\n"; + if(!function_exists("exec")) { + echo "
Sending requires php's exec() function to be available
\n"; } else { @@ -188,7 +188,7 @@ fputs($fp,$_GET['to']."\n"); fclose($fp); - system("echo \"/usr/local/bin/php -q send_communication.php ".$_GET['reallysend']."\" | at now +1 minute"); + exec("/usr/local/bin/php -q send_communication.php ".$_GET['reallysend']." >/dev/null 2>&1 &"); echo "
"; echo happy("Email Communication sending has started!");