mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 02:27:34 -07:00
Перенос файлов движка в корень
This commit is contained in:
parent
584f692288
commit
f94c0dd2ee
585 changed files with 14 additions and 14 deletions
|
@ -7,7 +7,7 @@ TorrentPier II - движок торрент-трекера, написанны
|
|||
|
||||
Для установки вам необходимо выполнить несколько простых шагов:
|
||||
|
||||
1. Распаковываем на сервер содержимое папки **upload**
|
||||
1. Распаковываем на сервер содержимое скачанной вами папки
|
||||
|
||||
2. Создаем базу данных, в которую при помощи phpmyadmin (или любого другого удобного инструмента) импортируем дамп, расположенный в папке **install/sql/mysql.sql**
|
||||
3. Правим файл конфигурации **library/config.php**, загруженный на сервер:
|
||||
|
|
|
@ -187,7 +187,7 @@ function msg_die ($msg)
|
|||
|
||||
// Start announcer
|
||||
define('TR_ROOT', './');
|
||||
require(TR_ROOT .'includes/init_tr.php');
|
||||
require(TR_ROOT . 'includes/init_tr.php');
|
||||
|
||||
$seeder = ($left == 0) ? 1 : 0;
|
||||
$stopped = ($event === 'stopped');
|
|
@ -33,7 +33,7 @@ function msg_die ($msg)
|
|||
}
|
||||
|
||||
define('TR_ROOT', './');
|
||||
require(TR_ROOT .'includes/init_tr.php');
|
||||
require(TR_ROOT . 'includes/init_tr.php');
|
||||
|
||||
$info_hash_sql = rtrim(DB()->escape($info_hash), ' ');
|
||||
|
|
@ -17,7 +17,7 @@ if (!defined('IN_FORUM') && !defined('IN_TRACKER')) define('IN_FORUM', true);
|
|||
header('X-Frame-Options: SAMEORIGIN');
|
||||
|
||||
// Get initial config
|
||||
require(BB_ROOT .'library/config.php');
|
||||
require(BB_ROOT . 'library/config.php');
|
||||
|
||||
$server_protocol = ($bb_cfg['cookie_secure']) ? 'https://' : 'http://';
|
||||
$server_port = ($bb_cfg['server_port'] != 80) ? ':'. $bb_cfg['server_port'] : '';
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
@ -46,7 +46,7 @@ $require = file_exists($html_dir . $info['src']) ? $html_dir . $info['src'] : $h
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||
<link rel="stylesheet" href="./styles/templates/default/css/main.css" type="text/css">
|
||||
<link rel="stylesheet" href="styles/templates/default/css/main.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<style type="text/css">
|
|
@ -59,4 +59,4 @@ unset($res, $user, $dbpasswd, $passkey, $user_id);
|
|||
|
||||
// Execute TP's announce
|
||||
chdir(TP_ROOT .'bt/');
|
||||
require ('announce.php');
|
||||
require('announce.php');
|
|
@ -3,9 +3,9 @@
|
|||
define ('IN_FORUM', true);
|
||||
define ('BB_ROOT', './');
|
||||
require (BB_ROOT .'common.php');
|
||||
require (BB_ROOT .'converter/constants.php');
|
||||
require (BB_ROOT .'converter/settings.php');
|
||||
require (BB_ROOT .'converter/functions.php');
|
||||
require(BB_ROOT . 'converter/constants.php');
|
||||
require(BB_ROOT . 'converter/settings.php');
|
||||
require(BB_ROOT . 'converter/functions.php');
|
||||
|
||||
// Start session management
|
||||
$user->session_start();
|
|
@ -4,8 +4,8 @@ define('IN_FORUM', true);
|
|||
define('BB_ROOT', './');
|
||||
require(BB_ROOT .'common.php');
|
||||
require(INC_DIR .'functions_torrent.php');
|
||||
require(BB_ROOT .'converter/settings.php');
|
||||
require(BB_ROOT .'converter/functions.php');
|
||||
require(BB_ROOT . 'converter/settings.php');
|
||||
require(BB_ROOT . 'converter/functions.php');
|
||||
|
||||
// Init userdata
|
||||
$user->session_start();
|
|
@ -4,8 +4,8 @@ define('IN_FORUM', true);
|
|||
define('BB_ROOT', './');
|
||||
require(BB_ROOT .'common.php');
|
||||
require(INC_DIR .'functions_torrent.php');
|
||||
require(BB_ROOT .'converter/settings.php');
|
||||
require(BB_ROOT .'converter/functions.php');
|
||||
require(BB_ROOT . 'converter/settings.php');
|
||||
require(BB_ROOT . 'converter/functions.php');
|
||||
|
||||
// Init userdata
|
||||
$user->session_start();
|
|
@ -128,7 +128,7 @@ http {
|
|||
#allow YOUR_IP;
|
||||
}
|
||||
# Deny folder (Sec. lvl1)
|
||||
location ~ \/(internal_data|library)\/ {
|
||||
location ~ \/(install|internal_data|library)\/ {
|
||||
deny all;
|
||||
}
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue