add composer

This commit is contained in:
xiaomlove
2021-01-13 19:32:26 +08:00
parent 1eb5d8441e
commit 0541f2a6c0
665 changed files with 889 additions and 150 deletions

5
.gitignore vendored
View File

@@ -2,8 +2,11 @@
/vendor
/.idea
/.vagrant
/.settings
/attachments
/bitbucket
/subs
npm-debug.log
.env
/.settings
.buildpath
.project

21
composer.json Normal file
View File

@@ -0,0 +1,21 @@
{
"name": "xiaomlove/nexusphp",
"description": "A private tracker server application base on NexusPHP.",
"type": "project",
"license": "GPL-2.0-only",
"authors": [
{
"name": "xiaomlove",
"email": "1939737565@qq.com"
}
],
"autoload": {
"psr-4": {
"Nexus\\": "nexus/"
}
},
"require": {
"php": "^7.2|^8",
"swiftmailer/swiftmailer": "^6.2"
}
}

672
composer.lock generated Normal file
View File

@@ -0,0 +1,672 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "83c7b2e9855017bb047e83fa368e9e33",
"packages": [
{
"name": "doctrine/lexer",
"version": "1.2.1",
"source": {
"type": "git",
"url": "https://github.com/doctrine/lexer.git",
"reference": "e864bbf5904cb8f5bb334f99209b48018522f042"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/lexer/zipball/e864bbf5904cb8f5bb334f99209b48018522f042",
"reference": "e864bbf5904cb8f5bb334f99209b48018522f042",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": "^7.2 || ^8.0"
},
"require-dev": {
"doctrine/coding-standard": "^6.0",
"phpstan/phpstan": "^0.11.8",
"phpunit/phpunit": "^8.2"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.2.x-dev"
}
},
"autoload": {
"psr-4": {
"Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Guilherme Blanco",
"email": "guilhermeblanco@gmail.com"
},
{
"name": "Roman Borschel",
"email": "roman@code-factory.org"
},
{
"name": "Johannes Schmitt",
"email": "schmittjoh@gmail.com"
}
],
"description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.",
"homepage": "https://www.doctrine-project.org/projects/lexer.html",
"keywords": [
"annotations",
"docblock",
"lexer",
"parser",
"php"
],
"funding": [
{
"url": "https://www.doctrine-project.org/sponsorship.html",
"type": "custom"
},
{
"url": "https://www.patreon.com/phpdoctrine",
"type": "patreon"
},
{
"url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer",
"type": "tidelift"
}
],
"time": "2020-05-25T17:44:05+00:00"
},
{
"name": "egulias/email-validator",
"version": "2.1.25",
"source": {
"type": "git",
"url": "https://github.com/egulias/EmailValidator.git",
"reference": "0dbf5d78455d4d6a41d186da50adc1122ec066f4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/egulias/EmailValidator/zipball/0dbf5d78455d4d6a41d186da50adc1122ec066f4",
"reference": "0dbf5d78455d4d6a41d186da50adc1122ec066f4",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"doctrine/lexer": "^1.0.1",
"php": ">=5.5",
"symfony/polyfill-intl-idn": "^1.10"
},
"require-dev": {
"dominicsayers/isemail": "^3.0.7",
"phpunit/phpunit": "^4.8.36|^7.5.15",
"satooshi/php-coveralls": "^1.0.1"
},
"suggest": {
"ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.1.x-dev"
}
},
"autoload": {
"psr-4": {
"Egulias\\EmailValidator\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Eduardo Gulias Davis"
}
],
"description": "A library for validating emails against several RFCs",
"homepage": "https://github.com/egulias/EmailValidator",
"keywords": [
"email",
"emailvalidation",
"emailvalidator",
"validation",
"validator"
],
"funding": [
{
"url": "https://github.com/egulias",
"type": "github"
}
],
"time": "2020-12-29T14:50:06+00:00"
},
{
"name": "swiftmailer/swiftmailer",
"version": "v6.2.5",
"source": {
"type": "git",
"url": "https://github.com/swiftmailer/swiftmailer.git",
"reference": "698a6a9f54d7eb321274de3ad19863802c879fb7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/698a6a9f54d7eb321274de3ad19863802c879fb7",
"reference": "698a6a9f54d7eb321274de3ad19863802c879fb7",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"egulias/email-validator": "^2.0",
"php": ">=7.0.0",
"symfony/polyfill-iconv": "^1.0",
"symfony/polyfill-intl-idn": "^1.10",
"symfony/polyfill-mbstring": "^1.0"
},
"require-dev": {
"mockery/mockery": "^1.0",
"symfony/phpunit-bridge": "^4.4|^5.0"
},
"suggest": {
"ext-intl": "Needed to support internationalized email addresses"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "6.2-dev"
}
},
"autoload": {
"files": [
"lib/swift_required.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Chris Corbyn"
},
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
}
],
"description": "Swiftmailer, free feature-rich PHP mailer",
"homepage": "https://swiftmailer.symfony.com",
"keywords": [
"email",
"mail",
"mailer"
],
"funding": [
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/swiftmailer/swiftmailer",
"type": "tidelift"
}
],
"time": "2021-01-12T09:35:59+00:00"
},
{
"name": "symfony/polyfill-iconv",
"version": "v1.22.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-iconv.git",
"reference": "b34bfb8c4c22650ac080d2662ae3502e5f2f4ae6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/b34bfb8c4c22650ac080d2662ae3502e5f2f4ae6",
"reference": "b34bfb8c4c22650ac080d2662ae3502e5f2f4ae6",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=7.1"
},
"suggest": {
"ext-iconv": "For best performance"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
"psr-4": {
"Symfony\\Polyfill\\Iconv\\": ""
},
"files": [
"bootstrap.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill for the Iconv extension",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"iconv",
"polyfill",
"portable",
"shim"
],
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-01-07T16:49:33+00:00"
},
{
"name": "symfony/polyfill-intl-idn",
"version": "v1.22.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-idn.git",
"reference": "0eb8293dbbcd6ef6bf81404c9ce7d95bcdf34f44"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/0eb8293dbbcd6ef6bf81404c9ce7d95bcdf34f44",
"reference": "0eb8293dbbcd6ef6bf81404c9ce7d95bcdf34f44",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=7.1",
"symfony/polyfill-intl-normalizer": "^1.10",
"symfony/polyfill-php72": "^1.10"
},
"suggest": {
"ext-intl": "For best performance"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
"psr-4": {
"Symfony\\Polyfill\\Intl\\Idn\\": ""
},
"files": [
"bootstrap.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Laurent Bassin",
"email": "laurent@bassin.info"
},
{
"name": "Trevor Rowbotham",
"email": "trevor.rowbotham@pm.me"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"idn",
"intl",
"polyfill",
"portable",
"shim"
],
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-01-07T16:49:33+00:00"
},
{
"name": "symfony/polyfill-intl-normalizer",
"version": "v1.22.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
"reference": "6e971c891537eb617a00bb07a43d182a6915faba"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/6e971c891537eb617a00bb07a43d182a6915faba",
"reference": "6e971c891537eb617a00bb07a43d182a6915faba",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=7.1"
},
"suggest": {
"ext-intl": "For best performance"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
"psr-4": {
"Symfony\\Polyfill\\Intl\\Normalizer\\": ""
},
"files": [
"bootstrap.php"
],
"classmap": [
"Resources/stubs"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill for intl's Normalizer class and related functions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"intl",
"normalizer",
"polyfill",
"portable",
"shim"
],
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-01-07T17:09:11+00:00"
},
{
"name": "symfony/polyfill-mbstring",
"version": "v1.22.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "f377a3dd1fde44d37b9831d68dc8dea3ffd28e13"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/f377a3dd1fde44d37b9831d68dc8dea3ffd28e13",
"reference": "f377a3dd1fde44d37b9831d68dc8dea3ffd28e13",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=7.1"
},
"suggest": {
"ext-mbstring": "For best performance"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
"psr-4": {
"Symfony\\Polyfill\\Mbstring\\": ""
},
"files": [
"bootstrap.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill for the Mbstring extension",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"mbstring",
"polyfill",
"portable",
"shim"
],
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-01-07T16:49:33+00:00"
},
{
"name": "symfony/polyfill-php72",
"version": "v1.22.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php72.git",
"reference": "cc6e6f9b39fe8075b3dabfbaf5b5f645ae1340c9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/cc6e6f9b39fe8075b3dabfbaf5b5f645ae1340c9",
"reference": "cc6e6f9b39fe8075b3dabfbaf5b5f645ae1340c9",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=7.1"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.22-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
"psr-4": {
"Symfony\\Polyfill\\Php72\\": ""
},
"files": [
"bootstrap.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"polyfill",
"portable",
"shim"
],
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-01-07T16:49:33+00:00"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
"php": "^7.2|^8"
},
"platform-dev": [],
"plugin-api-version": "1.1.0"
}

