Реальная дата регистрации админа, бота, гостя P.S. Данное обновление актуально только для новых проектов, существующим трекерам можно пропустить этот коммит. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@262 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
pherum83 2011-08-28 23:38:22 +00:00
commit 80c2a829be
6 changed files with 23 additions and 15 deletions

View file

@ -39,10 +39,13 @@
mbstring.internal_encoding = UTF-8 mbstring.internal_encoding = UTF-8
magic_quotes_gpc = Off magic_quotes_gpc = Off
extension=php_mbstring.dll
extension=php_pdo.dll ************************************
extension=php_sqlite.dll ** Необходимые модули для php **
extension=php_tidy.dll ************************************
php5-tidy
php5-sqlite
************************************ ************************************
** Необходимый запуск cron.php ** ** Необходимый запуск cron.php **

View file

@ -1364,7 +1364,7 @@ CREATE TABLE IF NOT EXISTS `bb_users` (
`user_session_time` int(11) NOT NULL default '0', `user_session_time` int(11) NOT NULL default '0',
`user_lastvisit` int(11) NOT NULL default '0', `user_lastvisit` int(11) NOT NULL default '0',
`user_last_ip` char(32) NOT NULL default '', `user_last_ip` char(32) NOT NULL default '',
`user_regdate` int(11) NOT NULL default '0', `user_regdate` int(11) NOT NULL,
`user_reg_ip` char(32) NOT NULL default '', `user_reg_ip` char(32) NOT NULL default '',
`user_level` tinyint(4) NOT NULL default '0', `user_level` tinyint(4) NOT NULL default '0',
`user_posts` mediumint(8) unsigned NOT NULL default '0', `user_posts` mediumint(8) unsigned NOT NULL default '0',
@ -1403,9 +1403,9 @@ CREATE TABLE IF NOT EXISTS `bb_users` (
-- Дамп данных таблицы `bb_users` -- Дамп данных таблицы `bb_users`
-- --
INSERT INTO `bb_users` VALUES (-1, 0, 'Anonymous', 'd41d8cd98f00b204e9800998ecf8427e', 0, 0, '0', 1309421220, '0', 0, 5, '0.00', '', 0, 0, 0, 220, 0, '', 0, 0, 0, 0, '', '', '', '', '', '', '', '', '', '', 0, '', 0); INSERT INTO `bb_users` VALUES (-1, 0, 'Anonymous', 'd41d8cd98f00b204e9800998ecf8427e', 0, 0, '0', '', '0', 0, 5, '0.00', '', 0, 0, 0, 220, 0, '', 0, 0, 0, 0, '', '', '', '', '', '', '', '', '', '', 0, '', 0);
INSERT INTO `bb_users` VALUES (2, 1, 'admin', 'c3284d0f94606de1fd2af172aba15bf3', 0, 0, '0', 1309421220, '0', 1, 1, '+4.00', '', 0, 0, 0, 304, 1, '', 1, 0, 0, 0, 'admin@admin.com', '', '', '', '', '', '', '', '', '', 0, '', 0); INSERT INTO `bb_users` VALUES (2, 1, 'admin', 'c3284d0f94606de1fd2af172aba15bf3', 0, 0, '0', '', '0', 1, 1, '+4.00', '', 0, 0, 0, 304, 1, '', 1, 0, 0, 0, 'admin@admin.com', '', '', '', '', '', '', '', '', '', 0, '', 0);
INSERT INTO `bb_users` VALUES (-746, 0, 'bot', 'd41d8cd98f00b204e9800998ecf8427e', 0, 0, '0', 1309421220, '0', 0, 0, '0.00', '', 0, 0, 0, 148, 0, 'bot.gif', 1, 0, 0, 0, 'bot@bot.bot', '', '', '', '', '', '', '', '', '', 0, '', 0); INSERT INTO `bb_users` VALUES (-746, 0, 'bot', 'd41d8cd98f00b204e9800998ecf8427e', 0, 0, '0', '', '0', 0, 0, '0.00', '', 0, 0, 0, 148, 0, 'bot.gif', 1, 0, 0, 0, 'bot@bot.bot', '', '', '', '', '', '', '', '', '', 0, '', 0);
-- -------------------------------------------------------- -- --------------------------------------------------------

View file

@ -300,7 +300,6 @@ else if( isset($_GET['pane']) && $_GET['pane'] == 'right' )
{ {
$template->assign_vars(array( $template->assign_vars(array(
'USERS_ONLINE_HREF' => "index.php?pane=right&users_online=1&sid={$userdata['session_id']}", 'USERS_ONLINE_HREF' => "index.php?pane=right&users_online=1&sid={$userdata['session_id']}",
'SHOW_ONLINE_USERLIST' => $lang['SHOW_ONLINE_USERLIST'],
)); ));
} }

View file

@ -57,8 +57,8 @@ $bb_cfg['css_ver'] = 1;
// Increase number of revision after update // Increase number of revision after update
$bb_cfg['tp_version'] = '2.1 Stable'; $bb_cfg['tp_version'] = '2.1 Stable';
$bb_cfg['tp_release_state'] = 'R261'; $bb_cfg['tp_release_state'] = 'R262';
$bb_cfg['tp_release_date'] = '28-08-2011'; $bb_cfg['tp_release_date'] = '29-08-2011';
$bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger $bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger
$bb_cfg['srv_overloaded_msg'] = "Извините, в данный момент сервер перегружен\nПопробуйте повторить запрос через несколько минут"; $bb_cfg['srv_overloaded_msg'] = "Извините, в данный момент сервер перегружен\nПопробуйте повторить запрос через несколько минут";

View file

@ -544,8 +544,14 @@ $datastore->enqueue(array(
'cat_forums', 'cat_forums',
)); ));
// Дата старта вашего проэкта // Дата старта вашего проекта
if(!$bb_cfg['board_startdate']) bb_update_config(array('board_startdate' => TIMENOW)); if(!$bb_cfg['board_startdate'])
{
bb_update_config(array('board_startdate' => TIMENOW));
DB()->query("UPDATE ". BB_USERS ." SET user_regdate = ". TIMENOW ." WHERE user_id = -1");
DB()->query("UPDATE ". BB_USERS ." SET user_regdate = ". TIMENOW ." WHERE user_id = 2");
DB()->query("UPDATE ". BB_USERS ." SET user_regdate = ". TIMENOW ." WHERE user_id = -746");
}
// Cron // Cron
if ((empty($_POST) && !defined('IN_ADMIN') && !defined('IN_AJAX') && !defined('IN_SERVICE') && !file_exists(CRON_RUNNING) && ($bb_cfg['cron_enabled'] || defined('START_CRON'))) || defined('FORCE_CRON')) if ((empty($_POST) && !defined('IN_ADMIN') && !defined('IN_AJAX') && !defined('IN_SERVICE') && !file_exists(CRON_RUNNING) && ($bb_cfg['cron_enabled'] || defined('START_CRON'))) || defined('FORCE_CRON'))

View file

@ -170,7 +170,7 @@ table.forumline { margin: 0 auto; }
<!-- END guest_user_row --> <!-- END guest_user_row -->
</table> </table>
<!-- ELSE --> <!-- ELSE -->
<a href="{USERS_ONLINE_HREF}#online">{SHOW_ONLINE_USERLIST}</a> <a href="{USERS_ONLINE_HREF}#online">{L_SHOW_ONLINE_USERLIST}</a>
<!-- ENDIF --> <!-- ENDIF -->
<!--========================================================================--> <!--========================================================================-->