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,26 +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
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $
|
||||
| > $Revision: 23 $
|
||||
| > $Date: 2006-09-22 11:28:54 +0100 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -36,7 +27,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();
|
||||
}
|
||||
|
||||
@@ -61,18 +52,7 @@ class ad_spiderlogs {
|
||||
|
||||
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, 'Äåéñòâèÿ ïîèñêîâûõ áîòîâ' );
|
||||
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'Search Engine Spider Logs' );
|
||||
|
||||
//-----------------------------------------
|
||||
// Get bot names
|
||||
@@ -107,19 +87,20 @@ class ad_spiderlogs {
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Remove archived files
|
||||
// View Logs
|
||||
//-----------------------------------------
|
||||
|
||||
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 search engine spider";
|
||||
$this->ipsclass->admin->page_title = "Search Engine Logs Manager";
|
||||
|
||||
$botty = urldecode($this->ipsclass->input['bid']);
|
||||
$botty = str_replace( "!", "!", $botty );
|
||||
|
||||
if ($this->ipsclass->input['search_string'] == "")
|
||||
if ( !isset($this->ipsclass->input['search_string']) OR $this->ipsclass->input['search_string'] == "" )
|
||||
{
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => 'COUNT(sid) as count', 'from' => 'spider_logs', 'where' => "bot='$botty'" ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
@@ -158,29 +139,29 @@ class ad_spiderlogs {
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
}
|
||||
|
||||
$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 = "Âû ìîæåòå ïðîñìàòðèâàòü è óäàëÿòü äåéñòâèÿ ïîèñêîâûõ áîòîâ";
|
||||
$this->ipsclass->admin->page_title = "Ìåíåäæåð ïîèñêîâûõ áîòîâ";
|
||||
$this->ipsclass->admin->page_detail = "You may view and remove actions performed by a search engine bot";
|
||||
$this->ipsclass->admin->page_title = "Search Engine Logs Manager";
|
||||
|
||||
//-----------------------------------------
|
||||
// Show form!
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->adskin->td_header[] = array( "Èìÿ áîòà" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ñòðîêà çàïðîñà" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Äàòà è âðåìÿ" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "IP àäðåñ" , "10%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Bot Name" , "15%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Query String" , "15%" );
|
||||
$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 Search Engine Logs" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic($links, 'right', 'tablesubheader');
|
||||
|
||||
if ( $this->ipsclass->DB->get_num_rows() )
|
||||
{
|
||||
@@ -204,10 +185,10 @@ class ad_spiderlogs {
|
||||
}
|
||||
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();
|
||||
|
||||
@@ -227,45 +208,41 @@ class ad_spiderlogs {
|
||||
{
|
||||
if ($this->ipsclass->input['bid'] == "")
|
||||
{
|
||||
$this->ipsclass->admin->error("Âû íå âûáðàëè áîòà, êîòîðîãî õîòèòå óäàëèòü!");
|
||||
$this->ipsclass->admin->error("You did not select a bot to remove by!");
|
||||
}
|
||||
|
||||
$botty = urldecode($this->ipsclass->input['bid']);
|
||||
$botty = str_replace( "!", "!", $botty );
|
||||
|
||||
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'spider_logs', 'where' => "bot='$botty'" ) );
|
||||
|
||||
$this->ipsclass->admin->save_log("Óäàëåííûå ïîèñêîâûå ëîãè");
|
||||
$this->ipsclass->admin->save_log("Removed Search Engine Logs");
|
||||
|
||||
$this->ipsclass->boink_it($this->ipsclass->base_url."&{$this->ipsclass->form_code}");
|
||||
exit();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// SHOW ALL LANGUAGE PACKS
|
||||
// SHOW ALL BOTS
|
||||
//-----------------------------------------
|
||||
|
||||
function list_current()
|
||||
{
|
||||
$form_array = array();
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Âû ìîæåòå ïðîñìàòðèâàòü è óäàëÿòü äåéñòâèÿ ïîèñêîâûõ áîòîâ";
|
||||
$this->ipsclass->admin->page_title = "Ìåíåäæåð ïîèñêîâûõ áîòîâ";
|
||||
$this->ipsclass->admin->page_detail = "You may view and remove entries in your spider engine logs";
|
||||
$this->ipsclass->admin->page_title = "Search Engine Logs Manager";
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->adskin->td_header[] = array( "Èìÿ áîòà" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Õèòîâ" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Çàïóùåí" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ïðîñìîòð âñåõ äåéñòâèé" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Óäàëèòü âñå äåéñòâèÿ" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Bot Name" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Hits" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Last Hit" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "View all by bot" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Remove all by bot" , "20%" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Ñîõðàíåííûå äåéñòâèÿ ïîèñêîâûõ áîòîâ" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Saved Search Engine Spider Logs" );
|
||||
|
||||
|
||||
$this->ipsclass->DB->cache_add_query( 'spiderlogs_list_current', array() );
|
||||
@@ -273,14 +250,13 @@ class ad_spiderlogs {
|
||||
|
||||
while ( $r = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
|
||||
$url_butt = urlencode($r['bot']);
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( $this->bot_map[ strtolower($r['bot']) ],
|
||||
"<center>{$r['cnt']}</center>",
|
||||
$this->ipsclass->admin->get_date( $r['entry_date'], 'SHORT' ),
|
||||
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=view&bid={$url_butt}'>Ïðîñìîòð</a></center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=remove&bid={$url_butt}'>Óäàëèòü</a></center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=view&bid={$url_butt}'>View</a></center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=remove&bid={$url_butt}'>Remove</a></center>",
|
||||
) );
|
||||
}
|
||||
|
||||
@@ -300,15 +276,15 @@ class ad_spiderlogs {
|
||||
$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 Search Engine Logs" );
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Èñêàòü...</b>" ,
|
||||
$this->ipsclass->adskin->form_input( "search_string").'... â ñòðîêå çàïðîñà'
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Search for...</b>" ,
|
||||
$this->ipsclass->adskin->form_input( "search_string").'... in the query string'
|
||||
) );
|
||||
|
||||
$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