View File

@@ -7,7 +7,7 @@ define("NEXUSWIKIURL","http://www.nexusphp.com/wiki");
define("VERSION","Powered by <a href=\"aboutnexus.php\">".PROJECTNAME."</a>");
define("THISTRACKER","General");
$showversion = " - Powered by ".PROJECTNAME;
$rootpath=realpath(dirname(__FILE__) . '/..');
$rootpath= dirname(__DIR__);
set_include_path(get_include_path() . PATH_SEPARATOR . $rootpath);
$rootpath .= "/";
require $rootpath . 'include/functions.php';

View File

@@ -2,7 +2,7 @@
define('NEXUS_START', microtime(true));
# IMPORTANT: Do not edit below unless you know what you are doing!
define('IN_TRACKER', true);
$rootpath=realpath(dirname(__FILE__) . '/..')."/";
$rootpath= dirname(__DIR__) . '/';
require $rootpath . 'include/functions_announce.php';
require $rootpath . 'include/globalfunctions.php';

View File

@@ -41,3 +41,5 @@ define ("UC_SYSOP",15);
define ("UC_STAFFLEADER",16);
ignore_user_abort(1);
@set_time_limit(60);
require dirname(__DIR__) . '/vendor/autoload.php';

View File

@@ -1390,6 +1390,7 @@ function sent_mail($to,$fromname,$fromemail,$subject,$body,$type = "confirmation
ini_restore(sendmail_from);
}
elseif ($smtptype == 'external') {
/*
require_once ($rootpath . 'include/smtp/smtp.lib.php');
$mail = new smtp($hdr_encoding,'eYou');
$mail->debug(true);
@@ -1411,6 +1412,36 @@ function sent_mail($to,$fromname,$fromemail,$subject,$body,$type = "confirmation
$mail->body($body);
$mail->send() or stderr($lang_functions['std_error'], $lang_functions['text_unable_to_send_mail']);
$mail->close();
*/
/**
* use swiftmailer instead
*
* @since 1.6
* @author xiaomlove<1939737565@qq.com>
*/
$setting = get_setting('smtp');
// Create the Transport
$transport = (new Swift_SmtpTransport('smtp.example.org', 25))
->setUsername('your username')
->setPassword('your password')
;
// Create the Mailer using your created Transport
$mailer = new Swift_Mailer($transport);
// Create a message
$message = (new Swift_Message('Wonderful Subject'))
->setFrom(['john@doe.com' => 'John Doe'])
->setTo(['receiver@domain.org', 'other@domain.org' => 'A name'])
->setBody('Here is the message itself')
;
// Send the message
$result = $mailer->send($message);
}
if ($showmsg) {
if ($type == "confirmation")

View File

@@ -228,16 +228,12 @@ function config($key, $default = null)
/**
* get setting for given name and prefix
*
* $name == null and $prefix == null, return all
* $name == null and $prefix != null, return with specified prefix, but the result's prefix will be stripped
*
* @author xiaomlove
* @author xiaomlove<1939737565@qq.com>
* @date 2021/1/11
* @param null $name
* @param null $prefix
* @return array|mixed|string
*/
function get_setting($name = null, $prefix = null)
function get_setting($name = null)
{
static $settings;
if (is_null($settings)) {
@@ -343,4 +339,18 @@ function arr_get($array, $key, $default = null)
}
return $array;
}
?>
function arr_set(&$array, $key, $value)
{
if (strpos($key, '.') === false) {
$array[$key] = $value;
}
foreach (explode('.', $key) as $segment) {
if (isset($array[$segment])) {
$array = $array[$segment];
} else {
return $default;
}
}
return $array;
}

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_ADMINISTRATOR)

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
if ($enablead_advertisement != 'yes')

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_MODERATOR)

