Change paths to absolute pathname

This commit is contained in:
Vasily Komrakov 2017-02-05 22:28:55 +03:00
commit 064175c67d
No known key found for this signature in database
GPG key ID: 558236680C20A69A
81 changed files with 297 additions and 303 deletions

View file

@ -41,7 +41,7 @@ $value = $this->request['value'] = (string)(isset($this->request['value'])) ? $t
switch ($field) {
case 'username':
require_once(INC_DIR . 'functions_validate.php');
require_once INC_DIR . '/functions_validate.php';
$value = clean_username($value);
if ($err = validate_username($value)) {
$this->ajax_die(strip_tags($err));
@ -50,7 +50,7 @@ switch ($field) {
break;
case 'user_email':
require_once(INC_DIR . 'functions_validate.php');
require_once INC_DIR . '/functions_validate.php';
$value = htmlCHR($value);
if ($err = validate_email($value)) {
$this->ajax_die($err);
@ -154,7 +154,7 @@ switch ($field) {
$this->response['new_value'] = humn_size($value, null, null, ' ');
if (!$btu = get_bt_userdata($user_id)) {
require(INC_DIR . 'functions_torrent.php');
require INC_DIR . '/functions_torrent.php';
generate_passkey($user_id, true);
$btu = get_bt_userdata($user_id);
}

View file

@ -96,7 +96,7 @@ switch ($mode) {
case 'update_user_level':
require(INC_DIR . 'functions_group.php');
require INC_DIR . '/functions_group.php';
update_user_level('all');

View file

@ -36,7 +36,7 @@ $html = '';
switch ($mode) {
case 'create':
$map->create();
if (@file_exists(SITEMAP_DIR . 'sitemap.xml')) {
if (file_exists(SITEMAP_DIR . '/sitemap.xml')) {
$html .= $lang['SITEMAP_CREATED'] . ': <b>' . bb_date(TIMENOW, $bb_cfg['post_date_format']) . '</b> ' . $lang['SITEMAP_AVAILABLE'] . ': <a href="' . make_url('sitemap.xml') . '" target="_blank">' . make_url('sitemap.xml') . '</a>';
} else {
$html .= $lang['SITEMAP_NOT_CREATED'];
@ -44,11 +44,11 @@ switch ($mode) {
break;
case 'search_update':
if (!@file_exists(SITEMAP_DIR . 'sitemap.xml')) {
if (!file_exists(SITEMAP_DIR . '/sitemap.xml')) {
$map->create();
}
$map_link = make_url(SITEMAP_DIR . 'sitemap.xml');
$map_link = make_url(SITEMAP_DIR . '/sitemap.xml');
if (strpos($map->send_url("http://google.com/webmasters/sitemaps/ping?sitemap=", $map_link), "successfully added") !== false) {
$html .= '<br />' . $lang['SITEMAP_NOTIFY_SEARCH'] . ' Google: <font style="color: green;">' . $lang['SITEMAP_SENT'] . '</font>';