This commit is contained in:
Steven Mondji-Lerider 2013-04-26 08:11:59 +00:00
parent 61d2f7d8ac
commit 9cc9e7589a
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@
*/ */
// Put this var to 1 if you want to enable debug prints // Put this var to 1 if you want to enable debug prints
$debug=1; $debug=0;
$error_raise=''; $error_raise='';
// Debug function that print infos // Debug function that print infos
@ -48,7 +48,7 @@ function d($mess){
// Function to mail the panel's administrator if something failed // Function to mail the panel's administrator if something failed
function mail_it(){ function mail_it(){
global $error_raise; global $error_raise;
mail("alterncpanel",'Cron do_actions.php failed!',$error_raise); mail("alterncpanel@$L_FQDN",'Cron do_actions.php failed!',$error_raise);
} }
require_once("/usr/share/alternc/panel/class/config_nochk.php"); require_once("/usr/share/alternc/panel/class/config_nochk.php");
@ -181,7 +181,7 @@ if($error_raise === '')
// Unlock the script // Unlock the script
d("Unlock the script..."); d("Unlock the script...");
unlink($LOCK_FILE); unlink($LOCK_FILE);
mail("alterncpanel@$L_FQDN","test do_actions.php","ceci est un test!\n\nProut?");
// Exit this script // Exit this script
exit(0); exit(0);
?> ?>