View File

@@ -1,7 +1,7 @@
<?php
//Allow Email Address registration
define("ALLOWEMAILVERSION", "Allow Email");
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_SYSOP)

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_MODERATOR)

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_SYSOP)

View File

@@ -1,5 +1,5 @@
<?php
require_once('include/bittorrent_announce.php');
require_once('../include/bittorrent_announce.php');
require_once('include/benc.php');
dbconn_announce();
//1. BLOCK ACCESS WITH WEB BROWSERS AND CHEATS!

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_SYSOP)

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_ADMINISTRATOR)

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
parked();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
//Send some headers to keep the user's browser from caching the response.

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
$pattern = "/.*cc98bar\.php\/(nn([0,1]{1}))?(nr([0-9]+))?(ng([0-9]+))?(nb([0-9]+))?(ns([1-5]{1}))?(nx([0-9]+))?(ny([0-9]+))?(nu([0,1]{1}))?(ur([0-9]+))?(ug([0-9]+))?(ub([0-9]+))?(us([1-5]{1}))?(ux([0-9]+))?(uy([0-9]+))?(nd([0,1]{1}))?(dr([0-9]+))?(dg([0-9]+))?(db([0-9]+))?(ds([1-5]{1}))?(dx([0-9]+))?(dy([0-9]+))?(bg([0-9]+))?id([0-9]+)\.png$/i";
if (!preg_match($pattern, $_SERVER['REQUEST_URI'])){

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -4,7 +4,7 @@
$top = 100; // Only look at the top xxx most likely...
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_MODERATOR)

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
require_once(get_langfile_path());
require(get_langfile_path("",true));

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
header("Content-Type: text/html; charset=utf-8");
$id = (int) $_GET["id"];
$confirm_md5 = $_GET["secret"];

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
failedloginscheck ("Re-send",true);

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
if (!preg_match(':^/(\d{1,10})/([\w]{32})/(.+)$:', $_SERVER["PATH_INFO"], $matches))
httperr();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
if ($useCronTriggerCleanUp) {
$return = autoclean();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
if (get_user_class() < UC_ADMINISTRATOR)
stderr("Error", "Permission denied.");

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
require_once(get_langfile_path());
require_once(get_langfile_path("",true));

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
require_once(get_langfile_path());

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
$id = $_GET["id"];
if (!is_numeric($id) || $id < 1 || floor($id) != $id)
die("Invalid ID");

View File

@@ -1,6 +1,6 @@
<?php
ob_start(); //Do not delete this line
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
require_once(get_langfile_path());
if ($showextinfo['imdb'] == 'yes')

View File

@@ -1,6 +1,6 @@
<?php
ob_start();
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
if (get_user_class() < UC_SYSOP) {

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
if ($enabledonation != 'yes')

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_SYSOP)

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
$id = (int)$_GET["id"];
if (!$id)

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
if (!$CURUSER)
{

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
$id = intval($_GET["id"] ?? 0);
int_check($id,true);

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -20,7 +20,7 @@
+--------------------------------------------------------------------------
*/
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
require_once(get_langfile_path());
require_once(get_langfile_path("",true));

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
stdhead("Downloaded Files");

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_ADMINISTRATOR)

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
require_once(get_langfile_path());
require_once(get_langfile_path("",true));

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
loggedinorreturn();
parked();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
require_once ("imdb/imdb.class.php");
dbconn();
//Send some headers to keep the user's browser from caching the response.

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
//Send some headers to keep the user's browser from caching the response.

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
parked();

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
$action = $_GET['action'];
$imagehash = $_GET['imagehash'];

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn(true);
require_once(get_langfile_path());
loggedinorreturn(true);

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,6 +1,6 @@
<?php
ob_start();
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
loggedinorreturn();
if (get_user_class() < UC_SYSOP) {

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
$langid = intval($_GET['sitelanguage'] ?? 0);

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
logoutcookie();
//logoutsession();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_SYSOP)

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
if (get_user_class() < UC_SYSOP)

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
// Connect to DB & check login
dbconn();
require_once(get_langfile_path());

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
loggedinorreturn();
if (get_user_class() < UC_ADMINISTRATOR) {

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require(get_langfile_path("",true));
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
$userid = intval($_GET["userid"] ?? 0);
$bgpic = intval($_GET["bgpic"] ?? 0);

View File

@@ -3,7 +3,7 @@
// vim: expandtab sw=4 ts=4 sts=4:
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
loggedinorreturn();
/**

View File

@@ -1,5 +1,5 @@
<?php
require "include/bittorrent.php";
require "../include/bittorrent.php";
dbconn();
require_once(get_langfile_path());
loggedinorreturn();

View File

@@ -1,5 +1,5 @@
<?php
require_once("include/bittorrent.php");
require_once("../include/bittorrent.php");
function bark($msg) {
stdhead();
stdmsg("Update Has Failed !", $msg);

Some files were not shown because too many files have changed in this diff Show More