mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
r572
Переменные, необходимые для корректной обработки данных git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@572 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
22c699db99
commit
c476cf3799
17 changed files with 5 additions and 33 deletions
|
@ -55,8 +55,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
|||
|
||||
// Increase number of revision after update
|
||||
$bb_cfg['tp_version'] = '2.5 (unstable)';
|
||||
$bb_cfg['tp_release_date'] = '28-01-2014';
|
||||
$bb_cfg['tp_release_state'] = 'R571';
|
||||
$bb_cfg['tp_release_date'] = '29-01-2014';
|
||||
$bb_cfg['tp_release_state'] = 'R572';
|
||||
|
||||
// Database
|
||||
$charset = 'utf8';
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $bb_cfg;
|
||||
|
||||
$fix_errors = true;
|
||||
$debug_mode = false;
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $bb_cfg;
|
||||
|
||||
$fix_errors = true;
|
||||
$debug_mode = false;
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $bb_cfg;
|
||||
|
||||
$gc_cache = array(
|
||||
'tr_cache',
|
||||
'bb_cache',
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $bb_cfg;
|
||||
|
||||
define('BUF_DLSTATUS_TABLE', 'tmp_buf_dlstatus');
|
||||
|
||||
// Move new dl-status records to main table
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $bb_cfg;
|
||||
|
||||
$log_days_keep = (int) $bb_cfg['log_days_keep'];
|
||||
|
||||
DB()->query("
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $bb_cfg;
|
||||
|
||||
sleep(15);
|
||||
|
||||
$exec_output = array();
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $bb_cfg;
|
||||
|
||||
require_once(INC_DIR .'functions_admin.php');
|
||||
|
||||
if ($bb_cfg['prune_enable'])
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $bb_cfg;
|
||||
|
||||
$users_per_cycle = 1000;
|
||||
|
||||
require_once(INC_DIR .'functions_admin.php');
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $bb_cfg;
|
||||
|
||||
if ($bb_cfg['topic_moved_days_keep'])
|
||||
{
|
||||
$prune_time = TIMENOW - 86400*$bb_cfg['topic_moved_days_keep'];
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $bb_cfg;
|
||||
|
||||
$user_session_expire_time = TIMENOW - intval($bb_cfg['user_session_duration']);
|
||||
$admin_session_expire_time = TIMENOW - intval($bb_cfg['admin_session_duration']);
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $bb_cfg;
|
||||
|
||||
$exec_output = array();
|
||||
$exec_return_status = 0;
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $bb_cfg, $tr_cfg;
|
||||
|
||||
$releaser = DL_STATUS_RELEASER;
|
||||
|
||||
define('NEW_BB_BT_LAST_TORSTAT', 'new_bt_last_torstat');
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $bb_cfg;
|
||||
|
||||
if (empty($bb_cfg['seeder_last_seen_days_keep']) || empty($bb_cfg['seeder_never_seen_days_keep']))
|
||||
{
|
||||
return;
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||
|
||||
global $bb_cfg;
|
||||
|
||||
DB()->expect_slow_query(600);
|
||||
|
||||
//
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
function run_jobs($jobs)
|
||||
{
|
||||
global $datastore;
|
||||
global $bb_cfg, $tr_cfg, $datastore;
|
||||
|
||||
define('IN_CRON', true);
|
||||
|
||||
|
@ -17,7 +17,7 @@ function run_jobs($jobs)
|
|||
while ($row = DB()->sql_fetchrow($result))
|
||||
{
|
||||
$job = $row['cron_script'];
|
||||
$job_script = BB_ROOT . 'includes/cron/jobs/' . $job;
|
||||
$job_script = INC_DIR . 'cron/jobs/' . $job;
|
||||
require($job_script);
|
||||
}
|
||||
DB()->query("
|
||||
|
|
|
@ -198,7 +198,7 @@ function change_tor_status ($attach_id, $new_tor_status)
|
|||
// Set gold/silver type for torrent
|
||||
function change_tor_type ($attach_id, $tor_status_gold)
|
||||
{
|
||||
global $topic_id, $lang;
|
||||
global $topic_id, $lang, $bb_cfg;
|
||||
|
||||
if (!$torrent = get_torrent_info($attach_id))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue