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
+4 -1
View File
@@ -2,8 +2,11 @@
/vendor /vendor
/.idea /.idea
/.vagrant /.vagrant
/.settings
/attachments
/bitbucket
/subs
npm-debug.log npm-debug.log
.env .env
/.settings
.buildpath .buildpath
.project .project
+21
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"
}
}
Generated
+672
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"
}
+1 -1
View File
@@ -7,7 +7,7 @@ define("NEXUSWIKIURL","http://www.nexusphp.com/wiki");
define("VERSION","Powered by <a href=\"aboutnexus.php\">".PROJECTNAME."</a>"); define("VERSION","Powered by <a href=\"aboutnexus.php\">".PROJECTNAME."</a>");
define("THISTRACKER","General"); define("THISTRACKER","General");
$showversion = " - Powered by ".PROJECTNAME; $showversion = " - Powered by ".PROJECTNAME;
$rootpath=realpath(dirname(__FILE__) . '/..'); $rootpath= dirname(__DIR__);
set_include_path(get_include_path() . PATH_SEPARATOR . $rootpath); set_include_path(get_include_path() . PATH_SEPARATOR . $rootpath);
$rootpath .= "/"; $rootpath .= "/";
require $rootpath . 'include/functions.php'; require $rootpath . 'include/functions.php';
+1 -1
View File
@@ -2,7 +2,7 @@
define('NEXUS_START', microtime(true)); define('NEXUS_START', microtime(true));
# IMPORTANT: Do not edit below unless you know what you are doing! # IMPORTANT: Do not edit below unless you know what you are doing!
define('IN_TRACKER', true); define('IN_TRACKER', true);
$rootpath=realpath(dirname(__FILE__) . '/..')."/"; $rootpath= dirname(__DIR__) . '/';
require $rootpath . 'include/functions_announce.php'; require $rootpath . 'include/functions_announce.php';
require $rootpath . 'include/globalfunctions.php'; require $rootpath . 'include/globalfunctions.php';
+2
View File
@@ -41,3 +41,5 @@ define ("UC_SYSOP",15);
define ("UC_STAFFLEADER",16); define ("UC_STAFFLEADER",16);
ignore_user_abort(1); ignore_user_abort(1);
@set_time_limit(60); @set_time_limit(60);
require dirname(__DIR__) . '/vendor/autoload.php';
+31
View File
@@ -1390,6 +1390,7 @@ function sent_mail($to,$fromname,$fromemail,$subject,$body,$type = "confirmation
ini_restore(sendmail_from); ini_restore(sendmail_from);
} }
elseif ($smtptype == 'external') { elseif ($smtptype == 'external') {
/*
require_once ($rootpath . 'include/smtp/smtp.lib.php'); require_once ($rootpath . 'include/smtp/smtp.lib.php');
$mail = new smtp($hdr_encoding,'eYou'); $mail = new smtp($hdr_encoding,'eYou');
$mail->debug(true); $mail->debug(true);
@@ -1411,6 +1412,36 @@ function sent_mail($to,$fromname,$fromemail,$subject,$body,$type = "confirmation
$mail->body($body); $mail->body($body);
$mail->send() or stderr($lang_functions['std_error'], $lang_functions['text_unable_to_send_mail']); $mail->send() or stderr($lang_functions['std_error'], $lang_functions['text_unable_to_send_mail']);
$mail->close(); $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 ($showmsg) {
if ($type == "confirmation") if ($type == "confirmation")
+17 -7
View File
@@ -228,16 +228,12 @@ function config($key, $default = null)
/** /**
* get setting for given name and prefix * get setting for given name and prefix
* *
* $name == null and $prefix == null, return all * @author xiaomlove<1939737565@qq.com>
* $name == null and $prefix != null, return with specified prefix, but the result's prefix will be stripped
*
* @author xiaomlove
* @date 2021/1/11 * @date 2021/1/11
* @param null $name * @param null $name
* @param null $prefix
* @return array|mixed|string * @return array|mixed|string
*/ */
function get_setting($name = null, $prefix = null) function get_setting($name = null)
{ {
static $settings; static $settings;
if (is_null($settings)) { if (is_null($settings)) {
@@ -343,4 +339,18 @@ function arr_get($array, $key, $default = null)
} }
return $array; 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 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
if (get_user_class() < UC_ADMINISTRATOR) if (get_user_class() < UC_ADMINISTRATOR)
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
if ($enablead_advertisement != 'yes') if ($enablead_advertisement != 'yes')
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
if (get_user_class() < UC_MODERATOR) if (get_user_class() < UC_MODERATOR)
@@ -1,7 +1,7 @@
<?php <?php
//Allow Email Address registration //Allow Email Address registration
define("ALLOWEMAILVERSION", "Allow Email"); define("ALLOWEMAILVERSION", "Allow Email");
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
if (get_user_class() < UC_SYSOP) if (get_user_class() < UC_SYSOP)
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
if (get_user_class() < UC_MODERATOR) if (get_user_class() < UC_MODERATOR)
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
if (get_user_class() < UC_SYSOP) if (get_user_class() < UC_SYSOP)
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once('include/bittorrent_announce.php'); require_once('../include/bittorrent_announce.php');
require_once('include/benc.php'); require_once('include/benc.php');
dbconn_announce(); dbconn_announce();
//1. BLOCK ACCESS WITH WEB BROWSERS AND CHEATS! //1. BLOCK ACCESS WITH WEB BROWSERS AND CHEATS!
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
if (get_user_class() < UC_SYSOP) if (get_user_class() < UC_SYSOP)
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
if (get_user_class() < UC_ADMINISTRATOR) if (get_user_class() < UC_ADMINISTRATOR)
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
parked(); parked();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
//Send some headers to keep the user's browser from caching the response. //Send some headers to keep the user's browser from caching the response.
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); 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"; $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'])){ if (!preg_match($pattern, $_SERVER['REQUEST_URI'])){
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -4,7 +4,7 @@
$top = 100; // Only look at the top xxx most likely... $top = 100; // Only look at the top xxx most likely...
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
if (get_user_class() < UC_MODERATOR) if (get_user_class() < UC_MODERATOR)
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
require(get_langfile_path("",true)); require(get_langfile_path("",true));
View File
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
header("Content-Type: text/html; charset=utf-8"); header("Content-Type: text/html; charset=utf-8");
$id = (int) $_GET["id"]; $id = (int) $_GET["id"];
$confirm_md5 = $_GET["secret"]; $confirm_md5 = $_GET["secret"];
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
failedloginscheck ("Re-send",true); failedloginscheck ("Re-send",true);
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
if (!preg_match(':^/(\d{1,10})/([\w]{32})/(.+)$:', $_SERVER["PATH_INFO"], $matches)) if (!preg_match(':^/(\d{1,10})/([\w]{32})/(.+)$:', $_SERVER["PATH_INFO"], $matches))
httperr(); httperr();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
if ($useCronTriggerCleanUp) { if ($useCronTriggerCleanUp) {
$return = autoclean(); $return = autoclean();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
if (get_user_class() < UC_ADMINISTRATOR) if (get_user_class() < UC_ADMINISTRATOR)
stderr("Error", "Permission denied."); stderr("Error", "Permission denied.");
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
require_once(get_langfile_path("",true)); require_once(get_langfile_path("",true));
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
require_once(get_langfile_path()); require_once(get_langfile_path());
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
$id = $_GET["id"]; $id = $_GET["id"];
if (!is_numeric($id) || $id < 1 || floor($id) != $id) if (!is_numeric($id) || $id < 1 || floor($id) != $id)
die("Invalid ID"); die("Invalid ID");
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
ob_start(); //Do not delete this line ob_start(); //Do not delete this line
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
if ($showextinfo['imdb'] == 'yes') if ($showextinfo['imdb'] == 'yes')
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
ob_start(); ob_start();
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
if (get_user_class() < UC_SYSOP) { if (get_user_class() < UC_SYSOP) {
View File
View File
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
if ($enabledonation != 'yes') if ($enabledonation != 'yes')
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
if (get_user_class() < UC_SYSOP) if (get_user_class() < UC_SYSOP)
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
$id = (int)$_GET["id"]; $id = (int)$_GET["id"];
if (!$id) if (!$id)
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
if (!$CURUSER) if (!$CURUSER)
{ {
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
$id = intval($_GET["id"] ?? 0); $id = intval($_GET["id"] ?? 0);
int_check($id,true); int_check($id,true);
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -20,7 +20,7 @@
+-------------------------------------------------------------------------- +--------------------------------------------------------------------------
*/ */
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
require_once(get_langfile_path("",true)); require_once(get_langfile_path("",true));
View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
stdhead("Downloaded Files"); stdhead("Downloaded Files");
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
if (get_user_class() < UC_ADMINISTRATOR) if (get_user_class() < UC_ADMINISTRATOR)
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
require_once(get_langfile_path("",true)); require_once(get_langfile_path("",true));
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
parked(); parked();
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
require_once ("imdb/imdb.class.php"); require_once ("imdb/imdb.class.php");
dbconn(); dbconn();
//Send some headers to keep the user's browser from caching the response. //Send some headers to keep the user's browser from caching the response.
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
//Send some headers to keep the user's browser from caching the response. //Send some headers to keep the user's browser from caching the response.
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
parked(); parked();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
$action = $_GET['action']; $action = $_GET['action'];
$imagehash = $_GET['imagehash']; $imagehash = $_GET['imagehash'];
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(true); dbconn(true);
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(true); loggedinorreturn(true);
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,6 +1,6 @@
<?php <?php
ob_start(); ob_start();
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
if (get_user_class() < UC_SYSOP) { if (get_user_class() < UC_SYSOP) {
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
$langid = intval($_GET['sitelanguage'] ?? 0); $langid = intval($_GET['sitelanguage'] ?? 0);
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
logoutcookie(); logoutcookie();
//logoutsession(); //logoutsession();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
if (get_user_class() < UC_SYSOP) if (get_user_class() < UC_SYSOP)
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
if (get_user_class() < UC_SYSOP) if (get_user_class() < UC_SYSOP)
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
// Connect to DB & check login // Connect to DB & check login
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
if (get_user_class() < UC_ADMINISTRATOR) { if (get_user_class() < UC_ADMINISTRATOR) {
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require(get_langfile_path("",true)); require(get_langfile_path("",true));
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
$userid = intval($_GET["userid"] ?? 0); $userid = intval($_GET["userid"] ?? 0);
$bgpic = intval($_GET["bgpic"] ?? 0); $bgpic = intval($_GET["bgpic"] ?? 0);
View File
+1 -1
View File
@@ -3,7 +3,7 @@
// vim: expandtab sw=4 ts=4 sts=4: // vim: expandtab sw=4 ts=4 sts=4:
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
loggedinorreturn(); loggedinorreturn();
/** /**
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require "include/bittorrent.php"; require "../include/bittorrent.php";
dbconn(); dbconn();
require_once(get_langfile_path()); require_once(get_langfile_path());
loggedinorreturn(); loggedinorreturn();
+1 -1
View File
@@ -1,5 +1,5 @@
<?php <?php
require_once("include/bittorrent.php"); require_once("../include/bittorrent.php");
function bark($msg) { function bark($msg) {
stdhead(); stdhead();
stdmsg("Update Has Failed !", $msg); stdmsg("Update Has Failed !", $msg);

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