From 80c2a829beab203395cf3ee258d8853144438168 Mon Sep 17 00:00:00 2001 From: pherum83 Date: Sun, 28 Aug 2011 23:38:22 +0000 Subject: [PATCH] r262 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Реальная дата регистрации админа, бота, гостя P.S. Данное обновление актуально только для новых проектов, существующим трекерам можно пропустить этот коммит. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@262 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293 --- ReadMe.txt | 11 +++++++---- install/sql/mysql.sql | 8 ++++---- upload/admin/index.php | 1 - upload/config.php | 4 ++-- upload/includes/init_bb.php | 12 +++++++++--- upload/templates/admin/index.tpl | 2 +- 6 files changed, 23 insertions(+), 15 deletions(-) diff --git a/ReadMe.txt b/ReadMe.txt index f95001a09..a4d248427 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -39,10 +39,13 @@ mbstring.internal_encoding = UTF-8 magic_quotes_gpc = Off -extension=php_mbstring.dll -extension=php_pdo.dll -extension=php_sqlite.dll -extension=php_tidy.dll + +************************************ +** Необходимые модули для php ** +************************************ + +php5-tidy +php5-sqlite ************************************ ** Необходимый запуск cron.php ** diff --git a/install/sql/mysql.sql b/install/sql/mysql.sql index 57a795413..b0b086c0e 100644 --- a/install/sql/mysql.sql +++ b/install/sql/mysql.sql @@ -1364,7 +1364,7 @@ CREATE TABLE IF NOT EXISTS `bb_users` ( `user_session_time` int(11) NOT NULL default '0', `user_lastvisit` int(11) NOT NULL default '0', `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_level` tinyint(4) 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` -- -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 (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 (-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 (-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', '', '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', '', '0', 0, 0, '0.00', '', 0, 0, 0, 148, 0, 'bot.gif', 1, 0, 0, 0, 'bot@bot.bot', '', '', '', '', '', '', '', '', '', 0, '', 0); -- -------------------------------------------------------- diff --git a/upload/admin/index.php b/upload/admin/index.php index 8c30bac80..59940e83b 100644 --- a/upload/admin/index.php +++ b/upload/admin/index.php @@ -300,7 +300,6 @@ else if( isset($_GET['pane']) && $_GET['pane'] == 'right' ) { $template->assign_vars(array( 'USERS_ONLINE_HREF' => "index.php?pane=right&users_online=1&sid={$userdata['session_id']}", - 'SHOW_ONLINE_USERLIST' => $lang['SHOW_ONLINE_USERLIST'], )); } diff --git a/upload/config.php b/upload/config.php index 366b2c8d6..dc29275bc 100644 --- a/upload/config.php +++ b/upload/config.php @@ -57,8 +57,8 @@ $bb_cfg['css_ver'] = 1; // Increase number of revision after update $bb_cfg['tp_version'] = '2.1 Stable'; -$bb_cfg['tp_release_state'] = 'R261'; -$bb_cfg['tp_release_date'] = '28-08-2011'; +$bb_cfg['tp_release_state'] = 'R262'; +$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['srv_overloaded_msg'] = "Извините, в данный момент сервер перегружен\nПопробуйте повторить запрос через несколько минут"; diff --git a/upload/includes/init_bb.php b/upload/includes/init_bb.php index c0b7d9d44..c13b12814 100644 --- a/upload/includes/init_bb.php +++ b/upload/includes/init_bb.php @@ -543,9 +543,15 @@ $ads = new ads_common(); $datastore->enqueue(array( '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 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')) diff --git a/upload/templates/admin/index.tpl b/upload/templates/admin/index.tpl index df273e5ef..277a9ea32 100644 --- a/upload/templates/admin/index.tpl +++ b/upload/templates/admin/index.tpl @@ -170,7 +170,7 @@ table.forumline { margin: 0 auto; } -{SHOW_ONLINE_USERLIST} +{L_SHOW_ONLINE_USERLIST}