mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
r311
Упрощение отвязки крона. теперь в задаче не нужно писать cd, а можно использовать прямой вызов. Например: */05 * * * * /usr/bin/php -f /путь/cron.php совместимо ТОЛЬКО php 5.3.0 и выше git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@311 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
a3a738186f
commit
fb74f7995d
2 changed files with 5 additions and 2 deletions
|
@ -53,7 +53,7 @@ $bb_cfg = $tr_cfg = $page_cfg = array();
|
||||||
|
|
||||||
// Increase number of revision after update
|
// Increase number of revision after update
|
||||||
$bb_cfg['tp_version'] = '2.2 Beta';
|
$bb_cfg['tp_version'] = '2.2 Beta';
|
||||||
$bb_cfg['tp_release_state'] = 'R310';
|
$bb_cfg['tp_release_state'] = 'R311';
|
||||||
$bb_cfg['tp_release_date'] = '12-11-2011';
|
$bb_cfg['tp_release_date'] = '12-11-2011';
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
define('START_CRON', true);
|
define('START_CRON', true);
|
||||||
|
$dirname = str_replace('\\', '/', __DIR__);
|
||||||
|
if (substr($dirname, -1) != '/') $dirname .= '/';
|
||||||
|
define('BB_ROOT', $dirname);
|
||||||
|
|
||||||
require('./common.php');
|
require(BB_ROOT. 'common.php');
|
Loading…
Add table
Add a link
Reference in a new issue