mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Константа папки для скриптов профиля.
This commit is contained in:
parent
779ddb7b20
commit
75922449d7
3 changed files with 10 additions and 12 deletions
|
@ -70,7 +70,7 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
|||
|
||||
// Version info
|
||||
$bb_cfg['tp_version'] = '2.1.2';
|
||||
$bb_cfg['tp_release_date'] = '17-10-2014';
|
||||
$bb_cfg['tp_release_date'] = '20-10-2014';
|
||||
$bb_cfg['tp_release_state'] = 'ALPHA';
|
||||
|
||||
// Database
|
||||
|
@ -252,6 +252,7 @@ define('ATTACH_DIR', BB_PATH .'/library/attach_mod/' );
|
|||
define('CFG_DIR', BB_PATH .'/library/config/' );
|
||||
define('INC_DIR', BB_PATH .'/library/includes/' );
|
||||
define('CLASS_DIR', BB_PATH .'/library/includes/classes/');
|
||||
define('UCP_DIR', BB_PATH .'/library/includes/ucp/' );
|
||||
define('LANG_ROOT_DIR', BB_PATH .'/library/language/' );
|
||||
define('TEMPLATES_DIR', BB_PATH .'/styles/templates/' );
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ else if (IS_MOD)
|
|||
// Show users torrent-profile
|
||||
if (IS_AM || $profile_user_id || !bf($profiledata['user_opt'], 'user_opt', 'user_dls'))
|
||||
{
|
||||
require(INC_DIR .'ucp/viewtorrent.php');
|
||||
require(UCP_DIR .'viewtorrent.php');
|
||||
}
|
||||
|
||||
// Ajax bt_userdata
|
||||
|
|
|
@ -14,38 +14,35 @@ $mode = request_var('mode', '');
|
|||
switch ($mode)
|
||||
{
|
||||
case 'viewprofile':
|
||||
require(INC_DIR . 'ucp/viewprofile.php');
|
||||
require(UCP_DIR . 'viewprofile.php');
|
||||
break;
|
||||
|
||||
case 'register':
|
||||
case 'editprofile':
|
||||
if (IS_GUEST && $mode == 'editprofile') login_redirect();
|
||||
|
||||
require(INC_DIR . 'ucp/register.php');
|
||||
require(UCP_DIR . 'register.php');
|
||||
break;
|
||||
|
||||
case 'sendpassword':
|
||||
require(INC_DIR .'ucp/sendpasswd.php');
|
||||
require(UCP_DIR . 'sendpasswd.php');
|
||||
break;
|
||||
|
||||
case 'activate':
|
||||
require(INC_DIR .'ucp/activate.php');
|
||||
require(UCP_DIR . 'activate.php');
|
||||
break;
|
||||
|
||||
case 'email':
|
||||
require(INC_DIR .'ucp/email.php');
|
||||
require(UCP_DIR . 'email.php');
|
||||
break;
|
||||
|
||||
case 'bonus':
|
||||
if (IS_GUEST) login_redirect();
|
||||
|
||||
require(INC_DIR . 'ucp/bonus.php');
|
||||
require(UCP_DIR . 'bonus.php');
|
||||
break;
|
||||
|
||||
case 'watch':
|
||||
if (IS_GUEST) login_redirect();
|
||||
|
||||
require(INC_DIR . 'ucp/topic_watch.php');
|
||||
require(UCP_DIR . 'topic_watch.php');
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue