Exemple #1
0
 static function log_mail_sent($template_id, $destination, $sent_by)
 {
     global $conf_db_datetime_format;
     $arr_ins = array('template_id' => $template_id, 'destination' => $destination, 'sent_by' => $sent_by, 'sent_datetime' => date($conf_db_datetime_format));
     return insert_array_db('mail_sent', $arr_ins);
 }
Exemple #2
0
function write_log_db($type, $subtype, $message, $script = '')
{
    $arr_ins = array('date_time' => date('Y-m-d H:i:s'), 'ip' => $_SERVER['REMOTE_ADDR'], 'user_id' => isset($_SESSION['login']['user_id']) ? $_SESSION['login']['user_id'] : '', 'user_name' => isset($_SESSION['login']['email']) ? $_SESSION['login']['email'] : '', 'message' => addslashes($message), 'log_type' => $type, 'log_subtype' => $subtype, 'generated_from' => $script);
    insert_array_db('log_table', $arr_ins);
}