diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-10-20 19:19:07 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-10-20 19:19:07 +0000 |
commit | 0e9f0ac4ecc636336603cc6932ce21a550c7087e (patch) | |
tree | fbcfca6602b37f80a51fba1d459f94b3d93ca08f /phpBB/admin/admin_words.php | |
parent | 4887cf1e49daa80a0736d753589c9995d7ddbd4b (diff) | |
download | forums-0e9f0ac4ecc636336603cc6932ce21a550c7087e.tar forums-0e9f0ac4ecc636336603cc6932ce21a550c7087e.tar.gz forums-0e9f0ac4ecc636336603cc6932ce21a550c7087e.tar.bz2 forums-0e9f0ac4ecc636336603cc6932ce21a550c7087e.tar.xz forums-0e9f0ac4ecc636336603cc6932ce21a550c7087e.zip |
Mostly changes to turn userdata into user->data, lang into user->lang + bitstring 2nd format + inheritance for permission admin and various other updates/fixes/changes ... note that user->lang & user->theme isn't final
git-svn-id: file:///svn/phpbb/trunk@2958 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_words.php')
-rw-r--r-- | phpBB/admin/admin_words.php | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/phpBB/admin/admin_words.php b/phpBB/admin/admin_words.php index 08c3723ed0..b2ffc22b54 100644 --- a/phpBB/admin/admin_words.php +++ b/phpBB/admin/admin_words.php @@ -86,7 +86,7 @@ if( $mode != '' ) { if ( !$word_id ) { - message_die(MESSAGE, $lang['No_word_selected']); + message_die(MESSAGE, $user->lang['No_word_selected']); } $sql = "SELECT * @@ -98,28 +98,28 @@ if( $mode != '' ) $s_hidden_fields .= '<input type="hidden" name="id" value="' . $word_id . '" />'; } - page_header($lang['Words_title']); + page_header($user->lang['Words_title']); ?> -<h1><?php echo $lang['Words_title']; ?></h1> +<h1><?php echo $user->lang['Words_title']; ?></h1> -<p><?php echo $lang['Words_explain']; ?></p> +<p><?php echo $user->lang['Words_explain']; ?></p> <form method="post" action="<?php echo "admin_words.$phpEx$SID"; ?>"><table class="bg" cellspacing="1" cellpadding="4" border="0" align="center"> <tr> - <th colspan="2"><?php echo $lang['Edit_word_censor']; ?></th> + <th colspan="2"><?php echo $user->lang['Edit_word_censor']; ?></th> </tr> <tr> - <td class="row1"><?php echo $lang['Word']; ?></td> + <td class="row1"><?php echo $user->lang['Word']; ?></td> <td class="row2"><input type="text" name="word" value="<?php echo $word_info['word']; ?>" /></td> </tr> <tr> - <td class="row1"><?php echo $lang['Replacement']; ?></td> + <td class="row1"><?php echo $user->lang['Replacement']; ?></td> <td class="row2"><input type="text" name="replacement" value="<?php echo $word_info['replacement']; ?>" /></td> </tr> <tr> - <td class="cat" colspan="2" align="center"><?php echo $s_hidden_fields; ?><input class="mainoption" type="submit" name="save" value="<?php echo $lang['Submit']; ?>" /></td> + <td class="cat" colspan="2" align="center"><?php echo $s_hidden_fields; ?><input class="mainoption" type="submit" name="save" value="<?php echo $user->lang['Submit']; ?>" /></td> </tr> </table></form> @@ -134,7 +134,7 @@ if( $mode != '' ) if ( $word == '' || $replacement == '' ) { - message_die(MESSAGE, $lang['Must_enter_word']); + message_die(MESSAGE, $user->lang['Must_enter_word']); } $sql = ( $word_id ) ? "UPDATE " . WORDS_TABLE . " SET word = '" . str_replace("\'", "''", $word) . "', replacement = '" . str_replace("\'", "''", $replacement) . "' WHERE word_id = $word_id" : "INSERT INTO " . WORDS_TABLE . " (word, replacement) VALUES ('" . str_replace("\'", "''", $word) . "', '" . str_replace("\'", "''", $replacement) . "')"; @@ -143,7 +143,7 @@ if( $mode != '' ) $log_action = ( $word_id ) ? 'log_edit_word' : 'log_add_word'; add_admin_log($log_action, stripslashes($word)); - $message = ( $word_id ) ? $lang['Word_updated'] : $lang['Word_added']; + $message = ( $word_id ) ? $user->lang['Word_updated'] : $user->lang['Word_added']; message_die(MESSAGE, $message); break; @@ -155,7 +155,7 @@ if( $mode != '' ) } else { - message_die(MESSAGE, $lang['Must_specify_word']); + message_die(MESSAGE, $user->lang['Must_specify_word']); } $sql = "DELETE FROM " . WORDS_TABLE . " @@ -164,7 +164,7 @@ if( $mode != '' ) add_admin_log('log_delete_word'); - message_die(MESSAGE, $lang['Word_removed']); + message_die(MESSAGE, $user->lang['Word_removed']); break; } @@ -172,19 +172,19 @@ if( $mode != '' ) else { - page_header($lang['Words_title']); + page_header($user->lang['Words_title']); ?> -<h1><?php echo $lang['Words_title']; ?></h1> +<h1><?php echo $user->lang['Words_title']; ?></h1> -<p><?php echo $lang['Words_explain']; ?></p> +<p><?php echo $user->lang['Words_explain']; ?></p> <form method="post" action="<?php echo "admin_words.$phpEx$SID"; ?>"><table class="bg" cellspacing="1" cellpadding="4" border="0" align="center"> <tr> - <th><?php echo $lang['Word']; ?></th> - <th><?php echo $lang['Replacement']; ?></th> - <th colspan="2"><?php echo $lang['Action']; ?></th> + <th><?php echo $user->lang['Word']; ?></th> + <th><?php echo $user->lang['Replacement']; ?></th> + <th colspan="2"><?php echo $user->lang['Action']; ?></th> </tr> <?php @@ -204,8 +204,8 @@ else <tr> <td class="<?php echo $row_class; ?>" align="center"><?php echo $row['word']; ?></td> <td class="<?php echo $row_class; ?>" align="center"><?php echo $row['replacement']; ?></td> - <td class="<?php echo $row_class; ?>"> <a href="<?php echo "admin_words.$phpEx$SID&mode=edit&id=" . $row['word_id']; ?>"><?php echo $lang['Edit']; ?></a> </td> - <td class="<?php echo $row_class; ?>"> <a href="<?php echo "admin_words.$phpEx$SID&mode=delete&id=" . $row['word_id']; ?>"><?php echo $lang['Delete']; ?></a> </td> + <td class="<?php echo $row_class; ?>"> <a href="<?php echo "admin_words.$phpEx$SID&mode=edit&id=" . $row['word_id']; ?>"><?php echo $user->lang['Edit']; ?></a> </td> + <td class="<?php echo $row_class; ?>"> <a href="<?php echo "admin_words.$phpEx$SID&mode=delete&id=" . $row['word_id']; ?>"><?php echo $user->lang['Delete']; ?></a> </td> </tr> <?php @@ -215,7 +215,7 @@ else ?> <tr> - <td class="cat" colspan="5" height="28" align="center"><?php echo $s_hidden_fields; ?><input class="mainoption" type="submit" name="add" value="<?php echo $lang['Add_new_word']; ?>" /></td> + <td class="cat" colspan="5" height="28" align="center"><?php echo $s_hidden_fields; ?><input class="mainoption" type="submit" name="add" value="<?php echo $user->lang['Add_new_word']; ?>" /></td> </tr> </table></form> |