mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Minor fixes (#98)
This commit is contained in:
parent
ac15a638ba
commit
d95e009501
@ -29,7 +29,7 @@ $loader->register();
|
||||
use Zend\Json;
|
||||
|
||||
$server_protocol = ($bb_cfg['cookie_secure']) ? 'https://' : 'http://';
|
||||
$server_port = (in_array($bb_cfg['server_port'], array(80, 443))) ? '' : ':' . $bb_cfg['server_port'];
|
||||
$server_port = (in_array((int)$bb_cfg['server_port'], array(80, 443), true)) ? '' : ':' . $bb_cfg['server_port'];
|
||||
define('FORUM_PATH', $bb_cfg['script_path']);
|
||||
define('FULL_URL', $server_protocol . $bb_cfg['server_name'] . $server_port . $bb_cfg['script_path']);
|
||||
unset($server_protocol, $server_port);
|
||||
|
@ -42,7 +42,6 @@ if ($torrent['poster_id'] == $userdata['user_id'] && !IS_AM)
|
||||
{
|
||||
if ($type == 'del_torrent' || $type == 'reg' || $type == 'unreg')
|
||||
{
|
||||
true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -270,6 +270,7 @@ define('TEMPLATES_DIR', BB_PATH .'/styles/templates/' );
|
||||
|
||||
// URL's
|
||||
$bb_cfg['ajax_url'] = 'ajax.php'; # "http://{$_SERVER['SERVER_NAME']}/ajax.php"
|
||||
$bb_cfg['dl_url'] = 'dl.php?id='; # "http://{$domain_name}/dl.php?id="
|
||||
$bb_cfg['login_url'] = 'login.php'; # "http://{$domain_name}/login.php"
|
||||
$bb_cfg['posting_url'] = 'posting.php'; # "http://{$domain_name}/posting.php"
|
||||
$bb_cfg['pm_url'] = 'privmsg.php'; # "http://{$domain_name}/privmsg.php"
|
||||
|
@ -315,7 +315,7 @@ define('PAGE_HEADER', INC_DIR .'page_header.php');
|
||||
define('PAGE_FOOTER', INC_DIR .'page_footer.php');
|
||||
|
||||
define('CAT_URL', 'index.php?c=');
|
||||
define('DOWNLOAD_URL', 'dl.php?id=');
|
||||
define('DOWNLOAD_URL', $bb_cfg['dl_url']);
|
||||
define('FORUM_URL', 'viewforum.php?f=');
|
||||
define('GROUP_URL', 'group.php?g=');
|
||||
define('LOGIN_URL', $bb_cfg['login_url']);
|
||||
|
Loading…
Reference in New Issue
Block a user