From 9a831dad9eac062de56128b84baf435b786d9914 Mon Sep 17 00:00:00 2001 From: glix08 Date: Wed, 27 Jul 2011 06:34:31 +0000 Subject: [PATCH] r165 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Сохранили основной файл в неверной кодировке. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@165 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293 --- upload/common.php | 28 ++++++++++++++-------------- upload/config.php | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/upload/common.php b/upload/common.php index c5ba0ee11..ce9babf43 100644 --- a/upload/common.php +++ b/upload/common.php @@ -65,7 +65,7 @@ class DBS } } - // / $srv_name + // получение/инициализация класса для сервера $srv_name function get_db_obj ($srv_name_or_alias = 'db1') { $srv_name = $this->get_srv_name($srv_name_or_alias); @@ -78,7 +78,7 @@ class DBS return $this->srv[$srv_name]; } - // + // определение имени сервера function get_srv_name ($name) { if (isset($this->alias[$name])) @@ -114,9 +114,9 @@ define('PEERS_LIST_EXPIRE', round($bb_cfg['announce_interval'] * 0.7)); // sec class CACHES { - var $cfg = array(); // - var $obj = array(); // - - var $ref = array(); // $obj (_ => _) + var $cfg = array(); // конфиг + var $obj = array(); // кеш-объекты + var $ref = array(); // ссылки на $obj (имя_кеша => кеш_объект) function CACHES ($cfg) { @@ -439,8 +439,8 @@ class sqlite_common extends cache_dbg_common 'pconnect' => true, 'con_required' => true, 'log_name' => 'SQLite', - 'shard_type' => 'none', # none, string, int ( ) - 'shard_val' => 0, # string - . , int - ( ) + 'shard_type' => 'none', # none, string, int (тип перевичного ключа для шардинга) + 'shard_val' => 0, # для string - кол. начальных символов, для int - делитель (будет использован остаток от деления) ); var $engine = 'SQLite DB'; var $dbh = null; @@ -503,7 +503,7 @@ class sqlite_common extends cache_dbg_common { $shard_val = $key % $this->cfg['shard_val']; } - // + // все запросы должны быть к одному и тому же шарду if ($this->shard_val !== false) { if ($shard_val != $this->shard_val) @@ -898,18 +898,18 @@ class cache_file extends cache_common class datastore_common { /** - * builder- ( INC_DIR) + * Директория с builder-скриптами (внутри INC_DIR) */ var $ds_dir = 'datastore/'; /** - * data + * Готовая к употреблению data * array('title' => data) */ var $data = array(); /** - * , get() - * $queued_items _fetch()' - * + * Список элементов, которые будут извлечены из хранилища при первом же запросе get() + * до этого момента они ставятся в очередь $queued_items для дальнейшего извлечения _fetch()'ем + * всех элементов одним запросом * array('title1', 'title2'...) */ var $queued_items = array(); @@ -942,7 +942,7 @@ class datastore_common { foreach ((array) $items as $item) { - // + // игнор уже поставленного в очередь либо уже извлеченного if (!in_array($item, $this->queued_items) && !isset($this->data[$item])) { $this->queued_items[] = $item; diff --git a/upload/config.php b/upload/config.php index 98040c93f..a5e5a5804 100644 --- a/upload/config.php +++ b/upload/config.php @@ -57,7 +57,7 @@ $bb_cfg['css_ver'] = 1; // Increase number of revision after update $bb_cfg['tp_version'] = '2.0.2'; -$bb_cfg['tp_release_state'] = 'TP II r164'; +$bb_cfg['tp_release_state'] = 'TP II r165'; $bb_cfg['tp_release_date'] = '27-07-2011'; $bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger