1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 17:50:12 +02:00

Add admin logging to banlist manager

This commit is contained in:
e107steved
2007-12-23 21:15:54 +00:00
parent 6597d8d7c7
commit 6306cddb16
3 changed files with 75 additions and 13 deletions

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/banlist_export.php,v $
| $Revision: 1.1 $
| $Date: 2007-12-11 22:48:36 $
| $Revision: 1.2 $
| $Date: 2007-12-23 21:15:48 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@@ -73,6 +73,8 @@ if ($error_string = do_export($filename, $type_list, $format_array, $use_separat
// Need to report an error here
echo "Error report: {$error_string}<br />";
}
banlist_adminlog("AL_BAN_LAN_06","File: ".$filename.'<br />'.$error_string,6);
function do_export($filename, $type_list='',$format_array, $sep = ',', $quot = '"')
{
@@ -133,4 +135,13 @@ function do_export($filename, $type_list='',$format_array, $sep = ',', $quot = '
}
// Log event to admin log
function banlist_adminlog($title, $woffle,$msg_num='00')
{
global $pref, $admin_log;
// if (!varset($pref['admin_log_log']['admin_banlist'],0)) return;
$admin_log->log_event($title,$woffle,E_LOG_INFORMATIVE,'BANLIST_'.$msg_num);
}
?>