Fix require file.

This commit is contained in:
Vasily Komrakov 2017-05-07 18:13:32 +03:00
commit 609696d0d0
No known key found for this signature in database
GPG key ID: 558236680C20A69A
15 changed files with 26 additions and 17 deletions

View file

@ -30,7 +30,7 @@ if (!empty($setmodules)) {
$module['ATTACHMENTS']['QUOTA_LIMITS'] = $filename . '?mode=quota';
return;
}
require('./pagestart.php');
require __DIR__ . '/pagestart.php';
$error = false;

View file

@ -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()
{

View file

@ -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;

View file

@ -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',

View file

@ -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(

View file

@ -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',

View file

@ -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);

View file

@ -27,6 +27,7 @@ if (!empty($setmodules)) {
$module['GENERAL']['PHP_INFO'] = basename(__FILE__);
return;
}
require('./pagestart.php');
require __DIR__ . '/pagestart.php';
phpinfo();

View file

@ -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;

View file

@ -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'])) {

View file

@ -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 = '';

View file

@ -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)');

View file

@ -23,7 +23,7 @@
* SOFTWARE.
*/
require('./pagestart.php');
require __DIR__ . '/pagestart.php';
// Generate relevant output
if (isset($_GET['pane']) && $_GET['pane'] == 'left') {

View file

@ -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');

View file

@ -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), ' ');