Version 3.4.5
This commit is contained in:
1 parent
fb6b5baabc
commit
e4478369d8
1360 files changed
+228921
-179445
No files matched your search
@@ -7,7 +7,7 @@
|
||||
* $Author: ips_terabyte $
|
||||
* @since 14th May 2003
|
||||
* $LastChangedDate: 2011-05-05 12:40:49 -0400 (Thu, 05 May 2011) $
|
||||
* @version v3.3.4
|
||||
* @version v3.4.5
|
||||
* $Revision: 8655 $
|
||||
*/
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* IP.Board v3.4.5
|
||||
* Forum Statistics
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* Last Updated: $Date: 2013-04-19 19:48:56 -0400 (Fri, 19 Apr 2013) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
@@ -13,7 +13,7 @@
|
||||
* @package IP.Board
|
||||
* @subpackage Forums
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 10914 $
|
||||
* @version $Rev: 12191 $
|
||||
*/
|
||||
|
||||
|
||||
@@ -306,7 +306,7 @@ class admin_forums_statistics_stats extends ipsCommand
|
||||
$graph->options['height'] = 480;
|
||||
$graph->options['style3D'] = 0;
|
||||
$graph->options['charttype'] = 'Line';
|
||||
$graph->options['font'] = IPS_PUBLIC_PATH . 'style_captcha/captcha_fonts/Sathu.ttf';
|
||||
$graph->options['font'] = IPS_PUBLIC_PATH . 'style_captcha/captcha_fonts/DejaVuSans.ttf';
|
||||
|
||||
/* Build Graph */
|
||||
$graph->addLabels( $labels );
|
||||
@@ -518,20 +518,26 @@ class admin_forums_statistics_stats extends ipsCommand
|
||||
{
|
||||
case 'daily':
|
||||
$sql_date = "%j %Y";
|
||||
$php_date = "F jS - Y";
|
||||
$php_date = "%B %e - %Y";
|
||||
break;
|
||||
|
||||
case 'monthly':
|
||||
$sql_date = "%m %Y";
|
||||
$php_date = "F Y";
|
||||
$php_date = "%B %Y";
|
||||
break;
|
||||
|
||||
default:
|
||||
// weekly
|
||||
$sql_date = "%U %Y";
|
||||
$php_date = "W [F Y]";
|
||||
$php_date = "%U [%B %Y]";
|
||||
break;
|
||||
}
|
||||
|
||||
/* @link http://php.net/strftime */
|
||||
if ( strtoupper( substr( PHP_OS, 0, 3 ) ) == 'WIN' )
|
||||
{
|
||||
$php_date = preg_replace( '#(?<!%)((?:%%)*)%e#', '\1%#d', $php_date );
|
||||
}
|
||||
|
||||
/* Table Title */
|
||||
$title = $this->lang->words[ 'timescale_' . $this->request['timescale'] ] ." {$table} ({$human_from_date['mday']} {$this->month_names[$human_from_date['mon']]} {$human_from_date['year']} {$this->lang->words['stats_to']} {$human_to_date['mday']} {$this->month_names[$human_to_date['mon']]} {$human_to_date['year']})";
|
||||
@@ -598,11 +604,11 @@ class admin_forums_statistics_stats extends ipsCommand
|
||||
/* Format Date */
|
||||
if( $this->request['timescale'] == 'weekly' )
|
||||
{
|
||||
$data['_name'] = $this->lang->words['stats_weekno'] . date( $php_date, $data['result_maxdate'] );
|
||||
$data['_name'] = $this->lang->words['stats_weekno'] . strftime( $php_date, $data['result_maxdate'] );
|
||||
}
|
||||
else
|
||||
{
|
||||
$data['_name'] = date( $php_date, $data['result_maxdate'] );
|
||||
$data['_name'] = strftime( $php_date, $data['result_maxdate'] );
|
||||
}
|
||||
|
||||
$rows[] = $data;
|
||||
@@ -730,7 +736,7 @@ class admin_forums_statistics_stats extends ipsCommand
|
||||
|
||||
/* Loop through the results */
|
||||
$running_total = 0;
|
||||
$max_result = 0;
|
||||
$max_result = 1;
|
||||
$results = array();
|
||||
$running_total = 0;
|
||||
|
||||
@@ -754,7 +760,7 @@ class admin_forums_statistics_stats extends ipsCommand
|
||||
|
||||
/* Build the output rows */
|
||||
$rows = array();
|
||||
|
||||
|
||||
foreach( $results as $data )
|
||||
{
|
||||
$running_total += $row['result_count'];
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
<menu>
|
||||
<tabitems>
|
||||
<item>
|
||||
<title>Registration Stats</title>
|
||||
<title>Статистика Регистраций</title>
|
||||
<subitems>
|
||||
<subitem>
|
||||
<subitemtitle>Registration Stats</subitemtitle>
|
||||
<subitemtitle>Статистика Регистраций</subitemtitle>
|
||||
<subitemlang>stats_reg</subitemlang>
|
||||
<subsection>stats</subsection>
|
||||
<subitemurl>do=reg</subitemurl>
|
||||
@@ -15,10 +15,10 @@
|
||||
</subitems>
|
||||
</item>
|
||||
<item>
|
||||
<title>New Topic Stats</title>
|
||||
<title>Статистика Новых Тем</title>
|
||||
<subitems>
|
||||
<subitem>
|
||||
<subitemtitle>New Topic Stats</subitemtitle>
|
||||
<subitemtitle>Статистика Новых Тем</subitemtitle>
|
||||
<subitemlang>stats_topics</subitemlang>
|
||||
<subsection>stats</subsection>
|
||||
<subitemurl>do=topic</subitemurl>
|
||||
@@ -28,10 +28,10 @@
|
||||
</subitems>
|
||||
</item>
|
||||
<item>
|
||||
<title>Post Stats</title>
|
||||
<title>Статистика Сообщений</title>
|
||||
<subitems>
|
||||
<subitem>
|
||||
<subitemtitle>Post Stats</subitemtitle>
|
||||
<subitemtitle>Статистика Сообщений</subitemtitle>
|
||||
<subitemlang>stats_posts</subitemlang>
|
||||
<subsection>stats</subsection>
|
||||
<subitemurl>do=post</subitemurl>
|
||||
@@ -41,10 +41,10 @@
|
||||
</subitems>
|
||||
</item>
|
||||
<item>
|
||||
<title>Personal Message</title>
|
||||
<title>Личные Сообщения</title>
|
||||
<subitems>
|
||||
<subitem>
|
||||
<subitemtitle>Personal Message</subitemtitle>
|
||||
<subitemtitle>Личные Сообщения</subitemtitle>
|
||||
<subitemlang>stats_pms</subitemlang>
|
||||
<subsection>stats</subsection>
|
||||
<subitemurl>do=msg</subitemurl>
|
||||
@@ -54,10 +54,10 @@
|
||||
</subitems>
|
||||
</item>
|
||||
<item>
|
||||
<title>Topic Views</title>
|
||||
<title>Просмотры Тем</title>
|
||||
<subitems>
|
||||
<subitem>
|
||||
<subitemtitle>Topic Views</subitemtitle>
|
||||
<subitemtitle>Просмотры Тем</subitemtitle>
|
||||
<subitemlang>stats_tviews</subitemlang>
|
||||
<subsection>stats</subsection>
|
||||
<subitemurl>do=views</subitemurl>
|
||||
@@ -67,10 +67,10 @@
|
||||
</subitems>
|
||||
</item>
|
||||
<item>
|
||||
<title>Spam Service</title>
|
||||
<title>Служба Антиспам</title>
|
||||
<subitems>
|
||||
<subitem>
|
||||
<subitemtitle>Spam Service</subitemtitle>
|
||||
<subitemtitle>Служба Антиспам</subitemtitle>
|
||||
<subitemlang>stats_spam</subitemlang>
|
||||
<subsection>stats</subsection>
|
||||
<subitemurl>do=spam</subitemurl>
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<permissions>
|
||||
<group>
|
||||
<grouptitle>Manage Statistics</grouptitle>
|
||||
<grouplang>forums_stats</grouplang>
|
||||
<items>
|
||||
<item>
|
||||
<key>stats_topics</key>
|
||||
<string>Can run reports on new topics?</string>
|
||||
</item>
|
||||
<item>
|
||||
<key>stats_registration</key>
|
||||
<string>Can run reports on new registrations?</string>
|
||||
</item>
|
||||
<item>
|
||||
<key>stats_posts</key>
|
||||
<string>Can run reports on new posts?</string>
|
||||
</item>
|
||||
<item>
|
||||
<key>stats_msg</key>
|
||||
<string>Can run reports on new messages?</string>
|
||||
</item>
|
||||
<item>
|
||||
<key>stats_views</key>
|
||||
<string>Can run reports on topic views?</string>
|
||||
</item>
|
||||
</items>
|
||||
</group>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<permissions>
|
||||
<group>
|
||||
<grouptitle>Управление статистикой</grouptitle>
|
||||
<grouplang>forums_stats</grouplang>
|
||||
<items>
|
||||
<item>
|
||||
<key>stats_topics</key>
|
||||
<string>Может просматривать отчет о новых темах?</string>
|
||||
</item>
|
||||
<item>
|
||||
<key>stats_registration</key>
|
||||
<string>Может просматривать отчет о новых регистрациях?</string>
|
||||
</item>
|
||||
<item>
|
||||
<key>stats_posts</key>
|
||||
<string>Может просматривать отчет о новых сообщениях?</string>
|
||||
</item>
|
||||
<item>
|
||||
<key>stats_msg</key>
|
||||
<string>Может просматривать отчет о новых личных сообщениях?</string>
|
||||
</item>
|
||||
<item>
|
||||
<key>stats_views</key>
|
||||
<string>Может просматривать отчет о просмотрах тем?</string>
|
||||
</item>
|
||||
</items>
|
||||
</group>
|
||||
</permissions>
|
||||
Reference in new issue
Block a user