1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-27 05:31:32 +01:00

Move logging functions, change name, add mode + lang var case changes

git-svn-id: file:///svn/phpbb/trunk@3401 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2003-01-29 17:45:34 +00:00
parent bcd4581f77
commit bb93945423
14 changed files with 69 additions and 153 deletions

View File

@@ -35,7 +35,6 @@ define('IN_PHPBB', 1);
$phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc');
require('pagestart.' . $phpEx);
require_once($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
// Do we have forum admin permissions?
if (!$auth->acl_get('a_words'))
@@ -138,7 +137,7 @@ if ($mode != '')
$cache->destroy('word_censors');
$log_action = ($word_id) ? 'log_edit_word' : 'log_add_word';
add_admin_log($log_action, stripslashes($word));
add_log('admin', $log_action, stripslashes($word));
$message = ($word_id) ? $user->lang['WORD_UPDATED'] : $user->lang['WORD_ADDED'];
break;
@@ -160,7 +159,7 @@ if ($mode != '')
$cache->destroy('word_censors');
add_admin_log('log_delete_word');
add_log('admin', 'log_delete_word');
$message = $user->lang['WORD_REMOVE'];
break;