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 $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -37,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();
|
||||
}
|
||||
|
||||
@@ -64,20 +55,9 @@ class ad_statistics
|
||||
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->month_names = array( 1 => 'ßíâàðü', 'Ôåâðàëü', 'Ìàðò' , 'Àïðåëü' , 'Ìàé' , 'Èþíü',
|
||||
'Èþëü' , 'Àâãóñò' , 'Ñåíòÿáðü' , 'Îêòÿáðü', 'Íîÿáðü', 'Äåêàáðü'
|
||||
$this->month_names = array( 1 => 'January', 'February', 'March' , 'April' , 'May' , 'June',
|
||||
'July' , 'August' , 'September' , 'October', 'November', 'December'
|
||||
);
|
||||
|
||||
switch($this->ipsclass->input['code'])
|
||||
@@ -143,28 +123,28 @@ class ad_statistics
|
||||
|
||||
}
|
||||
|
||||
//select forum_id, SUM(views)from ibf_topics group by forum_id order by forum_id
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
//| Results screen
|
||||
//-----------------------------------------
|
||||
|
||||
function show_views()
|
||||
{
|
||||
$this->ipsclass->admin->page_title = "Öåíòðàëüíàÿ ñòàòèñòèêà";
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Ïîêàçàòü ñòàòèñòèêó ïðîñìîòðà òåì";
|
||||
$this->ipsclass->admin->page_title = "Statistic Center Results";
|
||||
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'Statistics Overview' );
|
||||
$this->ipsclass->admin->nav[] = array( '', 'Topic Views' );
|
||||
$this->ipsclass->admin->page_detail = "Showing topic view statistics";
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! checkdate($this->ipsclass->input['to_month'] ,$this->ipsclass->input['to_day'] ,$this->ipsclass->input['to_year']) )
|
||||
{
|
||||
$this->ipsclass->admin->error("'Äàòà äî:' íåâåðíîå âðåìÿ, ïîæàëóéñòà, ïðîâåðüòå ââåäåííîå Âàìè çíà÷åíèå è ïîïûòàéòåñü çàíîâî");
|
||||
$this->ipsclass->admin->error("The 'Date To:' time is incorrect, please check the input and try again");
|
||||
}
|
||||
|
||||
if ( ! checkdate($this->ipsclass->input['from_month'] ,$this->ipsclass->input['from_day'] ,$this->ipsclass->input['from_year']) )
|
||||
{
|
||||
$this->ipsclass->admin->error("'Äàòà îò:' íåâåðíîå âðåìÿ, ïîæàëóéñòà, ïðîâåðüòå ââåäåííîå Âàìè çíà÷åíèå è ïîïûòàéòåñü çàíîâî");
|
||||
$this->ipsclass->admin->error("The 'Date From:' time is incorrect, please check the input and try again");
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -184,14 +164,14 @@ class ad_statistics
|
||||
|
||||
$results = array();
|
||||
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ôîðóì" , "40%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ðåçóëüòàò" , "50%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ïðîñìîòðîâ" , "10%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Forum" , "40%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Result" , "50%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Views" , "10%" );
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Òåìó ñìîòðåëè"
|
||||
." ({$human_from_date['mday']} {$this->month_names[$human_from_date['mon']]} {$human_from_date['year']} ïî"
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( "Topic Views"
|
||||
." ({$human_from_date['mday']} {$this->month_names[$human_from_date['mon']]} {$human_from_date['year']} to"
|
||||
." {$human_to_date['mday']} {$this->month_names[$human_to_date['mon']]} {$human_to_date['year']})"
|
||||
);
|
||||
|
||||
@@ -215,7 +195,7 @@ class ad_statistics
|
||||
|
||||
}
|
||||
|
||||
foreach( $results as $pOOp => $data )
|
||||
foreach( $results as $data )
|
||||
{
|
||||
|
||||
$img_width = intval( ($data['result_count'] / $max_result) * 100 - 8);
|
||||
@@ -228,7 +208,7 @@ class ad_statistics
|
||||
$img_width .= '%';
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( $data['result_name'],
|
||||
"<img src='{$this->ipsclass->skin_url}/images/bar_left.gif' border='0' width='4' height='11' align='middle' alt=''><img src='{$this->ipsclass->skin_url}/images/bar.gif' border='0' width='$img_width' height='11' align='middle' alt=''><img src='{$this->ipsclass->skin_url}/images/bar_right.gif' border='0' width='4' height='11' align='middle' alt=''>",
|
||||
"<img src='{$this->ipsclass->skin_acp_url}/images/bar_left.gif' border='0' width='4' height='11' align='middle' alt=''><img src='{$this->ipsclass->skin_acp_url}/images/bar.gif' border='0' width='$img_width' height='11' align='middle' alt=''><img src='{$this->ipsclass->skin_acp_url}/images/bar_right.gif' border='0' width='4' height='11' align='middle' alt=''>",
|
||||
"<center>".$data['result_count']."</center>",
|
||||
) );
|
||||
}
|
||||
@@ -241,7 +221,7 @@ class ad_statistics
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic( "Íè÷åãî íå íàéäåíî", "center" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic( "No results found", "center" );
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
@@ -256,20 +236,20 @@ class ad_statistics
|
||||
|
||||
function result_screen($mode='reg')
|
||||
{
|
||||
$this->ipsclass->admin->page_title = "Öåíòðàëüíàÿ ñòàòèñòèêà";
|
||||
|
||||
$this->ipsclass->admin->page_title = "Statistic Center Results";
|
||||
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'Statistics Overview' );
|
||||
$this->ipsclass->admin->page_detail = " ";
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
if ( ! checkdate($this->ipsclass->input['to_month'] ,$this->ipsclass->input['to_day'] ,$this->ipsclass->input['to_year']) )
|
||||
{
|
||||
$this->ipsclass->admin->error("'Äàòà äî:' íåâåðíîå âðåìÿ, ïîæàëóéñòà, ïðîâåðüòå ââåäåííîå Âàìè çíà÷åíèå è ïîïûòàéòåñü çàíîâî");
|
||||
$this->ipsclass->admin->error("The 'Date To:' time is incorrect, please check the input and try again");
|
||||
}
|
||||
|
||||
if ( ! checkdate($this->ipsclass->input['from_month'] ,$this->ipsclass->input['from_day'] ,$this->ipsclass->input['from_year']) )
|
||||
{
|
||||
$this->ipsclass->admin->error("'Äàòà îò:' íåâåðíîå âðåìÿ, ïîæàëóéñòà, ïðîâåðüòå ââåäåííîå Âàìè çíà÷åíèå è ïîïûòàéòåñü çàíîâî");
|
||||
$this->ipsclass->admin->error("The 'Date From:' time is incorrect, please check the input and try again");
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
@@ -285,39 +265,43 @@ class ad_statistics
|
||||
|
||||
if ($mode == 'reg')
|
||||
{
|
||||
$table = 'Ñòàòèñòèêà ðåãèñòðàöèé';
|
||||
$table = 'Registration Statistics';
|
||||
|
||||
$sql_table = 'members';
|
||||
$sql_field = 'joined';
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Ïîêàçàòü êîëè÷åñòâî çàðåãèñòðèðîâàííûõ ïîëüçîâàòåëåé. (Ïðèìå÷àíèå: Âñå âðåìÿ áóäåò â GMT)";
|
||||
$this->ipsclass->admin->page_detail = "Showing the number of users registered. (Note: All times based on GMT)";
|
||||
$this->ipsclass->admin->nav[] = array( '', 'Registered Users' );
|
||||
}
|
||||
else if ($mode == 'topic')
|
||||
{
|
||||
$table = 'Ñòàòèñòèêà íîâûõ òåì';
|
||||
$table = 'New Topic Statistics';
|
||||
|
||||
$sql_table = 'topics';
|
||||
$sql_field = 'start_date';
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Ïîêàçàòü êîëè÷åñòâî íîâûõ òåì. (Ïðèìå÷àíèå: Âñå âðåìÿ áóäåò â GMT)";
|
||||
$this->ipsclass->admin->page_detail = "Showing the number of topics started. (Note: All times based on GMT)";
|
||||
$this->ipsclass->admin->nav[] = array( '', 'Topics Started' );
|
||||
}
|
||||
else if ($mode == 'post')
|
||||
{
|
||||
$table = 'Ñòàòèñòèêà ñîîáùåíèé';
|
||||
$table = 'Post Statistics';
|
||||
|
||||
$sql_table = 'posts';
|
||||
$sql_field = 'post_date';
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Ïîêàçàòü êîëè÷åñòâî ñîîáùåíèé. (Ïðèìå÷àíèå: Âñå âðåìÿ áóäåò â GMT)";
|
||||
$this->ipsclass->admin->page_detail = "Showing the number of posts. (Note: All times based on GMT)";
|
||||
$this->ipsclass->admin->nav[] = array( '', 'Number of Posts' );
|
||||
}
|
||||
else if ($mode == 'msg')
|
||||
{
|
||||
$table = 'Ñòàòèñòèêà PM';
|
||||
$table = 'PM Sent Statistics';
|
||||
|
||||
$sql_table = 'message_topics';
|
||||
$sql_field = 'mt_date';
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Ïîêàçàòü êîëè÷åñòâî îòïðàâëåííûõ ïèñåì. (Ïðèìå÷àíèå: Âñå âðåìÿ áóäåò â GMT)";
|
||||
$this->ipsclass->admin->page_detail = "Showing the number of sent messages. (Note: All times based on GMT)";
|
||||
$this->ipsclass->admin->nav[] = array( '', 'Sent Private Messages' );
|
||||
}
|
||||
|
||||
|
||||
@@ -353,9 +337,9 @@ class ad_statistics
|
||||
|
||||
$results = array();
|
||||
|
||||
$this->ipsclass->adskin->td_header[] = array( "Äàòà" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ðåçóëüòàò" , "70%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Ñ÷åò" , "10%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Date" , "20%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Result" , "70%" );
|
||||
$this->ipsclass->adskin->td_header[] = array( "Count" , "10%" );
|
||||
|
||||
//-----------------------------------------
|
||||
|
||||
@@ -386,7 +370,7 @@ class ad_statistics
|
||||
|
||||
}
|
||||
|
||||
foreach( $results as $pOOp => $data )
|
||||
foreach( $results as $data )
|
||||
{
|
||||
|
||||
$img_width = intval( ($data['result_count'] / $max_result) * 100 - 8);
|
||||
@@ -398,7 +382,7 @@ class ad_statistics
|
||||
|
||||
$img_width .= '%';
|
||||
|
||||
if ($this->ipsclass->input['timescale'] == 'åæåíåäåëüíî')
|
||||
if ($this->ipsclass->input['timescale'] == 'weekly')
|
||||
{
|
||||
$date = "Week #".strftime("%W", $data['result_maxdate']) . date( $php_date, $data['result_maxdate'] );
|
||||
}
|
||||
@@ -408,20 +392,20 @@ class ad_statistics
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( $date,
|
||||
"<img src='{$this->ipsclass->skin_url}/images/bar_left.gif' border='0' width='4' height='11' align='middle' alt=''><img src='{$this->ipsclass->skin_url}/images/bar.gif' border='0' width='$img_width' height='11' align='middle' alt=''><img src='{$this->ipsclass->skin_url}/images/bar_right.gif' border='0' width='4' height='11' align='middle' alt=''>",
|
||||
"<img src='{$this->ipsclass->skin_acp_url}/images/bar_left.gif' border='0' width='4' height='11' align='middle' alt=''><img src='{$this->ipsclass->skin_acp_url}/images/bar.gif' border='0' width='$img_width' height='11' align='middle' alt=''><img src='{$this->ipsclass->skin_acp_url}/images/bar_right.gif' border='0' width='4' height='11' align='middle' alt=''>",
|
||||
"<center>".$data['result_count']."</center>",
|
||||
) );
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( ' ',
|
||||
"<div align='right'><b>Âñåãî</b></div>",
|
||||
"<div align='right'><b>Total</b></div>",
|
||||
"<center><b>".$running_total."</b></center>",
|
||||
) );
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic( "Íè÷åãî íå íàéäåíî", "center" );
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_basic( "No results found", "center" );
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
@@ -436,39 +420,39 @@ class ad_statistics
|
||||
|
||||
function main_screen($mode='reg')
|
||||
{
|
||||
$this->ipsclass->admin->page_title = "Öåíòð ñòàòèñòèêè";
|
||||
|
||||
$this->ipsclass->admin->page_detail = "Ïîæàëóéñòà, óñòàíîâèòå ïåðèîä äàòû è äðóãèå îïöèè íèæå. <br>Ïðèìå÷àíèå: Ñòàòèñòêà ñîçäàåòñÿ òîëüêî íà èíôîðìàöèè, âçÿòîé èç áàçû äûííûõ, óäàëåííûå ó÷åòíûå çàïèñè, ñîîáùåíèÿ è ò.ä. íå ñ÷èòàþòñÿ.";
|
||||
$this->ipsclass->admin->page_title = "Statistic Center";
|
||||
$this->ipsclass->admin->nav[] = array( $this->ipsclass->form_code, 'Statistics Overview' );
|
||||
$this->ipsclass->admin->page_detail = "Please define the date ranges and other options below.<br>Note: The statistics generated are based on the information currently held in the database, they do not take into account pruned forums or delete posts, etc.";
|
||||
|
||||
if ($mode == 'reg')
|
||||
{
|
||||
$form_code = 'show_reg';
|
||||
|
||||
$table = 'Ñòàòèñòèêà ðåãèñòðàöèé';
|
||||
$table = 'Registration Statistics';
|
||||
}
|
||||
else if ($mode == 'topic')
|
||||
{
|
||||
$form_code = 'show_topic';
|
||||
|
||||
$table = 'Ñòàòèñòèêà íîâûõ òåì';
|
||||
$table = 'New Topic Statistics';
|
||||
}
|
||||
else if ($mode == 'post')
|
||||
{
|
||||
$form_code = 'show_post';
|
||||
|
||||
$table = 'Ñòàòèñòèêà ñîîáùåíèé';
|
||||
$table = 'Post Statistics';
|
||||
}
|
||||
else if ($mode == 'msg')
|
||||
{
|
||||
$form_code = 'show_msg';
|
||||
|
||||
$table = 'Ñòàòèñòèêà PM';
|
||||
$table = 'PM Statistics';
|
||||
}
|
||||
else if ($mode == 'views')
|
||||
{
|
||||
$form_code = 'show_views';
|
||||
|
||||
$table = 'Ñòàòèñòèêà ïðîñìîòðîâ òåì';
|
||||
$table = 'Topic View Statistics';
|
||||
}
|
||||
|
||||
|
||||
@@ -493,13 +477,13 @@ class ad_statistics
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->start_table( $table );
|
||||
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Äàòà ñ</b>" ,
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Date From</b>" ,
|
||||
$this->ipsclass->adskin->form_dropdown( "from_month" , $this->make_month(), $old_date['mon'] ).' '.
|
||||
$this->ipsclass->adskin->form_dropdown( "from_day" , $this->make_day() , $old_date['mday'] ).' '.
|
||||
$this->ipsclass->adskin->form_dropdown( "from_year" , $this->make_year() , $old_date['year'] )
|
||||
) );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Äàòà ïî</b>" ,
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Date To</b>" ,
|
||||
$this->ipsclass->adskin->form_dropdown( "to_month" , $this->make_month(), $new_date['mon'] ).' '.
|
||||
$this->ipsclass->adskin->form_dropdown( "to_day" , $this->make_day() , $new_date['mday'] ).' '.
|
||||
$this->ipsclass->adskin->form_dropdown( "to_year" , $this->make_year() , $new_date['year'] )
|
||||
@@ -507,16 +491,16 @@ class ad_statistics
|
||||
|
||||
if ($mode != 'views')
|
||||
{
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ïåðèîä âðåìåíè</b>" ,
|
||||
$this->ipsclass->adskin->form_dropdown( "timescale" , array( 0 => array( 'åæåäíåâíî', 'Åæåäíåâíî'), 1 => array( 'åæåíåäåëüíî', 'Åæåíåäåëüíî' ), 2 => array( 'åæåìåñÿ÷íî', 'Åæåìåñÿ÷íî' ) ) )
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Time scale</b>" ,
|
||||
$this->ipsclass->adskin->form_dropdown( "timescale" , array( 0 => array( 'daily', 'Daily'), 1 => array( 'weekly', 'Weekly' ), 2 => array( 'monthly', 'Monthly' ) ) )
|
||||
) );
|
||||
}
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Ñîðòèðîâêà ðåçóëüòàòîâ</b>" ,
|
||||
$this->ipsclass->adskin->form_dropdown( "sortby" , array( 0 => array( 'asc', 'Ïî âîçðàñòàíèþ – Ïåðâûìè ,ñàìûå ñòàðûå'), 1 => array( 'desc', 'Ïî óáûâàíèþ – Ïåðâûìè, ñàìûå íîâûå' ) ), 'desc' )
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->add_td_row( array( "<b>Result Sorting</b>" ,
|
||||
$this->ipsclass->adskin->form_dropdown( "sortby" , array( 0 => array( 'asc', 'Ascending - Oldest dates first'), 1 => array( 'desc', 'Descending - Newest dates first' ) ), 'desc' )
|
||||
) );
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Ïîêàçàòü");
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_form("Show");
|
||||
|
||||
$this->ipsclass->html .= $this->ipsclass->adskin->end_table();
|
||||
|
||||
|
||||
Reference in new issue
Block a user