mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
r533
Море мелких исправлений и недоработок, найденных анализатором кода. Продолжение. git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@533 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
9b74caa6d0
commit
cf2f63e533
11 changed files with 57 additions and 49 deletions
|
@ -1,10 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (!defined('IN_FORUM'))
|
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||||
{
|
|
||||||
die('Hacking attempt');
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
require(BB_ROOT .'attach_mod/includes/functions_includes.php');
|
require(BB_ROOT .'attach_mod/includes/functions_includes.php');
|
||||||
require(BB_ROOT .'attach_mod/includes/functions_attach.php');
|
require(BB_ROOT .'attach_mod/includes/functions_attach.php');
|
||||||
|
@ -20,7 +16,6 @@ if (defined('ATTACH_INSTALL'))
|
||||||
/**
|
/**
|
||||||
* wrapper function for determining the correct language directory
|
* wrapper function for determining the correct language directory
|
||||||
*/
|
*/
|
||||||
/** @noinspection PhpInconsistentReturnPointsInspection */
|
|
||||||
function attach_mod_get_lang($language_file)
|
function attach_mod_get_lang($language_file)
|
||||||
{
|
{
|
||||||
global $attach_config, $bb_cfg;
|
global $attach_config, $bb_cfg;
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ( !defined('IN_FORUM') )
|
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||||
{
|
|
||||||
die('Hacking attempt');
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$allowed_extensions = array();
|
$allowed_extensions = array();
|
||||||
$display_categories = array();
|
$display_categories = array();
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ( !defined('IN_FORUM') )
|
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||||
{
|
|
||||||
die('Hacking attempt');
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$imagick = '';
|
$imagick = '';
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ( !defined('IN_FORUM') )
|
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||||
{
|
|
||||||
die('Hacking attempt');
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
define('FILENAME_PREFIX', false);
|
define('FILENAME_PREFIX', false);
|
||||||
define('FILENAME_PREFIX_LENGTH', 6);
|
define('FILENAME_PREFIX_LENGTH', 6);
|
||||||
|
|
|
@ -1,5 +1,51 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database
|
||||||
|
* Cache
|
||||||
|
- Tracker Cache
|
||||||
|
- Forum Cache
|
||||||
|
- Session Cache
|
||||||
|
- Datastore
|
||||||
|
* Tracker
|
||||||
|
* Torrents
|
||||||
|
- Ratio limits
|
||||||
|
- Seeding torrents limit
|
||||||
|
- DL-Status (days to keep)
|
||||||
|
- Tor-Stats (days to keep)
|
||||||
|
- Tor-Help
|
||||||
|
* Path
|
||||||
|
* Language
|
||||||
|
* Templates
|
||||||
|
* Cookie
|
||||||
|
* Server
|
||||||
|
- Server load
|
||||||
|
- Backup
|
||||||
|
- GZip
|
||||||
|
* Sessions
|
||||||
|
* Registration
|
||||||
|
* Email
|
||||||
|
* AJAX
|
||||||
|
* Debug
|
||||||
|
* Special users (dbg_users, unlimited_users, super_admins)
|
||||||
|
* LOG
|
||||||
|
* Error reporting
|
||||||
|
|
||||||
|
* Subforums
|
||||||
|
* Forums
|
||||||
|
* Topics
|
||||||
|
* Posts
|
||||||
|
* Search
|
||||||
|
* Actions log
|
||||||
|
* Users
|
||||||
|
* GroupCP
|
||||||
|
|
||||||
|
* Ads
|
||||||
|
* Misc
|
||||||
|
* Captcha
|
||||||
|
|
||||||
|
**/
|
||||||
|
|
||||||
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||||||
|
|
||||||
$bb_cfg = $tr_cfg = $page_cfg = array();
|
$bb_cfg = $tr_cfg = $page_cfg = array();
|
||||||
|
@ -10,8 +56,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
||||||
|
|
||||||
// Increase number of revision after update
|
// Increase number of revision after update
|
||||||
$bb_cfg['tp_version'] = '2.5 (unstable)';
|
$bb_cfg['tp_version'] = '2.5 (unstable)';
|
||||||
$bb_cfg['tp_release_date'] = '02-08-2013';
|
$bb_cfg['tp_release_date'] = '03-08-2013';
|
||||||
$bb_cfg['tp_release_state'] = 'R532';
|
$bb_cfg['tp_release_state'] = 'R533';
|
||||||
|
|
||||||
// Database
|
// Database
|
||||||
$charset = 'utf8';
|
$charset = 'utf8';
|
||||||
|
|
|
@ -36,7 +36,6 @@ function showSource ($file, $line, $prev = 10, $next = 10, $add_view_full_link =
|
||||||
if (!(file_exists($file) && is_file($file)))
|
if (!(file_exists($file) && is_file($file)))
|
||||||
{
|
{
|
||||||
return trigger_error("showSource() failed, file does not exist `$file`", E_USER_ERROR);
|
return trigger_error("showSource() failed, file does not exist `$file`", E_USER_ERROR);
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ( !defined('IN_FORUM') )
|
if (!defined('IN_FORUM')) die('Hacking attempt');
|
||||||
{
|
|
||||||
die('Hacking attempt');
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (empty($_GET['u']) || empty($_GET['act_key']))
|
if (empty($_GET['u']) || empty($_GET['act_key']))
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ( !defined('IN_FORUM') )
|
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||||
{
|
|
||||||
die("Hacking attempt");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
require(BB_ROOT .'attach_mod/attachment_mod.php');
|
require(BB_ROOT .'attach_mod/attachment_mod.php');
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ( !defined('IN_FORUM') )
|
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||||
{
|
|
||||||
die('Hacking attempt');
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
function check_image_type(&$type, &$errors)
|
function check_image_type(&$type, &$errors)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ( !defined('IN_FORUM') )
|
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||||
{
|
|
||||||
die("Hacking attempt");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Is send through board enabled? No, return to index
|
// Is send through board enabled? No, return to index
|
||||||
if (!$bb_cfg['board_email_form'])
|
if (!$bb_cfg['board_email_form'])
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ( !defined('IN_FORUM') )
|
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||||
{
|
|
||||||
die('Hacking attempt');
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($bb_cfg['emailer_disabled']) bb_die($lang['EMAILER_DISABLED']);
|
if ($bb_cfg['emailer_disabled']) bb_die($lang['EMAILER_DISABLED']);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue