mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -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
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
|
@ -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>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue