Skip to content

Commit

Permalink
hits and referers moved to plugins (not tested yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
esclkm committed Oct 17, 2010
1 parent 0374e9c commit a8d05b2
Show file tree
Hide file tree
Showing 53 changed files with 642 additions and 477 deletions.
2 changes: 0 additions & 2 deletions datas/config-sample.php
Expand Up @@ -161,8 +161,6 @@
$db_plugins = $db_x.'plugins';
$db_rated = $db_x.'rated';
$db_ratings = $db_x.'ratings';
$db_referers = $db_x.'referers';
$db_stats = $db_x.'stats';
$db_structure = $db_x.'structure';
$db_updates = $db_x.'updates';
$db_users = $db_x.'users';
Expand Down
2 changes: 0 additions & 2 deletions index.php
Expand Up @@ -147,8 +147,6 @@
$out['subtitle'] = empty($out['subtitle']) ? $L['plu_title'] : $out['subtitle'];
$sys['sublocation'] = $out['subtitle'];

cot_online_update();

if ($ext_display_header)
{
require_once $cfg['system_dir'] . '/header.php';
Expand Down
28 changes: 0 additions & 28 deletions lang/en/admin.en.lang.php
Expand Up @@ -23,9 +23,6 @@
* Home Section
*/

$L['home_hitsmonth'] = 'Hits for the past 15 days';
$L['home_pastdays'] = 'Activity for the past 7 days';

$L['home_newusers'] = 'New members';
$L['home_newpages'] = 'New pages';
$L['home_newtopics'] = 'New topics';
Expand Down Expand Up @@ -161,11 +158,7 @@
$L['cfg_cache_forums'] = array('Page cache in forums', 'Caches entire pages output for guests'); // New in 0.7.0
$L['cfg_cache_index'] = array('Page cache on index', 'Index will be static for all guests'); // New in 0.7.0
$L['cfg_cache_page'] = array('Page cache in page and list', 'Caches entire pages for guests'); // New in 0.7.0
$L['cfg_disablehitstats'] = array('Disable hit statistics', 'Referers and hits per day');
$L['cfg_disableactivitystats'] = array('Do not display statistics of activity', 'Activity for the last 7 days<br />Displayed on the home page administration panel');
$L['cfg_disabledbstats'] = array('Do not display database statistics', 'Displayed on the home page administration panel');
$L['cfg_gzip'] = array('Gzip', 'Gzip compression of the HTML output');
$L['cfg_hit_percision'] = array('Optimized hit counter precision', ''); // New in 0.7.0
$L['cfg_shared_drv'] = array('Shared memory cache driver', '(go to Other - Cache)'); // New in 0.7.0

/**
Expand Down Expand Up @@ -465,26 +458,6 @@
$L['alreadyupdatednewentry'] = 'Entry updated'; //N-0.0.2
$L['alreadydeletednewentry'] = 'Entry deleted'; //N-0.0.2

/**
* Other Section
* Hits Subsection
*/

$L['adm_byyear'] = 'By year';
$L['adm_bymonth'] = 'By month';
$L['adm_byweek'] = 'By week';

$L['adm_ref_lowhits'] = 'Purge entries where hits are lower than 5';
$L['adm_maxhits'] = 'Maximum hitcount was reached %1$s, %2$s pages displayed this day.';

/**
* Other Section
* Referers Subsection
*/

$L['adm_ref_prune'] = 'Cleaned';
$L['adm_ref_prunelowhits'] = 'Referers with the number of visitors is less 5 successfully removed';

/**
* Other Section
* Log Subsection
Expand All @@ -499,7 +472,6 @@
$L['adm_checkthemes'] = 'Check if all files are present in themes';
$L['adm_checktheme'] = 'Check TPL files for the theme';
$L['adm_checkingtheme'] = 'Checking the theme...';
$L['adm_hits'] = 'Hits';
$L['adm_check_ok'] = 'Ok';
$L['adm_check_missing'] = 'Missing';

Expand Down
4 changes: 1 addition & 3 deletions lang/en/main.en.lang.php
Expand Up @@ -121,7 +121,7 @@
$L['Hi'] = 'Hi';
$L['Hidden'] = 'Hidden';
$L['Hide'] = 'Hide';
$L['Hits'] = 'Hits';
$L['refes'] = 'Hits';
$L['Home'] = 'Home';
$L['Hook'] = 'Hook';
$L['Hooks'] = 'Hooks';
Expand Down Expand Up @@ -245,8 +245,6 @@
$L['Reason'] = 'Reason';
$L['Recipient'] = 'Recipient'; // New in 0.1.0
$L['Recipients'] = 'Recipients'; // New in 0.1.0
$L['Referer'] = 'Referer';
$L['Referers'] = 'Referers';
$L['Refresh'] = 'Refresh';
$L['Register'] = 'Register';
$L['Registered'] = 'Registered';
Expand Down
29 changes: 0 additions & 29 deletions lang/ru/admin.ru.lang.php
Expand Up @@ -23,9 +23,6 @@
* Home Section
*/

$L['home_hitsmonth'] = 'Хиты за последние 15 дней';
$L['home_pastdays'] = 'Активность за последние 7 дней';

$L['home_newusers'] = 'Новые пользователи';
$L['home_newpages'] = 'Новые страницы';
$L['home_newtopics'] = 'Новые темы';
Expand Down Expand Up @@ -161,11 +158,7 @@
$L['cfg_cache_forums'] = array('Страничный кеш в форумах', 'Кеширует страницы целиком для гостей'); // New in 0.7.0
$L['cfg_cache_index'] = array('Страничный кеш на главной', 'Главная страница будет статичной для всех гостей'); // New in 0.7.0
$L['cfg_cache_page'] = array('Страничный кеш в page и list', 'Кеширует страницы целиком для гостей'); // New in 0.7.0
$L['cfg_disablehitstats'] = array('Отключить статистику', 'Рефереры и хиты за день');
$L['cfg_disableactivitystats'] = array('Не отображать статистику активности', 'Активность за последние 7 дней<br />Отображается на главной странице управления сайтом');
$L['cfg_disabledbstats'] = array('Не отображать статистику базы данных', 'Отображается на главной странице управления сайтом');
$L['cfg_gzip'] = array('Gzip', 'Gzip-сжатие для исходящего HTML-кода');
$L['cfg_hit_percision'] = array('Точность оптимизированного счётчика просмотров', ''); // New in 0.7.0
$L['cfg_shared_drv'] = array('Драйвер кеша в ОЗУ', '(См. Модули - Внутренний кеш)'); // New in 0.7.0

/**
Expand Down Expand Up @@ -464,27 +457,6 @@
$L['alreadyaddnewentry'] = 'Новая запись добавлена'; // New in 0.0.2
$L['alreadyupdatednewentry'] = 'Запись обновлена'; // New in 0.0.2
$L['alreadydeletednewentry'] = 'Запись удалена'; // New in 0.0.2

/**
* Other Section
* Hits Subsection
*/

$L['adm_byyear'] = 'По годам';
$L['adm_bymonth'] = 'По месяцам';
$L['adm_byweek'] = 'По неделям';

$L['adm_ref_lowhits'] = 'Удалить записи с количеством хитов менее 5';
$L['adm_maxhits'] = 'Максимальное количество хитов (%2$s) зафиксировано %1$s';

/**
* Other Section
* Referers Subsection
*/

$L['adm_ref_prune'] = 'Очищено';
$L['adm_ref_prunelowhits'] = 'Рефералы с количеством посетителей менее 5 удалены';

/**
* Other Section
* Log Subsection
Expand All @@ -499,7 +471,6 @@
$L['adm_checkthemes'] = 'Проверить наличие всех файлов в скине';
$L['adm_checkskin'] = 'Проверить TPL-файлы скина';
$L['adm_checkingskin'] = 'Проверяю скин...';
$L['adm_hits'] = 'Хиты';
$L['adm_check_ok'] = 'Ok';
$L['adm_check_missing'] = 'Отсутствует';

Expand Down
2 changes: 0 additions & 2 deletions lang/ru/main.ru.lang.php
Expand Up @@ -245,8 +245,6 @@
$L['Reason'] = 'Причина';
$L['Recipient'] = 'Получатель'; // New in N-0.1.0
$L['Recipients'] = 'Получатели'; // New in N-0.1.0
$L['Referer'] = 'Реферал';
$L['Referers'] = 'Рефералы';
$L['Refresh'] = 'Обновить';
$L['Register'] = 'Зарегистрироваться';
$L['Registered'] = 'Дата регистрации';
Expand Down
2 changes: 0 additions & 2 deletions modules/forums/inc/forums.editpost.php
Expand Up @@ -196,8 +196,6 @@
$out['subtitle'] = cot_title('title_forum_editpost', $title_params);
$out['head'] .= $R['code_noindex'];

cot_online_update();

/* === Hook === */
foreach (cot_getextplugins('forums.editpost.main') as $pl)
{
Expand Down
2 changes: 0 additions & 2 deletions modules/forums/inc/forums.newtopic.php
Expand Up @@ -203,8 +203,6 @@
$out['subtitle'] = cot_title('title_forum_newtopic', $title_params);
$out['head'] .= $R['code_noindex'];

cot_online_update();

/* === Hook === */
foreach (cot_getextplugins('forums.newtopic.main') as $pl)
{
Expand Down
1 change: 0 additions & 1 deletion modules/forums/inc/forums.posts.php
Expand Up @@ -140,7 +140,6 @@
}

$sys['sublocation'] = $fs_title;
cot_online_update();

$cat = $cot_forums_str[$s];

Expand Down
2 changes: 0 additions & 2 deletions modules/forums/inc/forums.sections.php
Expand Up @@ -29,8 +29,6 @@
$ce = explode('_', $s);
$sys['sublocation'] = $L['Home'];

cot_online_update();

/* === Hook === */
foreach (cot_getextplugins('forums.sections.first') as $pl)
{
Expand Down
1 change: 0 additions & 1 deletion modules/forums/inc/forums.topics.php
Expand Up @@ -118,7 +118,6 @@ function cursort($trigger, $way)
/* ===== */

$sys['sublocation'] = $fs_title;
cot_online_update();

$cat = $cot_forums_str[$fs_id];

Expand Down
2 changes: 0 additions & 2 deletions modules/index/index.php
Expand Up @@ -28,8 +28,6 @@
}
/* ===== */

cot_online_update();

list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = cot_auth('index', 'a');

/* === Hook === */
Expand Down
1 change: 0 additions & 1 deletion modules/page/inc/page.add.php
Expand Up @@ -152,7 +152,6 @@
$out['subtitle'] = cot_title('title_page', $title_params);
$out['head'] .= $R['code_noindex'];
$sys['sublocation'] = $cot_cat[$c]['title'];
cot_online_update();

/* === Hook === */
foreach (cot_getextplugins('page.add.main') as $pl)
Expand Down
1 change: 0 additions & 1 deletion modules/page/inc/page.edit.php
Expand Up @@ -208,7 +208,6 @@
$out['subtitle'] = cot_title('title_page', $title_params);
$out['head'] .= $R['code_noindex'];
$sys['sublocation'] = $cot_cat[$c]['title'];
cot_online_update();

/* === Hook === */
foreach (cot_getextplugins('page.edit.main') as $pl)
Expand Down
1 change: 0 additions & 1 deletion modules/page/inc/page.list.php
Expand Up @@ -63,7 +63,6 @@
$dc = empty($dc) ? 0 : (int) $dc;

$sys['sublocation'] = $cat['title'];
cot_online_update();

$cfg['maxrowsperpage'] = ($c == 'all' || $c == 'system') ? $cfg['maxrowsperpage'] * 2 : $cfg['maxrowsperpage'];

Expand Down
1 change: 0 additions & 1 deletion modules/page/inc/page.main.php
Expand Up @@ -46,7 +46,6 @@
$cat = $cot_cat[$pag['page_cat']];

$sys['sublocation'] = $pag['page_title'];
cot_online_update();

$pag['page_begin_noformat'] = $pag['page_date'];
$pag['page_tab'] = (empty($pg)) ? 0 : $pg;
Expand Down
1 change: 0 additions & 1 deletion modules/pm/inc/pm.list.php
Expand Up @@ -112,7 +112,6 @@
$out['subtitle'] = cot_title('title_pm_main', $title_params);
$out['head'] .= $R['code_noindex'];

cot_online_update();
/* === Title === */

$sql = $db->query("SELECT COUNT(*) FROM $db_pm WHERE $sqlfilter");
Expand Down
2 changes: 0 additions & 2 deletions modules/pm/inc/pm.message.php
Expand Up @@ -87,8 +87,6 @@
$out['subtitle'] = cot_title('title_pm_main', $title_params);
$out['head'] .= $R['code_noindex'];

cot_online_update();

/* === Hook === */
foreach (cot_getextplugins('pm.main') as $pl)
{
Expand Down
2 changes: 0 additions & 2 deletions modules/pm/inc/pm.send.php
Expand Up @@ -243,8 +243,6 @@
$out['subtitle'] = cot_title('title_pm_send', $title_params);
$out['head'] .= $R['code_noindex'];

cot_online_update();

/* === Hook === */
foreach (cot_getextplugins('pm.send.main') as $pl)
{
Expand Down
2 changes: 0 additions & 2 deletions modules/polls/polls.php
Expand Up @@ -68,8 +68,6 @@

$out['subtitle'] = $L['Polls'];

cot_online_update();

/* === Hook === */
foreach (cot_getextplugins('polls.main') as $pl)
{
Expand Down
2 changes: 0 additions & 2 deletions modules/view/view.php
Expand Up @@ -97,8 +97,6 @@
}
}

cot_online_update();

require_once $cfg['system_dir'].'/header.php';
$t = new XTemplate(cot_skinfile('plugin'));

Expand Down

0 comments on commit a8d05b2

Please sign in to comment.