Ignore:
Timestamp:
Sep 5, 2009, 11:37:48 PM (15 years ago)
Author:
Eric
Message:
  • Code cleaning : Deletion of old commented parts, PHP 5.3 improvement, HTML compliant for tpl files
  • Implementing a monitoring system for using the mail() function (spy log file)
  • Finalization of listing table of unvalidated registered
  • Preview of upcoming features (coding of management panel)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/include/functions_UserAdvManager.inc.php

    r3742 r3826  
    11<?php
    22include_once (NBC_UserAdvManager_PATH.'include/constants.php');
    3 include_once (NBC_UserAdvManager_PATH.'include/functions_UserAdvManager.inc.php');
    43load_language('plugin.lang', NBC_UserAdvManager_PATH);
    54
     
    6463    'content' => (isset($infos1) ? $infos1_perso.l10n_args($infos1)."\n\n" : "").(isset($infos2) ? $infos2_perso.l10n_args($infos2)."\n\n" : "").get_absolute_root_url(),
    6564  ));
    66 }
    67 
     65
     66/* ********************** */
     67/* Email sending debugger */
     68/* This is only to trace  */
     69/* the send of emails for */
     70/* debugging              */
     71/* ********************** */ 
     72  MailLog($email,$subject);
     73/* ********************** */
     74
     75}
     76
     77/* Email sending debugger function */
     78function MailLog  ($to, $subject)
     79{
     80   $fo=fopen (NBC_UserAdvManager_PATH.'admin/maillog.txt','a') ;
     81   fwrite($fo,"======================\n") ;
     82   fwrite($fo,'le ' . date('D, d M Y H:i:s') . "\r\n");
     83   fwrite($fo,$to . "\n" . $subject . "\r\n") ;
     84   fclose($fo) ;
     85   //return mail ($to,$subject) ;
     86}
    6887
    6988
Note: See TracChangeset for help on using the changeset viewer.