Version 2.2.2
This commit is contained in:
1 parent
22f1b963ee
commit
a3bb603c96
858 files changed
+479463
-188140
No files matched your search
@@ -1,303 +1,311 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-09-22 11:28:54 +0100 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Spider (MAN) Logs
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 28th May 2003
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
| > DBA Checked: Tue 25th May 2004
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
{
|
||||
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_spiderlogs {
|
||||
|
||||
var $base_url;
|
||||
|
||||
/**
|
||||
* Section title name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
var $perm_main = "admin";
|
||||
|
||||
/**
|
||||
* Section title name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
var $perm_child = "spiderlog";
|
||||
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'Search Engine Spider Logs' );
|
||||
|
||||
//-----------------------------------------
|
||||
// Get bot names
|
||||
//-----------------------------------------
|
||||
|
||||
foreach( explode( "\n", $this->ipsclass->vars['search_engine_bots'] ) as $bot )
|
||||
{
|
||||
list($ua, $n) = explode( "=", $bot );
|
||||
|
||||
$this->bot_map[ strtolower($ua) ] = $n;
|
||||
}
|
||||
|
||||
switch($this->ipsclass->input['code'])
|
||||
{
|
||||
case 'view':
|
||||
$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':' );
|
||||
$this->view();
|
||||
break;
|
||||
|
||||
case 'remove':
|
||||
$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':remove' );
|
||||
$this->remove();
|
||||
break;
|
||||
|
||||
//-----------------------------------------
|
||||
default:
|
||||
$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':' );
|
||||
$this->list_current();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// View Logs
|
||||
//-----------------------------------------
|
||||
|
||||
function view()
|
||||
{
|
||||
$start = intval($this->ipsclass->input['st']) >=0 ? intval($this->ipsclass->input['st']) : 0;
|
||||
|
||||
$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 ( !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();
|
||||
|
||||
$row = $this->ipsclass->DB->fetch_row();
|
||||
|
||||
$row_count = $row['count'];
|
||||
|
||||
$query = "&{$this->ipsclass->form_code}&bid={$this->ipsclass->input['bid']}&code=view";
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => '*',
|
||||
'from' => 'spider_logs',
|
||||
'where' => "bot='$botty'",
|
||||
'order' => 'entry_date DESC',
|
||||
'limit' => array( $start, 20 ) ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->input['search_string'] = urldecode($this->ipsclass->input['search_string']);
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => 'COUNT(sid) as count', 'from' => 'spider_logs', 'where' => "query_string LIKE '%{$this->ipsclass->input['search_string']}%'" ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
$row = $this->ipsclass->DB->fetch_row();
|
||||
|
||||
$row_count = $row['count'];
|
||||
|
||||
$query = "&{$this->ipsclass->form_code}&code=view&search_string=".urlencode($this->ipsclass->input['search_string']);
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => '*',
|
||||
'from' => 'spider_logs',
|
||||
'where' => "query_string LIKE '%{$this->ipsclass->input['search_string']}%'",
|
||||
'order' => 'entry_date DESC',
|
||||
'limit' => array( $start, 20 ) ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
}
|
||||
|
||||
$links = $this->ipsclass->adskin->build_pagelinks( array( 'TOTAL_POSS' => $row_count,
|
||||
'PER_PAGE' => 20,
|
||||
'CUR_ST_VAL' => $start,
|
||||
'L_SINGLE' => "Single Page",
|
||||
'L_MULTI' => "Pages: ",
|
||||
'BASE_URL' => $this->ipsclass->base_url.$query,
|
||||
)
|
||||
);
|
||||
|
||||
$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( "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( "Saved Search Engine Logs" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic($links, 'right', 'tablesubheader');
|
||||
|
||||
if ( $this->ipsclass->DB->get_num_rows() )
|
||||
{
|
||||
while ( $row = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$extra = "";
|
||||
|
||||
if ( preg_match( '#lo-fi#i', $row['query_string'] ) )
|
||||
{
|
||||
$extra = '(Lo-Fi)';
|
||||
$row['query_string'] = 'showtopic='.preg_replace( "#Lo-Fi\: t(.+?)\.html#", "\\1", $row['query_string'] );
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>".$this->bot_map[ strtolower($row['bot']) ]."</b>",
|
||||
"<a href='{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?{$row['query_string']}' target='_blank'>$extra {$row['query_string']}</a>",
|
||||
$this->ipsclass->admin->get_date( $row['entry_date'], 'LONG' ),
|
||||
"{$row['ip_address']}",
|
||||
) );
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("<center>No results</center>");
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic($links, 'right', 'tablesubheader');
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
//-------------------------------
|
||||
|
||||
$this->ipsclass->admin->output();
|
||||
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Remove archived files
|
||||
//-----------------------------------------
|
||||
|
||||
function remove()
|
||||
{
|
||||
if ($this->ipsclass->input['bid'] == "")
|
||||
{
|
||||
$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("Removed Search Engine Logs");
|
||||
|
||||
$this->ipsclass->boink_it($this->ipsclass->base_url."&{$this->ipsclass->form_code}");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// SHOW ALL BOTS
|
||||
//-----------------------------------------
|
||||
|
||||
function list_current()
|
||||
{
|
||||
$form_array = array();
|
||||
|
||||
$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( "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( "Saved Search Engine Spider Logs" );
|
||||
|
||||
|
||||
$this->ipsclass->DB->cache_add_query( 'spiderlogs_list_current', array() );
|
||||
$this->ipsclass->DB->cache_exec_query();
|
||||
|
||||
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}'>View</a></center>",
|
||||
"<center><a href='".$this->ipsclass->base_url."&{$this->ipsclass->form_code}&code=remove&bid={$url_butt}'>Remove</a></center>",
|
||||
) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
//-------------------------------
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_form( array( 1 => array( 'code' , 'view' ),
|
||||
2 => array( 'act' , 'spiderlog' ),
|
||||
4 => array( 'section', $this->ipsclass->section_code ),
|
||||
) );
|
||||
|
||||
$this->ipsclass->adskin->td_header[] = array( " " , "40%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( " " , "60%" );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Search Search Engine Logs" );
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$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("Search");
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
//-----------------------------------------
|
||||
//-------------------------------
|
||||
|
||||
$this->ipsclass->admin->output();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2006-09-22 05:28:54 -0500 (Fri, 22 Sep 2006) $
|
||||
| > $Revision: 567 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Spider (MAN) Logs
|
||||
| > Module written by Matt Mecham
|
||||
| > Date started: 28th May 2003
|
||||
|
|
||||
| > Module Version Number: 1.0.0
|
||||
| > DBA Checked: Tue 25th May 2004
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class ad_spiderlogs {
|
||||
|
||||
var $base_url;
|
||||
|
||||
/**
|
||||
* Section title name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
var $perm_main = "admin";
|
||||
|
||||
/**
|
||||
* Section title name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
var $perm_child = "spiderlog";
|
||||
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'Æóðíàë äåéñòâèé ïîèñêîâûõ ðîáîòîâ' );
|
||||
|
||||
//-----------------------------------------
|
||||
// Get bot names
|
||||
//-----------------------------------------
|
||||
|
||||
foreach( explode( "\n", $this->ipsclass->vars['search_engine_bots'] ) as $bot )
|
||||
{
|
||||
list($ua, $n) = explode( "=", $bot );
|
||||
|
||||
$this->bot_map[ strtolower($ua) ] = $n;
|
||||
}
|
||||
|
||||
switch($this->ipsclass->input['code'])
|
||||
{
|
||||
case 'view':
|
||||
$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':' );
|
||||
$this->view();
|
||||
break;
|
||||
|
||||
case 'remove':
|
||||
$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':remove' );
|
||||
$this->remove();
|
||||
break;
|
||||
|
||||
//-----------------------------------------
|
||||
default:
|
||||
$this->ipsclass->admin->cp_permission_check( $this->perm_main.'|'.$this->perm_child.':' );
|
||||
$this->list_current();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// View Logs
|
||||
//-----------------------------------------
|
||||
|
||||
function view()
|
||||
{
|
||||
$start = intval($this->ipsclass->input['st']) >=0 ? intval($this->ipsclass->input['st']) : 0;
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Íèæå óêàçàí ñïèñîê âñåõ äåéñòâèé, êîòîðûå áûëè ïðîèçâåäåíû ïîèñêîâûìè ðîáîòàìè íà âàøåì ôîðóìå.<br />Â ýòîì æóðíàëå ôèêñèðóþòñÿ äåéñòâèÿ òîëüêî èçâåñòíûõ ðîáîòîâ, êîòîðûå óêàçàíû â íàñòðîéêå «Ñïèñîê „user-agent“ ïîèñêîâûõ ðîáîòîâ».";
|
||||
$this->ipsclass->admin->page_title = "Æóðíàë äåéñòâèé ïîèñêîâûõ ðîáîòîâ";
|
||||
|
||||
$botty = urldecode($this->ipsclass->input['bid']);
|
||||
$botty = str_replace( "!", "!", $botty );
|
||||
|
||||
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();
|
||||
|
||||
$row = $this->ipsclass->DB->fetch_row();
|
||||
|
||||
$row_count = $row['count'];
|
||||
|
||||
$query = "&{$this->ipsclass->form_code}&bid={$this->ipsclass->input['bid']}&code=view";
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => '*',
|
||||
'from' => 'spider_logs',
|
||||
'where' => "bot='$botty'",
|
||||
'order' => 'entry_date DESC',
|
||||
'limit' => array( $start, 20 ) ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->input['search_string'] = urldecode($this->ipsclass->input['search_string']);
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => 'COUNT(sid) as count', 'from' => 'spider_logs', 'where' => "query_string LIKE '%{$this->ipsclass->input['search_string']}%'" ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
|
||||
$row = $this->ipsclass->DB->fetch_row();
|
||||
|
||||
$row_count = $row['count'];
|
||||
|
||||
$query = "&{$this->ipsclass->form_code}&code=view&search_string=".urlencode($this->ipsclass->input['search_string']);
|
||||
|
||||
$this->ipsclass->DB->simple_construct( array( 'select' => '*',
|
||||
'from' => 'spider_logs',
|
||||
'where' => "query_string LIKE '%{$this->ipsclass->input['search_string']}%'",
|
||||
'order' => 'entry_date DESC',
|
||||
'limit' => array( $start, 20 ) ) );
|
||||
$this->ipsclass->DB->simple_exec();
|
||||
}
|
||||
|
||||
$links = $this->ipsclass->adskin->build_pagelinks( array( 'TOTAL_POSS' => $row_count,
|
||||
'PER_PAGE' => 20,
|
||||
'CUR_ST_VAL' => $start,
|
||||
'L_SINGLE' => "Îäíà ñòðàíèöà",
|
||||
'L_MULTI' => "Ñòðàíèö: ",
|
||||
'BASE_URL' => $this->ipsclass->base_url.$query,
|
||||
)
|
||||
);
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Íèæå óêàçàí ñïèñîê âñåõ äåéñòâèé, êîòîðûå áûëè ïðîèçâåäåíû ïîèñêîâûìè ðîáîòàìè íà âàøåì ôîðóìå.<br />Â ýòîì æóðíàëå ôèêñèðóþòñÿ äåéñòâèÿ òîëüêî èçâåñòíûõ ðîáîòîâ, êîòîðûå óêàçàíû â íàñòðîéêå «Ñïèñîê „user-agent“ ïîèñêîâûõ ðîáîòîâ».";
|
||||
$this->ipsclass->admin->page_title = "Æóðíàë äåéñòâèé ïîèñêîâûõ ðîáîòîâ";
|
||||
|
||||
//-----------------------------------------
|
||||
// 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->html .= $this->ipsclass->adskin->start_table( "Ñïèñîê äåéñòâèé — ðåçóëüòàòû ïîèñêà" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic($links, 'right', 'tablesubheader');
|
||||
|
||||
if ( $this->ipsclass->DB->get_num_rows() )
|
||||
{
|
||||
while ( $row = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$extra = "";
|
||||
|
||||
if ( preg_match( '#lo-fi#i', $row['query_string'] ) )
|
||||
{
|
||||
$extra = '(Lo-Fi)';
|
||||
$row['query_string'] = 'showtopic='.preg_replace( "#Lo-Fi\: t(.+?)\.html#", "\\1", $row['query_string'] );
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>".$this->bot_map[ strtolower($row['bot']) ]."</b>",
|
||||
"<a href='{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?{$row['query_string']}' target='_blank'>$extra {$row['query_string']}</a>",
|
||||
$this->ipsclass->admin->get_date( $row['entry_date'], 'LONG' ),
|
||||
"{$row['ip_address']}",
|
||||
) );
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic("<center>Ïîèñê íå äàë ðåçóëüòàòîâ</center>");
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic($links, 'right', 'tablesubheader');
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
//-------------------------------
|
||||
|
||||
$this->ipsclass->admin->output();
|
||||
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Remove archived files
|
||||
//-----------------------------------------
|
||||
|
||||
function remove()
|
||||
{
|
||||
if ($this->ipsclass->input['bid'] == "")
|
||||
{
|
||||
$this->ipsclass->admin->error("Âû íå âûáðàëè áîòà, êîòîðîãî õîòèòå óäàëèòü!");
|
||||
}
|
||||
|
||||
$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->boink_it($this->ipsclass->base_url."&{$this->ipsclass->form_code}");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// SHOW ALL BOTS
|
||||
//-----------------------------------------
|
||||
|
||||
function list_current()
|
||||
{
|
||||
$form_array = array();
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Íèæå óêàçàí ñïèñîê âñåõ äåéñòâèé, êîòîðûå áûëè ïðîèçâåäåíû ïîèñêîâûìè ðîáîòàìè íà âàøåì ôîðóìå.<br />Â ýòîì æóðíàëå ôèêñèðóþòñÿ äåéñòâèÿ òîëüêî èçâåñòíûõ ðîáîòîâ, êîòîðûå óêàçàíû â íàñòðîéêå «Ñïèñîê „user-agent“ ïîèñêîâûõ ðîáîòîâ».";
|
||||
$this->ipsclass->admin->page_title = "Æóðíàë äåéñòâèé ïîèñêîâûõ ðîáîòîâ";
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$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->html .= $this->ipsclass->adskin->start_table( "Ñïèñîê äåéñòâèé" );
|
||||
|
||||
|
||||
$this->ipsclass->DB->cache_add_query( 'spiderlogs_list_current', array() );
|
||||
$this->ipsclass->DB->cache_exec_query();
|
||||
|
||||
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>",
|
||||
) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
//-------------------------------
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_form( array( 1 => array( 'code' , 'view' ),
|
||||
2 => array( 'act' , 'spiderlog' ),
|
||||
4 => array( 'section', $this->ipsclass->section_code ),
|
||||
) );
|
||||
|
||||
$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->add_td_row( array( "<b>Èñêàòü...</b>" ,
|
||||
$this->ipsclass->adskin->form_input( "search_string").'... â ñòðîêå çàïðîñà'
|
||||
) );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Íàéòè");
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
//-----------------------------------------
|
||||
//-------------------------------
|
||||
|
||||
$this->ipsclass->admin->output();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user