mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Fix require file.
This commit is contained in:
parent
e9585e0789
commit
609696d0d0
15 changed files with 26 additions and 17 deletions
|
@ -30,7 +30,7 @@ if (!empty($setmodules)) {
|
|||
$module['ATTACHMENTS']['QUOTA_LIMITS'] = $filename . '?mode=quota';
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
$error = false;
|
||||
|
||||
|
|
|
@ -29,7 +29,8 @@ if (!empty($setmodules)) {
|
|||
$module['ATTACHMENTS']['EXTENSION_GROUP_MANAGE'] = $filename . '?mode=groups';
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
|
||||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
function update_attach_extensions()
|
||||
{
|
||||
|
|
|
@ -27,7 +27,8 @@ if (!empty($setmodules)) {
|
|||
$module['FORUMS']['PRUNE'] = basename(__FILE__);
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
|
||||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
$all_forums = -1;
|
||||
$pruned_total = 0;
|
||||
|
|
|
@ -27,7 +27,8 @@ if (!empty($setmodules)) {
|
|||
$module['FORUMS']['PERMISSIONS'] = basename(__FILE__);
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
|
||||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
$forum_auth_fields = array(
|
||||
'auth_view',
|
||||
|
|
|
@ -27,7 +27,8 @@ if (!empty($setmodules)) {
|
|||
$module['FORUMS']['PERMISSIONS_LIST'] = basename(__FILE__);
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
|
||||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
// View Read Post Reply Edit Delete Sticky Announce Vote Poll PostAttach Download
|
||||
$simple_auth_ary = array(
|
||||
|
|
|
@ -27,7 +27,8 @@ if (!empty($setmodules)) {
|
|||
$module['USERS']['ACTIONS_LOG'] = basename(__FILE__);
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
|
||||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
$datastore->enqueue(array(
|
||||
'moderators',
|
||||
|
|
|
@ -27,7 +27,8 @@ if (!empty($setmodules)) {
|
|||
$module['MODS']['MASS_EMAIL'] = basename(__FILE__);
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
|
||||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
@set_time_limit(1200);
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ if (!empty($setmodules)) {
|
|||
$module['GENERAL']['PHP_INFO'] = basename(__FILE__);
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
|
||||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
phpinfo();
|
||||
|
|
|
@ -27,7 +27,8 @@ if (!empty($setmodules)) {
|
|||
$module['USERS']['RANKS'] = basename(__FILE__);
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
|
||||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
$_POST['special_rank'] = 1;
|
||||
$_POST['min_posts'] = -1;
|
||||
|
|
|
@ -27,7 +27,8 @@ if (!empty($setmodules)) {
|
|||
$module['GENERAL']['SMILIES'] = basename(__FILE__);
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
|
||||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
// Check to see what mode we should operate in
|
||||
if (isset($_POST['mode']) || isset($_GET['mode'])) {
|
||||
|
|
|
@ -27,7 +27,8 @@ if (!empty($setmodules)) {
|
|||
$module['USERS']['BAN_MANAGEMENT'] = basename(__FILE__);
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
|
||||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
if (isset($_POST['submit'])) {
|
||||
$user_bansql = '';
|
||||
|
|
|
@ -27,7 +27,8 @@ if (!empty($setmodules)) {
|
|||
$module['GENERAL']['WORD_CENSOR'] = basename(__FILE__);
|
||||
return;
|
||||
}
|
||||
require('./pagestart.php');
|
||||
|
||||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
if (!$bb_cfg['use_word_censor']) {
|
||||
bb_die('Word censor disabled <br /><br /> ($bb_cfg[\'use_word_censor\'] in config.php)');
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
require('./pagestart.php');
|
||||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
// Generate relevant output
|
||||
if (isset($_GET['pane']) && $_GET['pane'] == 'left') {
|
||||
|
|
|
@ -188,8 +188,7 @@ function msg_die($msg)
|
|||
}
|
||||
|
||||
// Start announcer
|
||||
define('TR_ROOT', './');
|
||||
require(TR_ROOT . 'includes/init_tr.php');
|
||||
require __DIR__ . '/includes/init_tr.php';
|
||||
|
||||
$seeder = ($left == 0) ? 1 : 0;
|
||||
$stopped = ($event === 'stopped');
|
||||
|
|
|
@ -59,8 +59,7 @@ function msg_die($msg)
|
|||
die($output);
|
||||
}
|
||||
|
||||
define('TR_ROOT', './');
|
||||
require(TR_ROOT . 'includes/init_tr.php');
|
||||
require __DIR__ . '/includes/init_tr.php';
|
||||
|
||||
$info_hash_sql = rtrim(DB()->escape($info_hash), ' ');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue