mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Change paths to absolute pathname
This commit is contained in:
parent
8de3cbfba5
commit
064175c67d
81 changed files with 297 additions and 303 deletions
|
@ -43,7 +43,7 @@ if (isset($_POST['bonus_id'])) {
|
|||
$btu = get_bt_userdata($user_id);
|
||||
|
||||
if (empty($btu)) {
|
||||
require(INC_DIR . 'functions_torrent.php');
|
||||
require INC_DIR . '/functions_torrent.php';
|
||||
generate_passkey($user_id, true);
|
||||
$btu = get_bt_userdata($user_id);
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ if ($row = DB()->fetch_row($sql)) {
|
|||
}
|
||||
|
||||
if (!$errors) {
|
||||
require(CLASS_DIR . 'emailer.php');
|
||||
require CLASS_DIR . '/emailer.php';
|
||||
$emailer = new emailer($bb_cfg['smtp_delivery']);
|
||||
|
||||
$emailer->from($userdata['username'] . " <{$userdata['user_email']}>");
|
||||
|
|
|
@ -50,9 +50,9 @@ $submit = !empty($_POST['submit']);
|
|||
$errors = array();
|
||||
$adm_edit = false; // редактирование админом чужого профиля
|
||||
|
||||
require(INC_DIR . 'bbcode.php');
|
||||
require(INC_DIR . 'functions_validate.php');
|
||||
require(INC_DIR . 'functions_selects.php');
|
||||
require INC_DIR . '/bbcode.php';
|
||||
require INC_DIR . '/functions_validate.php';
|
||||
require INC_DIR . '/functions_selects.php';
|
||||
|
||||
$pr_data = array(); // данные редактируемого либо регистрационного профиля
|
||||
$db_data = array(); // данные для базы: регистрационные либо измененные данные юзера
|
||||
|
@ -384,7 +384,7 @@ foreach ($profile_fields as $field => $can_edit) {
|
|||
$pr_data['avatar_ext_id'] = 0;
|
||||
$db_data['avatar_ext_id'] = 0;
|
||||
} elseif (!empty($_FILES['avatar']['name']) && $bb_cfg['avatars']['up_allowed']) {
|
||||
require(INC_DIR . 'functions_upload.php');
|
||||
require INC_DIR . '/functions_upload.php';
|
||||
$upload = new upload_common();
|
||||
|
||||
if ($upload->init($bb_cfg['avatars'], $_FILES['avatar']) and $upload->store('avatar', $pr_data)) {
|
||||
|
@ -590,7 +590,7 @@ if ($submit && !$errors) {
|
|||
$email_template = 'user_welcome';
|
||||
}
|
||||
|
||||
require(CLASS_DIR . 'emailer.php');
|
||||
require CLASS_DIR . '/emailer.php';
|
||||
$emailer = new emailer($bb_cfg['smtp_delivery']);
|
||||
|
||||
$emailer->from($bb_cfg['sitename'] . " <{$bb_cfg['board_email']}>");
|
||||
|
@ -625,7 +625,7 @@ if ($submit && !$errors) {
|
|||
$pr_data['user_actkey'] = $user_actkey;
|
||||
$db_data['user_actkey'] = $user_actkey;
|
||||
|
||||
require(CLASS_DIR . 'emailer.php');
|
||||
require CLASS_DIR . '/emailer.php';
|
||||
$emailer = new emailer($bb_cfg['smtp_delivery']);
|
||||
|
||||
$emailer->from($bb_cfg['sitename'] . " <{$bb_cfg['board_email']}>");
|
||||
|
|
|
@ -63,7 +63,7 @@ if (isset($_POST['submit'])) {
|
|||
bb_die('Could not update new password information');
|
||||
}
|
||||
|
||||
require(CLASS_DIR . 'emailer.php');
|
||||
require CLASS_DIR . '/emailer.php';
|
||||
$emailer = new emailer($bb_cfg['smtp_delivery']);
|
||||
|
||||
$emailer->from($bb_cfg['sitename'] . " <{$bb_cfg['board_email']}>");
|
||||
|
|
|
@ -27,7 +27,7 @@ if (!defined('BB_ROOT')) {
|
|||
die(basename(__FILE__));
|
||||
}
|
||||
|
||||
require(INC_DIR . 'bbcode.php');
|
||||
require INC_DIR . '/bbcode.php';
|
||||
|
||||
$datastore->enqueue(array(
|
||||
'ranks',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue