| version 1.8, 2006/09/02 18:34:58 |
version 1.9, 2006/09/03 14:03:24 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/error.inc.php,v 1.7 2006-08-18 17:27:33 nepto Exp $ */ |
/* $Platon: Metafox/error.inc.php,v 1.8 2006-09-02 18:34:58 nepto Exp $ */ |
| |
|
| require_once 'cfgldr.inc.php'; |
require_once 'cfgldr.inc.php'; |
| require_once 'HTML/Template/Platon.php'; |
require_once 'HTML/Template/Platon.php'; |
| Line 153 function ezin_error_send_notify_email($e |
|
| Line 153 function ezin_error_send_notify_email($e |
|
| * Checking existing error log |
* Checking existing error log |
| */ |
*/ |
| // TODO: fix the /tmp/ to use something more standard compliant |
// TODO: fix the /tmp/ to use something more standard compliant |
| $error_log_file = '/tmp/Metafox-error.'.$ezin_cfg['abbreviation'].'.'.md5($ezin_cfg['name']).'.txt'; |
$site_key = @$ezin_cfg['abbreviation'].'.'.md5(@$ezin_cfg['name']); |
| |
$error_log_file = '/tmp/Metafox-error.'.$site_key.'.txt'; |
| $error_log_mtime = @filemtime($error_log_file); |
$error_log_mtime = @filemtime($error_log_file); |
| $error_log_msg = @file_get_contents($error_log_file); |
$error_log_msg = @file_get_contents($error_log_file); |
| if (! strcasecmp(trim($err_msg), trim($error_log_msg)) && time() - $error_log_mtime < 1800) { |
if (! strcasecmp(trim($err_msg), trim($error_log_msg)) && time() - $error_log_mtime < 1800) { |