Version 2.2.0 RC-1

This commit is contained in:
Neo committed 2025-12-19 00:22:37 -08:00
1 parent f73f8bff6d
commit 22f1b963ee
1034 files changed
+178610 -70897

No files matched your search

+96 -140
View File
@@ -2,27 +2,17 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| Invision Power Board
| =============================================
| by Matthew Mecham
| (c) 2001 - 2005 Invision Power Services, Inc.
| (c) 2001 - 2006 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| Licence Info: http://www.invisionboard.com/?license
| http://www.ibresource.ru/license
+---------------------------------------------------------------------------
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
+---------------------------------------------------------------------------
| > $Date: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $
| > $Revision: 23 $
| > $Date: 2006-10-06 10:09:22 +0100 (Fri, 06 Oct 2006) $
| > $Revision: 611 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
@@ -37,13 +27,15 @@
if ( ! defined( 'IN_ACP' ) )
{
print "<h1>Íåâåðíûé âõîä</h1> Ó Âàñ íåò äîñòóïà ê äèðåêòèâå ýòîãî ôàéëà. Åñëè Âû ïðîâîäèëè îáíîâëåíèÿ, óáåäèòåñü, ÷òî íå çàáûëè îáíîâèòü 'admin.php'.";
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
exit();
}
class ad_banandbadword {
var $functions = "";
var $ipsclass;
var $html;
/**
* Section title name
@@ -61,24 +53,15 @@ class ad_banandbadword {
function auto_run()
{
$this->html = $this->ipsclass->acp_load_template('cp_skin_bbcode_badword');
//-----------------------------------------
// Require and RUN !! THERES A BOMB
//-----------------------------------------
$this->ipsclass->admin->page_detail = "";
$this->ipsclass->admin->page_title = "Ôèëüòðû áëîêèðîâêè (ban)";
$this->ipsclass->admin->page_title = "Ban Manager";
//-----------------------------------------
// Kill globals - globals bad, Homer good.
//-----------------------------------------
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
foreach ( $tmp_in as $k => $v )
{
unset($$k);
}
//-----------------------------------------
// What to do...
//-----------------------------------------
@@ -149,6 +132,8 @@ class ad_banandbadword {
function ban_rebuildcache()
{
require_once ROOT_PATH.'sources/classes/bbcode/class_bbcode_core.php';
$this->ipsclass->cache['banfilters'] = array();
$this->ipsclass->DB->simple_construct( array( 'select' => 'ban_content', 'from' => 'banfilters', 'where' => "ban_type='ip'" ) );
@@ -159,6 +144,8 @@ class ad_banandbadword {
$this->ipsclass->cache['banfilters'][] = $r['ban_content'];
}
usort( $this->ipsclass->cache['badwords'] , array( 'class_bbcode_core', 'word_length_sort' ) );
$this->ipsclass->update_cache( array( 'name' => 'banfilters', 'array' => 1, 'deletefirst' => 1 ) );
}
@@ -181,6 +168,8 @@ class ad_banandbadword {
}
}
$ids = $this->ipsclass->clean_int_array( $ids );
if ( count( $ids ) )
{
$this->ipsclass->DB->simple_construct( array( 'delete' => 'banfilters', 'where' => 'ban_id IN('.implode( ",",$ids ).')' ) );
@@ -189,7 +178,7 @@ class ad_banandbadword {
$this->ban_rebuildcache();
$this->ipsclass->main_msg = "Áàí óäàëåí";
$this->ipsclass->main_msg = "Ban filters removed";
$this->ban_start();
}
@@ -201,7 +190,7 @@ class ad_banandbadword {
{
if ( ! $this->ipsclass->input['bantext'] )
{
$this->ipsclass->main_msg = "Âû äîëæíû ââåñòè çàìåíÿåìîå ñëîâî!";
$this->ipsclass->main_msg = "You must enter something to add to the ban filters!";
$this->ban_start();
}
@@ -213,7 +202,7 @@ class ad_banandbadword {
if ( $result['ban_id'] )
{
$this->ipsclass->main_msg = "Òàêîå çíà÷åíèå óæå åñòü.";
$this->ipsclass->main_msg = "Duplicate entry, entry not added to the ban filters database.";
$this->ban_start();
}
@@ -221,7 +210,7 @@ class ad_banandbadword {
$this->ban_rebuildcache();
$this->ipsclass->main_msg = "Äîáàâëåí íîâûé áàí ôèëüòð";
$this->ipsclass->main_msg = "Ban filter added";
$this->ban_start();
@@ -233,10 +222,11 @@ class ad_banandbadword {
function ban_start()
{
$this->ipsclass->admin->page_title = "Óïðàâëåíèå ôèëüòðàìè áëîêèðîâêè";
$this->ipsclass->admin->page_title = "Ban Control";
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code.'&code=ban', 'Ban Filters' );
$this->ipsclass->admin->page_detail = "Ýòà ñåêöèÿ ïîçâîëÿåò âàì èçìåíÿòü, óäàëÿòü è äîáàâëÿòü ip-àäðåñà, e-mail è çàðåçåðâèðîâàííûå èìåíà â ôèëüòð äëÿ áëîêèðîâêè.
<br /><strong>Âû ìîæåòå èñïîëüçîâàòü «ñèìâîë çâåçäî÷êè» — * , äëÿ ëþáîãî(ûõ) ñèìâîëà(îâ) ip-àäðåñà èëè e-mail. (íàïðèìåð: 127.0.*, *@mail.ru)</strong>";
$this->ipsclass->admin->page_detail = "This section allows you to modify, delete or add IP addresses, email addresses and reserved names to the ban filters.
<br /><strong>You can use * as a wildcard in any Username, IP or email filter. (Example: 127.0.*, *@yahoo.com, bannedname*)</strong>";
//-----------------------------------------
// Get things
@@ -262,22 +252,22 @@ class ad_banandbadword {
) );
$this->ipsclass->adskin->td_header[] = array( "&nbsp;" , "1%" );
$this->ipsclass->adskin->td_header[] = array( "Çàïèñü" , "80%" );
$this->ipsclass->adskin->td_header[] = array( "Äàòà äîáàâëåíèÿ" , "20%" );
$this->ipsclass->adskin->td_header[] = array( "Entry" , "80%" );
$this->ipsclass->adskin->td_header[] = array( "Date Added" , "20%" );
//-----------------------------------------
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Óïðàâëåíèå ôèëüòðàìè áëîêèðîâêè" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ban Control" );
//-----------------------------------------
// Banned IP Addresses
//-----------------------------------------
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("Çàáëîêèðîâàííûå ip-àäðåñà", "left", "pformstrip");
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("Banned IP Addresses", "left", "tablesubheader");
if ( is_array( $ban['ip'] ) and count( $ban['ip'] ) )
if ( isset($ban['ip']) AND is_array( $ban['ip'] ) AND count( $ban['ip'] ) )
{
foreach ( $ban['ip'] as $id => $entry )
foreach ( $ban['ip'] as $entry )
{
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<input type='checkbox' name='id_{$entry['ban_id']}' value='1' />",
$entry['ban_content'],
@@ -287,18 +277,18 @@ class ad_banandbadword {
}
else
{
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("Çàáëîêèðîâàííûõ IP-àäðåñîâ íåò", "left", "tdrow1");
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("No Entered Banned IP Addresses", "left", "tablerow1");
}
//-----------------------------------------
// Banned Email Addresses
//-----------------------------------------
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("Çàáëîêèðîâàííûå e-mail àäðåñà", "left", "pformstrip");
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("Banned Email Addresses", "left", "tablesubheader");
if ( is_array( $ban['email'] ) and count( $ban['email'] ) )
if ( isset($ban['email']) AND is_array( $ban['email'] ) AND count( $ban['email'] ) )
{
foreach ( $ban['email'] as $id => $entry )
foreach ( $ban['email'] as $entry )
{
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<input type='checkbox' name='id_{$entry['ban_id']}' value='1' />",
$entry['ban_content'],
@@ -308,18 +298,18 @@ class ad_banandbadword {
}
else
{
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("Çàáëîêèðîâàííûõ e-mail àäðåñîâ íåò", "left", "tdrow1");
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("No Entered Banned Email Addresses", "left", "tablerow1");
}
//-----------------------------------------
// Banned Names
//-----------------------------------------
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("Çàïðåùåííûå ê ðåãèñòðàöèè èìåíà ïîëüçîâàòåëåé", "left", "pformstrip");
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("Non-Registerable Names", "left", "tablesubheader");
if ( is_array( $ban['name'] ) and count( $ban['name'] ) )
if ( isset($ban['name']) AND is_array( $ban['name'] ) AND count( $ban['name'] ) )
{
foreach ( $ban['name'] as $id => $entry )
foreach ( $ban['name'] as $entry )
{
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<input type='checkbox' name='id_{$entry['ban_id']}' value='1' />",
$entry['ban_content'],
@@ -329,17 +319,17 @@ class ad_banandbadword {
}
else
{
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("Çàïðåùåííûõ ê ðåãèñòðàöèè èìåí ïîëüçîâàòåëåé íåò", "left", "tdrow1");
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("No Entered Names", "left", "tablerow1");
}
$end_it_now = "<div align='left' style='float:left;width:auto;'>
<input type='submit' value='Óäàëèòü âûáðàííîå' class='realdarkbutton' />
<input type='submit' value='Delete Selected' class='realdarkbutton' />
</div></form>
<div align='center'><form method='post' action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=ban_add'><input type='text' size='30' class='textinput' value='' name='bantext' />
<select class='dropdown' name='bantype'><option value='ip'>IP àäðåñ</option><option value='email'>e-mail àäðåñ</option><option value='name'>Name</option></select>
<input type='submit' value='Äîáàâèòü íîâûé ôèëüòð' class='realdarkbutton' /></form></div>";
<div align='center'><form method='post' action='{$this->ipsclass->base_url}&{$this->ipsclass->form_code}&code=ban_add'><input type='hidden' name='_admin_auth_key' value='{$this->ipsclass->_admin_auth_key}' /><input type='text' size='30' class='textinput' value='' name='bantext' />
<select class='dropdown' name='bantype'><option value='ip'>IP Address</option><option value='email'>Email Address</option><option value='name'>Name</option></select>
<input type='submit' value='Add New Filter' class='realdarkbutton' /></form></div>";
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic( $end_it_now, "center", "pformstrip");
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic( $end_it_now, "center", "tablesubheader");
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
@@ -362,15 +352,16 @@ class ad_banandbadword {
if ( ! $content )
{
$this->ipsclass->main_msg = "Çàêà÷êà íå ñîâåðøåíà, ipb_badwords.xml íåêîððåêòíûé èëè ïóñò";
$this->ipsclass->main_msg = "Upload failed, ipb_badwords.xml was either missing or empty";
$this->badword_start();
return;
}
//-----------------------------------------
// Get xml mah-do-dah
//-----------------------------------------
require( KERNEL_PATH.'class_xml.php' );
require_once( KERNEL_PATH.'class_xml.php' );
$xml = new class_xml();
@@ -380,6 +371,13 @@ class ad_banandbadword {
$xml->xml_parse_document( $content );
if( !is_array($xml->xml_array['badwordexport']['badwordgroup']['badword']) OR !count($xml->xml_array['badwordexport']['badwordgroup']['badword']) )
{
$this->ipsclass->main_msg = "XML Import failed: ipb_badwords.xml is either empty or in the wrong format";
$this->badword_start();
return;
}
//-----------------------------------------
// Get current badwords
//-----------------------------------------
@@ -398,7 +396,7 @@ class ad_banandbadword {
// pArse
//-----------------------------------------
foreach( $xml->xml_array['badwordexport']['badwordgroup']['badword'] as $idx => $entry )
foreach( $xml->xml_array['badwordexport']['badwordgroup']['badword'] as $entry )
{
$type = $entry['type']['VALUE'];
$swop = $entry['swop']['VALUE'];
@@ -417,7 +415,7 @@ class ad_banandbadword {
$this->badword_rebuildcache();
$this->ipsclass->main_msg = "Èìïîðò XML ôàéëà ïðîøåë óñïåøíî";
$this->ipsclass->main_msg = "Badword XML file import completed";
$this->badword_start();
@@ -433,7 +431,7 @@ class ad_banandbadword {
// Get xml mah-do-dah
//-----------------------------------------
require( KERNEL_PATH.'class_xml.php' );
require_once( KERNEL_PATH.'class_xml.php' );
$xml = new class_xml();
@@ -481,40 +479,24 @@ class ad_banandbadword {
function badword_start()
{
$this->ipsclass->admin->page_detail = "Â ýòîé ñåêöèè âû ìîæåòå äîáàâëÿòü, èçìåíÿòü è óäàëÿòü ôèëüòðû íåöåíçóðíûõ ñëîâ.<br>Ôèëüòð íåöåíçóðíûõ ñëîâ ïîçâîëÿåò âàì çàìåíÿòü íåöåíçóðíûå ñëîâà â ñîîáùåíèÿõ ïîëüçîâàòåëåé, â ïîäïèñÿõ è â íàçâàíèÿõ òåì.<br><br><b>Ñîâïàäåíèå ïî ìàñêå</b>: ïðè âûáîðå ñïîñîáà 'Ìàñêà', ââåäåííîå âàìè ñëîâî áóäåò èçìåíÿòüñÿ äàæå â ñëîâàõ, ñîäåðæàùèõ â ñåáå ýòî ñëîâî. Íàïðèìåð, åñëè âû ââåäåòå â ôèëüòð ñëîâî 'êîçà', òî ýòî ñëîâî áóäåò èçìåíåíî íà óêàçàííûé âàìè çàìåíèòåëü è â ñëîâå 'ñòðåêîçà'. Åñëè âû íå ââåäåòå çàìåíèòåëü, òî íåöåíçóðíîå ñëîâî áóäåò èçìåíåíî íà øåñòü ñèìâîëîâ «ðåøåòêè» — #
<br><br><b>Òî÷íîå ñîâïàäåíèå:</b>: Ïðè âûáîðå ñïîñîáà 'Òî÷íûé', ââåäåííîå âàìè ñëîâî áóäåò èçìåíÿòüñÿ íà çàìåíèòåëü òîëüêî ïðè òî÷íîì ñîâïàäåíèè ýòîãî ñëîâà. Íàïðèìåð, åñëè âû ââåäåòå â ôèëüòð ñëîâî 'êîçà', òî ýòî ñëîâî áóäåò èçìåíåíî íà óêàçàííûé âàìè çàìåíèòåëü, òîëüêî â ñëîâå 'êîçà'. Åñëè âû íå ââåäåòå çàìåíèòåëü, òî íåöåíçóðíîå ñëîâî áóäåò èçìåíåíî íà øåñòü ñèìâîëîâ «ðåøåòêè» — #.
Äàííàÿ îïöèÿ ÷óâñòâèòåëüíà ê ðåãèñòðó.";
$this->ipsclass->admin->page_title = "Ôèëüòð íåöåíçóðíûõ ñëîâ";
//-----------------------------------------
// INIT
//-----------------------------------------
$badword_html = "";
$this->ipsclass->admin->page_detail = "You can add/edit and remove bad word filters in this section.<br>The badword filter allows you to globally replace words from a members post, signature and topic title.<br><br><b>Loose matching</b>: If you entered 'hell' as a bad word, it will replace 'hell' and 'hello' with either your replacement if entered or 6 hashes (case insensitive)<br><br><b>Exact matching</b>: If you entered 'hell' as a bad word, it will replace 'hell' only with either your replacement if entered or 6 hashes (case insensitive)";
$this->ipsclass->admin->page_title = "Bad Word Filter";
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code.'&code=badword', 'Bad Word Filters' );
//-----------------------------------------
// Start form
//-----------------------------------------
$this->ipsclass->html .= $this->ipsclass->adskin->start_form( array( 1 => array( 'code' , 'badword_add' ),
2 => array( 'act' , 'babw' ),
4 => array( 'section', $this->ipsclass->section_code ),
) );
$this->ipsclass->adskin->td_header[] = array( "Ñëîâî" , "30%" );
$this->ipsclass->adskin->td_header[] = array( "Çàìåíà" , "30%" );
$this->ipsclass->adskin->td_header[] = array( "Ìåòîä" , "20%" );
$this->ipsclass->adskin->td_header[] = array( "Èçìåíèòü" , "10%" );
$this->ipsclass->adskin->td_header[] = array( "Óäàëèòü" , "10%" );
//-----------------------------------------
// Start table
//-----------------------------------------
$export_button = $this->ipsclass->adskin->js_make_button("Èìïîðòèðîâàíèå ôàéëà ñ ôèëüòðàìè íåöåíçóðíûõ ñëîâ", $this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=badword_export");
$table = "<table cellpadding='0' cellspacing='0' border='0' width='100%'>
<tr>
<td align='left' width='100%' style='font-weight:bold;font-size:11px;color:#FFF'>Òåêóùèå ôèëüòðû</td>
<td align='right' nowrap='nowrap' style='padding-right:2px'>{$export_button}</td>
</tr>
</table>";
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( $table );
2 => array( 'act' , 'babw' ),
4 => array( 'section', $this->ipsclass->section_code ),
) );
$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from' => 'badwords', 'order' => 'type' ) );
$this->ipsclass->DB->simple_exec();
@@ -526,46 +508,18 @@ class ad_banandbadword {
$words[] = $r;
}
//usort($words, array( 'ad_settings', 'perly_word_sort' ) );
foreach($words as $idx => $r)
foreach($words as $r)
{
$replace = $r['swop'] ? stripslashes($r['swop']) : '######';
$r['replace'] = $r['swop'] ? stripslashes($r['swop']) : '######';
$r['method'] = $r['m_exact'] ? 'Exact' : 'Loose';
$r['type'] = stripslashes($r['type']);
$method = $r['m_exact'] ? 'Òî÷íûé' : 'Ìàñêà';
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( stripslashes($r['type']),
$replace,
$method,
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=badword_edit&id={$r['wid']}'>Èçìåíèòü</a></center>",
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=badword_remove&id={$r['wid']}'>Óäàëèòü</a></center>",
) );
$badword_html .= $this->html->badword_row( $r );
}
}
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
$this->ipsclass->adskin->td_header[] = array( "Ñëîâî" , "40%" );
$this->ipsclass->adskin->td_header[] = array( "Çàìåíà" , "40%" );
$this->ipsclass->adskin->td_header[] = array( "Ìåòîä" , "20%" );
//-----------------------------------------
// Add new filter
//-----------------------------------------
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Äîáàâëåíèå íîâîãî ôèëüòðà" );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( $this->ipsclass->adskin->form_input('before'),
$this->ipsclass->adskin->form_input('after'),
$this->ipsclass->adskin->form_dropdown( 'match', array( 0 => array( 1, 'Òî÷íûé' ), 1 => array( 0, 'Ìàñêà' ) ) )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->end_form('Äîáàâèòü íîâûé ôèëüòð');
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
$this->ipsclass->html .= $this->html->badword_wrapper( $badword_html );
//-----------------------------------------
// IMPORT: Start table
@@ -585,19 +539,18 @@ class ad_banandbadword {
) , "uploadform", " enctype='multipart/form-data'" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Èìïîðòèðîâàíèå ôàéëà ñ ôèëüòðàìè íåöåíçóðíûõ ñëîâ" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Import a Badword List" );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array(
"<b>Çàãðóçêà XML-ôàéëà ñ ôèëüòðàìè</b><div style='color:gray'>Âûáåðèòå ôàéë äëÿ çàãðóçêè ñ âàøåãî êîìïüþòåðà 'ipb_badwords.xml' èëè 'ipb_badwords.xml.gz'. Äâîéíûå çàïèñè èìïîðòèðîâàíû íå áóäóò.</div>",
"<b>Upload XML Badword List</b><div style='color:gray'>Browse your computer for 'ipb_badwords.xml' or 'ipb_badwords.xml.gz'. Duplicate entries will not be imported.</div>",
$this->ipsclass->adskin->form_upload( )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Èìïîðòèðîâàòü");
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Import");
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
$this->ipsclass->admin->output();
}
//-----------------------------------------
@@ -608,7 +561,7 @@ class ad_banandbadword {
{
if ($this->ipsclass->input['before'] == "")
{
$this->ipsclass->admin->error("Âû äîëæíû ââåñòè çàìåíÿåìîå ñëîâî!");
$this->ipsclass->admin->error("You must enter a word to replace, silly!");
}
if ($this->ipsclass->input['id'] == "")
@@ -627,7 +580,7 @@ class ad_banandbadword {
$this->badword_rebuildcache();
$this->ipsclass->main_msg = "Ôèëüòð èçìåíåí";
$this->ipsclass->main_msg = "Filter edited";
$this->badword_start();
}
@@ -638,14 +591,16 @@ class ad_banandbadword {
function badword_edit()
{
$this->ipsclass->admin->page_detail = "Âûìîæåòå èçìåíèòü âûáðàííûé ôèëüòð â ôîðìå íèæå";
$this->ipsclass->admin->page_title = "Ôèëüòð íåöåíçóðíûõ ñëîâ";
$this->ipsclass->admin->page_detail = "You may edit the chosen filter below";
$this->ipsclass->admin->page_title = "Bad Word Filter";
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code.'&code=badword', 'Bad Word Filters' );
$this->ipsclass->admin->nav[] = array( '', 'Edit Bad Word Filter' );
//-----------------------------------------
if ($this->ipsclass->input['id'] == "")
{
$this->ipsclass->admin->error("Ôèëüòð ñ òàêèì id íå íàéäåí!");
$this->ipsclass->admin->error("You must pass a valid filter id, silly!");
}
//-----------------------------------------
@@ -655,7 +610,7 @@ class ad_banandbadword {
if ( ! $r = $this->ipsclass->DB->fetch_row() )
{
$this->ipsclass->admin->error("Ìû íå ìîæåì íàéòè ýòîò ôèëüòð â áàçå äàííûõ");
$this->ipsclass->admin->error("We could not find that filter in the database");
}
//-----------------------------------------
@@ -668,20 +623,20 @@ class ad_banandbadword {
$this->ipsclass->adskin->td_header[] = array( "Ñëîâî" , "40%" );
$this->ipsclass->adskin->td_header[] = array( "Çàìåíà" , "40%" );
$this->ipsclass->adskin->td_header[] = array( "Ìåòîä" , "20%" );
$this->ipsclass->adskin->td_header[] = array( "Before" , "40%" );
$this->ipsclass->adskin->td_header[] = array( "After" , "40%" );
$this->ipsclass->adskin->td_header[] = array( "Method" , "20%" );
//-----------------------------------------
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ðåäàêòèðîâàíèå ôèëüòðà" );
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Edit a filter" );
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( $this->ipsclass->adskin->form_input('before', stripslashes($r['type']) ),
$this->ipsclass->adskin->form_input('after' , stripslashes($r['swop']) ),
$this->ipsclass->adskin->form_dropdown( 'match', array( 0 => array( 1, 'Òî÷íûé' ), 1 => array( 0, 'Ìàñêà' ) ), $r['m_exact'] )
$this->ipsclass->adskin->form_dropdown( 'match', array( 0 => array( 1, 'Exact' ), 1 => array( 0, 'Loose' ) ), $r['m_exact'] )
) );
$this->ipsclass->html .= $this->ipsclass->adskin->end_form('Ðåäàêòèðîâàòü ôèëüòð');
$this->ipsclass->html .= $this->ipsclass->adskin->end_form('Edit Filter');
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
@@ -704,9 +659,10 @@ class ad_banandbadword {
$this->badword_rebuildcache();
$this->ipsclass->main_msg = "Ôèëüòð óäàëåí";
$this->ipsclass->main_msg = "Filter removed";
$this->badword_start();
return;
}
//-----------------------------------------
@@ -717,7 +673,7 @@ class ad_banandbadword {
{
if ($this->ipsclass->input['before'] == "")
{
$this->ipsclass->admin->error("Âû äîëæíû ââåñòè ñëîâî äëÿ çàìåíû");
$this->ipsclass->admin->error("You must enter a word to replace, silly!");
}
$this->ipsclass->input['match'] = $this->ipsclass->input['match'] ? 1 : 0;
@@ -731,7 +687,7 @@ class ad_banandbadword {
$this->badword_rebuildcache();
$this->ipsclass->main_msg = "Ôèëüòð ïóñò";
$this->ipsclass->main_msg = "New filter added";
$this->badword_start();
}