mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Остатки капчи, Sphinx
Удаление папки для капч и кеша; корректная проверка на существование класса Sphinx; мусор от MySQL.
This commit is contained in:
parent
115f1c4cc6
commit
13b22fc62c
5 changed files with 4 additions and 8 deletions
|
@ -72,7 +72,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
||||||
|
|
||||||
// Version info
|
// Version info
|
||||||
$bb_cfg['tp_version'] = '2.1.6';
|
$bb_cfg['tp_version'] = '2.1.6';
|
||||||
$bb_cfg['tp_release_date'] = '14-12-2014';
|
$bb_cfg['tp_release_date'] = '20-12-2014';
|
||||||
$bb_cfg['tp_release_state'] = 'ALPHA';
|
$bb_cfg['tp_release_state'] = 'ALPHA';
|
||||||
$bb_cfg['tp_zf_version'] = '2.3.3';
|
$bb_cfg['tp_zf_version'] = '2.3.3';
|
||||||
|
|
||||||
|
@ -127,7 +127,6 @@ $bb_cfg['cache']['engines'] = array(
|
||||||
'bb_config' => array('filecache', array()),
|
'bb_config' => array('filecache', array()),
|
||||||
'tr_cache' => array('filecache', array()),
|
'tr_cache' => array('filecache', array()),
|
||||||
'session_cache' => array('filecache', array()),
|
'session_cache' => array('filecache', array()),
|
||||||
'bb_cap_sid' => array('filecache', array()),
|
|
||||||
'bb_login_err' => array('filecache', array()),
|
'bb_login_err' => array('filecache', array()),
|
||||||
'bb_poll_data' => array('filecache', array()),
|
'bb_poll_data' => array('filecache', array()),
|
||||||
);
|
);
|
||||||
|
|
|
@ -18,8 +18,7 @@ if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// PHP version of Sphinx searchd client (PHP API)
|
// PHP version of Sphinx searchd client (PHP API)
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
if(!class_exists('SphinxClient'))
|
|
||||||
{
|
|
||||||
/// known searchd commands
|
/// known searchd commands
|
||||||
define ( "SEARCHD_COMMAND_SEARCH", 0 );
|
define ( "SEARCHD_COMMAND_SEARCH", 0 );
|
||||||
define ( "SEARCHD_COMMAND_EXCERPT", 1 );
|
define ( "SEARCHD_COMMAND_EXCERPT", 1 );
|
||||||
|
@ -1648,7 +1647,7 @@ class SphinxClient extends cache_common
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
//
|
//
|
||||||
// $Id: sphinxapi.php 2055 2009-11-06 23:09:58Z shodan $
|
// $Id: sphinxapi.php 2055 2009-11-06 23:09:58Z shodan $
|
||||||
//
|
//
|
|
@ -2214,7 +2214,7 @@ function init_sphinx ()
|
||||||
|
|
||||||
if (!isset($sphinx))
|
if (!isset($sphinx))
|
||||||
{
|
{
|
||||||
require(INC_DIR .'api/sphinx.php');
|
if (!class_exists('SphinxClient')) require(INC_DIR . 'api/sphinx.php');
|
||||||
$sphinx = new SphinxClient();
|
$sphinx = new SphinxClient();
|
||||||
|
|
||||||
$sphinx->SetConnectTimeout(5);
|
$sphinx->SetConnectTimeout(5);
|
||||||
|
|
|
@ -429,8 +429,6 @@ require(INC_DIR .'sessions.php');
|
||||||
require(INC_DIR .'template.php');
|
require(INC_DIR .'template.php');
|
||||||
require(CORE_DIR .'mysql.php');
|
require(CORE_DIR .'mysql.php');
|
||||||
|
|
||||||
define('SQL_LAYER', 'mysql');
|
|
||||||
|
|
||||||
$bb_cfg = array_merge(bb_get_config(BB_CONFIG), $bb_cfg);
|
$bb_cfg = array_merge(bb_get_config(BB_CONFIG), $bb_cfg);
|
||||||
|
|
||||||
$user = new user_common();
|
$user = new user_common();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue