mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -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
|
||||
|
||||
if (!defined('IN_FORUM'))
|
||||
{
|
||||
die('Hacking attempt');
|
||||
exit;
|
||||
}
|
||||
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||
|
||||
require(BB_ROOT .'attach_mod/includes/functions_includes.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
|
||||
*/
|
||||
/** @noinspection PhpInconsistentReturnPointsInspection */
|
||||
function attach_mod_get_lang($language_file)
|
||||
{
|
||||
global $attach_config, $bb_cfg;
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
<?php
|
||||
|
||||
if ( !defined('IN_FORUM') )
|
||||
{
|
||||
die('Hacking attempt');
|
||||
exit;
|
||||
}
|
||||
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||
|
||||
$allowed_extensions = array();
|
||||
$display_categories = array();
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
<?php
|
||||
|
||||
if ( !defined('IN_FORUM') )
|
||||
{
|
||||
die('Hacking attempt');
|
||||
exit;
|
||||
}
|
||||
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||
|
||||
$imagick = '';
|
||||
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
<?php
|
||||
|
||||
if ( !defined('IN_FORUM') )
|
||||
{
|
||||
die('Hacking attempt');
|
||||
exit;
|
||||
}
|
||||
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||
|
||||
define('FILENAME_PREFIX', false);
|
||||
define('FILENAME_PREFIX_LENGTH', 6);
|
||||
|
|
|
@ -1,5 +1,51 @@
|
|||
<?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__));
|
||||
|
||||
$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
|
||||
$bb_cfg['tp_version'] = '2.5 (unstable)';
|
||||
$bb_cfg['tp_release_date'] = '02-08-2013';
|
||||
$bb_cfg['tp_release_state'] = 'R532';
|
||||
$bb_cfg['tp_release_date'] = '03-08-2013';
|
||||
$bb_cfg['tp_release_state'] = 'R533';
|
||||
|
||||
// Database
|
||||
$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)))
|
||||
{
|
||||
return trigger_error("showSource() failed, file does not exist `$file`", E_USER_ERROR);
|
||||
return false;
|
||||
}
|
||||
ob_start();
|
||||
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
<?php
|
||||
|
||||
if ( !defined('IN_FORUM') )
|
||||
{
|
||||
die('Hacking attempt');
|
||||
exit;
|
||||
}
|
||||
if (!defined('IN_FORUM')) die('Hacking attempt');
|
||||
|
||||
if (empty($_GET['u']) || empty($_GET['act_key']))
|
||||
{
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
<?php
|
||||
|
||||
if ( !defined('IN_FORUM') )
|
||||
{
|
||||
die("Hacking attempt");
|
||||
exit;
|
||||
}
|
||||
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||
|
||||
require(BB_ROOT .'attach_mod/attachment_mod.php');
|
||||
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
<?php
|
||||
|
||||
if ( !defined('IN_FORUM') )
|
||||
{
|
||||
die('Hacking attempt');
|
||||
exit;
|
||||
}
|
||||
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||
|
||||
function check_image_type(&$type, &$errors)
|
||||
{
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
<?php
|
||||
|
||||
if ( !defined('IN_FORUM') )
|
||||
{
|
||||
die("Hacking attempt");
|
||||
exit;
|
||||
}
|
||||
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||
|
||||
// Is send through board enabled? No, return to index
|
||||
if (!$bb_cfg['board_email_form'])
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
<?php
|
||||
|
||||
if ( !defined('IN_FORUM') )
|
||||
{
|
||||
die('Hacking attempt');
|
||||
exit;
|
||||
}
|
||||
if (!defined('IN_FORUM')) die("Hacking attempt");
|
||||
|
||||
if ($bb_cfg['emailer_disabled']) bb_die($lang['EMAILER_DISABLED']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue