Version 2.2.0 RC-1
This commit is contained in:
1 parent
f73f8bff6d
commit
22f1b963ee
1034 files changed
+178610
-70897
No files matched your search
@@ -2,28 +2,18 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-28 15:18:16 +0100 (Fri, 28 Oct 2005) $
|
||||
| > $Revision: 67 $
|
||||
| > $Author: bfarber $
|
||||
| > $Date: 2006-09-22 11:28:54 +0100 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Import functions
|
||||
@@ -38,7 +28,7 @@
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
@@ -60,16 +50,7 @@ class ad_modlogs {
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Kill globals - globals bad, Homer good.
|
||||
//-----------------------------------------
|
||||
|
||||
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
|
||||
|
||||
foreach ( $tmp_in as $k => $v )
|
||||
{
|
||||
unset($$k);
|
||||
}
|
||||
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'Moderator Logs' );
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
@@ -102,12 +83,12 @@ class ad_modlogs {
|
||||
|
||||
function view()
|
||||
{
|
||||
$start = $this->ipsclass->input['st'] ? $this->ipsclass->input['st'] : 0;
|
||||
$start = intval($this->ipsclass->input['st']) >=0 ? intval($this->ipsclass->input['st']) : 0;
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Ïðîñìîòð âñåõ äåéñòâèé ñîâåðøåííûõ ìîäåðàòîðîì";
|
||||
$this->ipsclass->admin->page_title = "Ëîãè ìîäåðàöèé";
|
||||
$this->ipsclass->admin->page_detail = "Viewing all actions by a moderator";
|
||||
$this->ipsclass->admin->page_title = "Moderator Logs Manager";
|
||||
|
||||
if ($this->ipsclass->input['search_string'] == "")
|
||||
if ( !isset($this->ipsclass->input['search_string']) OR $this->ipsclass->input['search_string'] == "")
|
||||
{
|
||||
if (! $this->ipsclass->input['mid'] )
|
||||
{
|
||||
@@ -135,7 +116,7 @@ class ad_modlogs {
|
||||
|
||||
$query = "&act=modlog&mid={$this->ipsclass->input['mid']}&code=view";
|
||||
|
||||
$this->ipsclass->DB->cache_add_query( 'modlogs_view_one', array( 'mid' => $this->ipsclass->input['mid'], 'start' => $start ) );
|
||||
$this->ipsclass->DB->cache_add_query( 'modlogs_view_one', array( 'mid' => intval($this->ipsclass->input['mid']), 'start' => $start ) );
|
||||
$this->ipsclass->DB->cache_exec_query();
|
||||
}
|
||||
}
|
||||
@@ -165,29 +146,29 @@ class ad_modlogs {
|
||||
$this->ipsclass->DB->cache_exec_query();
|
||||
}
|
||||
|
||||
$links = $this->ipsclass->build_pagelinks( array( 'TOTAL_POSS' => $row_count,
|
||||
$links = $this->ipsclass->adskin->build_pagelinks( array( 'TOTAL_POSS' => $row_count,
|
||||
'PER_PAGE' => 20,
|
||||
'CUR_ST_VAL' => $start,
|
||||
'L_SINGLE' => "Îäíà ñòðàíèöà",
|
||||
'L_MULTI' => "Ñòðàíèöû: ",
|
||||
'L_SINGLE' => "Single Page",
|
||||
'L_MULTI' => "Pages: ",
|
||||
'BASE_URL' => $this->ipsclass->base_url.$query,
|
||||
)
|
||||
);
|
||||
|
||||
$this->ipsclass->admin->page_detail = "YÂ ýòîé ñåêöèè âû ìîæåòå ïðîñìàòðèâàòü è óäàëÿòü äåéñòâèÿ ñîâåðøåííûå ìîäåðàòîðàìè ôîðóìîâ";
|
||||
$this->ipsclass->admin->page_title = "Ëîãè ìîäåðàöèé";
|
||||
$this->ipsclass->admin->page_detail = "You may view and remove actions performed by your moderators";
|
||||
$this->ipsclass->admin->page_title = "Moderator Logs Manager";
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ìîäåðàòîð" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Äåéñòâèå" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ôîðóì" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Òåìà" , "25%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Äàòà Âðåìÿ" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "IP-àäðåñ" , "10%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Member Name" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Action Performed" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Forum" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Topic Title" , "25%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Time of action" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "IP address" , "10%" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ëîãè ìîäåðàòîðîâ ñîõðàíåíû" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic($links, 'right', 'pformstrip');
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Saved Moderator Logs" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic($links, 'right', 'tablesubheader');
|
||||
|
||||
if ( $this->ipsclass->DB->get_num_rows() )
|
||||
{
|
||||
@@ -197,7 +178,7 @@ class ad_modlogs {
|
||||
|
||||
if ( $row['topic_id'] )
|
||||
{
|
||||
$topicid = "<br />ID òåìû: ".$row['topic_id'];
|
||||
$topicid = "<br />Topic ID: ".$row['topic_id'];
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -218,10 +199,10 @@ class ad_modlogs {
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("<center>Íåò çàïèñåé</center>");
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("<center>No results</center>");
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic($links, 'right', 'pformstrip');
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic($links, 'right', 'tablesubheader');
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
@@ -241,12 +222,12 @@ class ad_modlogs {
|
||||
{
|
||||
if ($this->ipsclass->input['mid'] == "")
|
||||
{
|
||||
$this->ipsclass->admin->error("Âû äîëæíû âûáðàòü ID ìîäåðàòîðà!");
|
||||
$this->ipsclass->admin->error("You did not select a member ID to remove by!");
|
||||
}
|
||||
|
||||
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'moderator_logs', 'where' => "member_id=".intval($this->ipsclass->input['mid']) ) );
|
||||
|
||||
$this->ipsclass->admin->save_log("Óäàëåíû ëîãè ìîäåðàöèé");
|
||||
$this->ipsclass->admin->save_log("Removed Moderator Logs");
|
||||
|
||||
$this->ipsclass->boink_it($this->ipsclass->base_url."&act=modlog");
|
||||
exit();
|
||||
@@ -266,8 +247,8 @@ class ad_modlogs {
|
||||
{
|
||||
$form_array = array();
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Â ýòîé ñåêöèè âû ìîæåòå ïðîñìàòðèâàòü è óäàëÿòü äåéñòâèÿ ñîâåðøåííûå ìîäåðàòîðàìè ôîðóìîâ";
|
||||
$this->ipsclass->admin->page_title = "Ëîãè ìîäåðàöèé";
|
||||
$this->ipsclass->admin->page_detail = "You may view and remove actions performed by your moderators";
|
||||
$this->ipsclass->admin->page_title = "Moderator Logs Manager";
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -277,14 +258,14 @@ class ad_modlogs {
|
||||
$this->ipsclass->DB->cache_add_query( 'modlogs_list_current_last_five', array() );
|
||||
$this->ipsclass->DB->cache_exec_query();
|
||||
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ìîäåðàòîð" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Äåéñòâèå" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ôîðóì" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Òåìà" , "25%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Äàòà Âðåìÿ" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "IP-àäðåñ" , "10%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Member Name" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Action Performed" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Forum" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Topic Title" , "25%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Time of action" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "IP address" , "10%" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ïîñëåäíèå 5 äåéñòâèé ìîäåðàòîðîâ" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Last 5 Moderation Actions" );
|
||||
|
||||
if ( $this->ipsclass->DB->get_num_rows() )
|
||||
{
|
||||
@@ -314,19 +295,19 @@ class ad_modlogs {
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("<center>Íåò çàïèñåé</center>");
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("<center>No results</center>");
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ìîäåðàòîð" , "30%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Äåéñòâèé ñîâåðøåíî" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ïðîñìîòð âñåõ äåéñòâèé ìîäåðàòîðà" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Óäàëåíèå âñåõ äåéñòâèé ìîäåðàòîðà" , "30%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Member Name" , "30%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Actions Performed" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "View all by member" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Remove all by member" , "30%" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ñîõðàíåííûå ëîãè ìîäåðàöèé" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Saved Moderator Logs" );
|
||||
|
||||
$this->ipsclass->DB->cache_add_query( 'modlogs_list_current_show_all', array() );
|
||||
$this->ipsclass->DB->cache_exec_query();
|
||||
@@ -335,8 +316,8 @@ class ad_modlogs {
|
||||
{
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>{$r['members_display_name']}</b>",
|
||||
"<center>{$r['act_count']}</center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&act=modlog&code=view&mid={$r['member_id']}'>Ïðîñìîòð</a></center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&act=modlog&code=remove&mid={$r['member_id']}'>Óäàëåíèå</a></center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&act=modlog&code=view&mid={$r['member_id']}'>View</a></center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&act=modlog&code=remove&mid={$r['member_id']}'>Remove</a></center>",
|
||||
) );
|
||||
}
|
||||
|
||||
@@ -356,27 +337,27 @@ class ad_modlogs {
|
||||
$this->ipsclass->adskin->td_header[] = array( " " , "40%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( " " , "60%" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ïîèñê ëîãîâ ìîäåðàöèé" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Search Moderator Logs" );
|
||||
|
||||
$form_array = array(
|
||||
0 => array( 'topic_title', 'Íàçâàíèå òåìû' ),
|
||||
1 => array( 'ip_address', 'IP-àäðåñ' ),
|
||||
2 => array( 'member_name', 'Ìîäåðàòîð' ),
|
||||
3 => array( 'topic_id' , 'ID òåìû' ),
|
||||
4 => array( 'forum_id' , 'ID ôîðóìà' )
|
||||
0 => array( 'topic_title', 'Topic Title' ),
|
||||
1 => array( 'ip_address', 'IP Address' ),
|
||||
2 => array( 'member_name', 'Member Name' ),
|
||||
3 => array( 'topic_id' , 'Topic ID' ),
|
||||
4 => array( 'forum_id' , 'Forum ID' )
|
||||
);
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Èñêàòü...</b>" ,
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Search for...</b>" ,
|
||||
$this->ipsclass->adskin->form_input( "search_string")
|
||||
) );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Èñêàòü â...</b>" ,
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Search in...</b>" ,
|
||||
$this->ipsclass->adskin->form_dropdown( "search_type", $form_array)
|
||||
) );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Èñêàòü");
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Search");
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
|
||||
Reference in new issue
Block a user