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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue