apprentice workflow completed
[brisk.git] / web / Obj / mail.phh
index bb3b532..30b8dba 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-if (__FILE__ == realpath($argv[0])) {
+if (isset($argv) && __FILE__ == realpath($argv[0])) {
     $G_base = "web/";
 }
 require_once("${G_base}Obj/class.phpmailer.php");
@@ -29,7 +29,7 @@ function brisk_mail($to, $subject, $text, $html)
 }
 
 
-if (__FILE__ == realpath($argv[0])) {
+if (isset($argv) && __FILE__ == realpath($argv[0])) {
     $G_admin_mail = "brisk@alternativeoutput.it";
 
     $to = "brisk@alternativeoutput.it";
@@ -40,9 +40,9 @@ La verifica del tuo indirizzo di posta elettronica e del tuo nickname è andata
 d'ora in poi potrai utilizzare l' utente 'mopz' e la password 'ienxedsiyndo'.
 
 Benvenuto e buone partite, mop.";
-    $body_htm = "Ciao, sono l' amministratore del sito di Brisk.</br></br>
-La verifica del tuo indirizzo di posta elettronica e del tuo nickname è andata a buon fine, per accedere al  sito d'ora in poi potrai usare l' utente 'mopz' e la password 'ienxedsiyndo'.</br>
-Benvenuto e buone partite, mop.</br>";
+    $body_htm = "Ciao, sono l' amministratore del sito di Brisk.<br><br>
+La verifica del tuo indirizzo di posta elettronica e del tuo nickname è andata a buon fine, per accedere al  sito d'ora in poi potrai usare l' utente 'mopz' e la password 'ienxedsiyndo'.<br>
+Benvenuto e buone partite, mop.<br>";
 
     $body_htm_full = sprintf("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"><title>%s</title></head><body>%s</body></html>",
                              $subject, $body_htm);