aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin/admin_words.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-11-24 01:51:36 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-11-24 01:51:36 +0000
commit44c849564fe7e0211dee134e9133c0c7f29ed03a (patch)
tree4003bbebf5a0404d0e5648d31ec1c9ec747a029e /phpBB/admin/admin_words.php
parent517647646b65f85c14c18d0082d41bcf90eabc31 (diff)
downloadforums-44c849564fe7e0211dee134e9133c0c7f29ed03a.tar
forums-44c849564fe7e0211dee134e9133c0c7f29ed03a.tar.gz
forums-44c849564fe7e0211dee134e9133c0c7f29ed03a.tar.bz2
forums-44c849564fe7e0211dee134e9133c0c7f29ed03a.tar.xz
forums-44c849564fe7e0211dee134e9133c0c7f29ed03a.zip
Various updates
git-svn-id: file:///svn/phpbb/trunk@1432 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_words.php')
-rw-r--r--phpBB/admin/admin_words.php29
1 files changed, 15 insertions, 14 deletions
diff --git a/phpBB/admin/admin_words.php b/phpBB/admin/admin_words.php
index f6af8d745a..9b1884611a 100644
--- a/phpBB/admin/admin_words.php
+++ b/phpBB/admin/admin_words.php
@@ -23,7 +23,7 @@
if($setmodules == 1)
{
$file = basename(__FILE__);
- $module['General']['Word Censor'] = "$file";
+ $module['General']['Word_Censor'] = "$file";
return;
}
@@ -95,7 +95,7 @@ if( $mode != "" )
"L_WORDS_TITLE" => $lang['Words_title'],
"L_WORDS_TEXT" => $lang['Words_explain'],
- "L_WORD_CENSOR" => $lang['Word_censor'],
+ "L_WORD_CENSOR" => $lang['Edit_word_censor'],
"L_WORD" => $lang['Word'],
"L_REPLACEMENT" => $lang['Replacement'],
"L_SUBMIT" => $lang['Submit'],
@@ -124,23 +124,23 @@ if( $mode != "" )
$sql = "UPDATE " . WORDS_TABLE . "
SET word = '$word', replacement = '$replacement'
WHERE word_id = $word_id";
- $message_success = $lang['Word_updated'];
+ $message = $lang['Word_updated'];
}
else
{
$sql = "INSERT INTO " . WORDS_TABLE . " (word, replacement)
VALUES ('$word', '$replacement')";
- $message_success = $lang['Word_added'];
+ $message = $lang['Word_added'];
}
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not insert data into words table", $lang['Error'], __LINE__, __FILE__, $sql);
}
- else
- {
- message_die(GENERAL_MESSAGE, $message_success);
- }
+
+ $message .= "<br /><br />" . sprintf($lang['Click_return_wordadmin'], "<a href=\"" . append_sid("admin_words.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
+
+ message_die(GENERAL_MESSAGE, $message);
}
else if( $mode == "delete" )
{
@@ -162,10 +162,10 @@ if( $mode != "" )
{
message_die(GENERAL_ERROR, "Could not remove data from words table", $lang['Error'], __LINE__, __FILE__, $sql);
}
- else
- {
- message_die(GENERAL_MESSAGE, $lang['Word_removed']);
- }
+
+ $message = $lang['Word_removed'] . "<br /><br />" . sprintf($lang['Click_return_wordadmin'], "<a href=\"" . append_sid("admin_words.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>");
+
+ message_die(GENERAL_MESSAGE, $message);
}
else
{
@@ -218,8 +218,9 @@ else
"ROW_CLASS" => $row_class,
"WORD" => $word,
"REPLACEMENT" => $replacement,
- "U_WORD_EDIT" => append_sid("admin_words.$phpEx?mode=edit&id=$word_id"),
- "U_WORD_DELETE" => append_sid("admin_words.$phpEx?mode=delete&id=$word_id"))
+
+ "U_WORD_EDIT" => append_sid("admin_words.$phpEx?mode=edit&amp;id=$word_id"),
+ "U_WORD_DELETE" => append_sid("admin_words.$phpEx?mode=delete&amp;id=$word_id"))
);
}
}