Witam,
jak zablokować includowanie w danym pliku? System forum to phpbb3.
Chciałbym aby w tym pliku:
<?php
/**
*
* @package mChat
* @version $Id: mchat.php
* @copyright (c) 2010 RMcGirr83 ( http://www.rmcgirr83.org/ )
* @copyright (c) djs596 ( http://djs596.com/ ), (c) Stokerpiller ( http://www.phpbb3bbcodes.com/ )
* @copyright (c) By Shapoval Andrey Vladimirovich (AllCity) ~ http://allcity.net.ru/
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
**/
/**
* DO NOT CHANGE (IN_PHPBB)!
*/
if(!defined('MCHAT_INCLUDE'))
{
define('LOAD_REIMG', true);
// Custom Page code from http://www.phpbb.com/kb/article/add-a-new-custom-page-to-phpbb/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path.'common.'.$phpEx);
$mchat_include_index = false;
// Start session management.
$user->session_begin();
$auth->acl($user->data);
$user->setup();
...
}
Nie includował się ten:
<?php
/**
*
* @package phpBB3
* @version $Id: prime_links.php,v 1.3.0 2012/02/08 13:15:00 primehalo Exp $
* @copyright (c) 2007-2012 Ken F. Innes IV
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* Include only once.
*/
if (!class_exists('prime_links'))
{
// Options
define('PRIME_LINKS_ENABLE', true); // Enable this MOD?
define('USE_TARGET_ATTRIBUTE', false); // The attribute "target" is not valid for STRICT doctypes.
define('HIDE_LINKS_FROM_GUESTS', true); // Hide external links from guests? If this is a string, then the text of the link will be replaced with this string.
if ($user->data['group_id'] == 9)
{
define('EXTERNAL_LINK_PREFIX', false); // Example: 'http://anonym.to?'
}
else if ($user->data['group_id'] == 4)
{
define('EXTERNAL_LINK_PREFIX', false); // Example: 'http://anonym.to?'
}
else
{
define('EXTERNAL_LINK_PREFIX', 'http://adf.ly/1472352/'); // Example: 'http://anonym.to?'
}
define('INTERNAL_LINK_DOMAINS', ''); // List of domains to be considered local, separated by semicolons. Example: 'http://www.alternate-domain.com'
define('FORBIDDEN_DOMAINS', ''); // List of domains for which links should be removed, separated by semicolons. Example: 'http://www.porn.com'
define('FORBIDDEN_NEW_URL', '#'); // URL to insert in place of any removed links. Example: 'http://www.google.com' or '#top'
// Link relationships
define('INTERNAL_LINK_REL', '');
define('EXTERNAL_LINK_REL', 'nofollow');
// Link targets (setting to FALSE will remove the link)
define('INTERNAL_LINK_TARGET', '');
define('EXTERNAL_LINK_TARGET', '_blank');
// Link classes
define('INTERNAL_LINK_CLASS', 'postlink-local');
define('EXTERNAL_LINK_CLASS', 'postlink');
// Link file types (separate file extensions with a vertical bar "|")
define('PDF_LINK_TYPES', 'pdf');
define('IMG_LINK_TYPES', 'gif|jpg|jpeg|png|bmp');
define('ZIP_LINK_TYPES', 'zip|rar|7z');
// Special cases for specific link types. Separate file extensions with a vertical bar (|).
define('EXTERNAL_LINK_TYPES', ''); // Example 1: 'pdf|gif|jpg|jpeg|png|bmp|zip|rar|7z'
define('INTERNAL_LINK_TYPES', ''); // Example 2: PDF_LINK_TYPES . '|' . IMG_LINK_TYPES . '|' . ZIP_LINK_TYPES
define('SKIP_LINK_TYPES', ''); // Don't process links to these file types
define('SKIP_PREFIX_TYPES', ''); // Don't add an external link prefix for these file types
// Link classes for specific file types.
global $link_type_classes;
$link_type_classes = array(
PDF_LINK_TYPES => 'pdf-link',
IMG_LINK_TYPES => 'img-link',
ZIP_LINK_TYPES => 'zip-link',
);
/**
*/
function prime_links($text = null)
{
Czy jest to możliwe?