Version 3.0.5
This commit is contained in:
1 parent
19b38c7c74
commit
1d4720f3e2
3755 files changed
+508378
-664541
No files matched your search
@@ -0,0 +1,501 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* Core variables file: defines caches, resets, etc.
|
||||
* Last Updated: $Date: 2009-11-27 15:29:20 -0500 (Fri, 27 Nov 2009) $
|
||||
*
|
||||
* @author $Author: michael $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @version $Rev: 5489 $
|
||||
* @since 3.0.0
|
||||
*
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
class coreVariables
|
||||
{
|
||||
/**
|
||||
* Fetch the caches array
|
||||
*
|
||||
* @access public
|
||||
* @return array Caches
|
||||
*/
|
||||
public function fetchCaches()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Extension File: Registered Caches
|
||||
//-----------------------------------------
|
||||
|
||||
$CACHE['systemvars'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => '',
|
||||
'recache_function' => '' );
|
||||
|
||||
$CACHE['login_methods'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/tools/login.php',
|
||||
'recache_class' => 'admin_core_tools_login',
|
||||
'recache_function' => 'loginsRecache' );
|
||||
|
||||
/* Apps and modules */
|
||||
$CACHE['vnums'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/applications/applications.php',
|
||||
'recache_class' => 'admin_core_applications_applications',
|
||||
'recache_function' => 'versionNumbersRecache' );
|
||||
|
||||
$CACHE['app_cache'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/applications/applications.php',
|
||||
'recache_class' => 'admin_core_applications_applications',
|
||||
'recache_function' => 'applicationsRecache' );
|
||||
|
||||
$CACHE['module_cache'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/applications/applications.php',
|
||||
'recache_class' => 'admin_core_applications_applications',
|
||||
'recache_function' => 'moduleRecache' );
|
||||
|
||||
$CACHE['app_menu_cache'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/applications/applications.php',
|
||||
'recache_class' => 'admin_core_applications_applications',
|
||||
'recache_function' => 'applicationsMenuDataRecache',
|
||||
'acp_only' => 1 );
|
||||
|
||||
$CACHE['hooks'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/applications/hooks.php',
|
||||
'recache_class' => 'admin_core_applications_hooks',
|
||||
'recache_function' => 'rebuildHooksCache' );
|
||||
|
||||
/* User agents and skins */
|
||||
$CACHE['useragents'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPS_ROOT_PATH . 'sources/classes/useragents/userAgentFunctions.php',
|
||||
'recache_class' => 'userAgentFunctions',
|
||||
'recache_function' => 'rebuildUserAgentCaches' );
|
||||
|
||||
$CACHE['useragentgroups'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPS_ROOT_PATH . 'sources/classes/useragents/userAgentFunctions.php',
|
||||
'recache_class' => 'userAgentFunctions',
|
||||
'recache_function' => 'rebuildUserAgentGroupCaches' );
|
||||
|
||||
$CACHE['skinsets'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPS_ROOT_PATH . 'sources/classes/skins/skinCaching.php',
|
||||
'recache_class' => 'skinCaching',
|
||||
'recache_function' => 'rebuildSkinSetsCache' );
|
||||
|
||||
$CACHE['outputformats'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPS_ROOT_PATH . 'sources/classes/skins/skinCaching.php',
|
||||
'recache_class' => 'skinCaching',
|
||||
'recache_function' => 'rebuildOutputFormatCaches' );
|
||||
|
||||
$CACHE['skin_remap'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPS_ROOT_PATH . 'sources/classes/skins/skinCaching.php',
|
||||
'recache_class' => 'skinCaching',
|
||||
'recache_function' => 'rebuildURLMapCache' );
|
||||
|
||||
|
||||
/* Basic caches */
|
||||
$CACHE['group_cache'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'members' ) . '/modules_admin/groups/groups.php',
|
||||
'recache_class' => 'admin_members_groups_groups',
|
||||
'recache_function' => 'rebuildGroupCache' );
|
||||
|
||||
$CACHE['settings'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/tools/settings.php',
|
||||
'recache_class' => 'admin_core_tools_settings',
|
||||
'recache_function' => 'settingsRebuildCache' );
|
||||
|
||||
$CACHE['lang_data'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPS_ROOT_PATH . 'sources/classes/class_localization.php',
|
||||
'recache_class' => 'class_localization',
|
||||
'recache_function' => 'rebuildLanguagesCache' );
|
||||
|
||||
|
||||
|
||||
$CACHE['banfilters'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'members' ) . '/modules_admin/members/banfilters.php',
|
||||
'recache_class' => 'admin_members_members_banfilters',
|
||||
'recache_function' => 'rebuildBanCache' );
|
||||
|
||||
|
||||
$CACHE['stats'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'members' ) . '/modules_admin/members/tools.php',
|
||||
'recache_class' => 'admin_members_members_tools',
|
||||
'recache_function' => 'rebuildStats' );
|
||||
|
||||
/* Text handling */
|
||||
$CACHE['emoticons'] = array(
|
||||
'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 0,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/posts/emoticons.php',
|
||||
'recache_class' => 'admin_core_posts_emoticons',
|
||||
'recache_function' => 'emoticonsRebuildCache'
|
||||
);
|
||||
|
||||
|
||||
$CACHE['badwords'] = array(
|
||||
'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/posts/badwords.php',
|
||||
'recache_class' => 'admin_core_posts_badwords',
|
||||
'recache_function' => 'badwordsRebuildCache'
|
||||
);
|
||||
|
||||
$CACHE['bbcode'] = array(
|
||||
'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/posts/bbcode.php',
|
||||
'recache_class' => 'admin_core_posts_bbcode',
|
||||
'recache_function' => 'bbcodeRebuildCache'
|
||||
);
|
||||
|
||||
$CACHE['mediatag'] = array(
|
||||
'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/posts/media.php',
|
||||
'recache_class' => 'admin_core_posts_media',
|
||||
'recache_function' => 'recacheMediaTag'
|
||||
);
|
||||
|
||||
$CACHE['profilefields'] = array(
|
||||
'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'members' ) . '/modules_admin/members/customfields.php',
|
||||
'recache_class' => 'admin_members_members_customfields',
|
||||
'recache_function' => 'rebuildCache'
|
||||
);
|
||||
|
||||
$CACHE['ranks'] = array(
|
||||
'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 0,
|
||||
'recache_file' => IPSLib::getAppDir( 'members' ) . '/modules_admin/members/ranks.php',
|
||||
'recache_class' => 'admin_members_members_ranks',
|
||||
'recache_function' => 'titlesRecache'
|
||||
);
|
||||
|
||||
$CACHE['reputation_levels'] = array(
|
||||
'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 0,
|
||||
'recache_file' => IPSLib::getAppDir( 'members' ) . '/modules_admin/members/reputation.php',
|
||||
'recache_class' => 'admin_members_members_reputation',
|
||||
'recache_function' => 'rebuildReputationLevelCache'
|
||||
);
|
||||
|
||||
$CACHE['rss_output_cache'] = array(
|
||||
'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/tools/cache.php',
|
||||
'recache_class' => 'admin_core_tools_cache',
|
||||
'recache_function' => 'rebuildRssCache'
|
||||
);
|
||||
|
||||
$CACHE['rss_export'] = array(
|
||||
'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'skip_rebuild_when_upgrading' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'forums' ) . '/modules_admin/rss/export.php',
|
||||
'recache_class' => 'admin_forums_rss_export',
|
||||
'recache_function' => 'doRssRebuildCache'
|
||||
);
|
||||
|
||||
if ( IN_DEV )
|
||||
{
|
||||
$CACHE['indev'] = array(
|
||||
'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => '',
|
||||
'recache_class' => '',
|
||||
'recache_function' => ''
|
||||
);
|
||||
}
|
||||
|
||||
$_LOAD['report_cache'] = 1;
|
||||
$_LOAD['rss_output_cache'] = 1;
|
||||
|
||||
return array( 'caches' => $CACHE,
|
||||
'cacheload' => $_LOAD );
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch the redirect mapping for short-hand urls
|
||||
*
|
||||
* @access public
|
||||
* @return array Redirect mappings
|
||||
*/
|
||||
public function fetchRedirects()
|
||||
{
|
||||
$_RESET = array();
|
||||
|
||||
###### New IPB 3.0.0 Redirects ######
|
||||
|
||||
if( isset( $_REQUEST['showannouncement'] ) && $_REQUEST['showannouncement'] )
|
||||
{
|
||||
$_RESET['app'] = 'forums';
|
||||
$_RESET['module'] = 'forums';
|
||||
$_RESET['section'] = 'announcements';
|
||||
$_RESET['announce_id'] = $_REQUEST['showannouncement'];
|
||||
}
|
||||
|
||||
###### Redirect IPB 2.x to IPB 3.0 URLS ######
|
||||
|
||||
# IDX
|
||||
if( isset( $_REQUEST['act'] ) && $_REQUEST['act'] == 'idx' )
|
||||
{
|
||||
$_RESET['app'] = 'forums';
|
||||
$_RESET['section'] = 'boards';
|
||||
$_RESET['module'] = 'forums';
|
||||
}
|
||||
|
||||
# FORUM
|
||||
if( isset( $_REQUEST['showforum'] ) && $_REQUEST['showforum'] )
|
||||
{
|
||||
$_RESET['app'] = 'forums';
|
||||
$_RESET['module'] = 'forums';
|
||||
$_RESET['section'] = 'forums';
|
||||
$_RESET['f'] = $_REQUEST['showforum'];
|
||||
}
|
||||
|
||||
# TOPIC
|
||||
if( isset( $_REQUEST['showtopic'] ) && $_REQUEST['showtopic'] )
|
||||
{
|
||||
$_RESET['app'] = 'forums';
|
||||
$_RESET['module'] = 'forums';
|
||||
$_RESET['section'] = 'topics';
|
||||
$_RESET['t'] = $_REQUEST['showtopic'];
|
||||
}
|
||||
|
||||
if( ( isset( $_REQUEST['act'] ) && $_REQUEST['act'] == 'findpost' ) || isset( $_REQUEST['findpost'] ) && $_REQUEST['findpost'] )
|
||||
{
|
||||
$_RESET['pid'] = ( $_REQUEST['pid'] ) ? $_REQUEST['pid'] : $_REQUEST['findpost'];
|
||||
$_RESET['app'] = 'forums';
|
||||
$_RESET['module'] = 'forums';
|
||||
$_RESET['section'] = 'findpost';
|
||||
}
|
||||
|
||||
# PROFILE
|
||||
if( isset( $_REQUEST['showuser'] ) && $_REQUEST['showuser'] )
|
||||
{
|
||||
$_RESET['app'] = 'members';
|
||||
$_RESET['module'] = 'profile';
|
||||
$_RESET['section'] = 'view';
|
||||
$_RESET['id'] = $_REQUEST['showuser'];
|
||||
}
|
||||
|
||||
if( isset( $_REQUEST['act'] ) && $_REQUEST['act'] == 'members' )
|
||||
{
|
||||
$_RESET['app'] = 'members';
|
||||
$_RESET['module'] = 'list';
|
||||
}
|
||||
|
||||
# RSS
|
||||
if ( isset( $_GET['act'] ) && $_GET['act'] == 'rss' && ! empty( $_GET['id'] ) )
|
||||
{
|
||||
$_RESET['app'] = 'core';
|
||||
$_RESET['module'] = 'global';
|
||||
$_RESET['section'] = 'rss';
|
||||
$_RESET['type'] = 'forums';
|
||||
}
|
||||
|
||||
# SUBSMANAGER - Needed here to redirect stored IPN to new app
|
||||
if ( isset( $_REQUEST['act'] ) && $_REQUEST['act'] == 'paysubs' )
|
||||
{
|
||||
$_RESET['app'] = 'subscriptions';
|
||||
|
||||
if ( isset( $_REQUEST['CODE'] ) )
|
||||
{
|
||||
if ( $_REQUEST['CODE'] == 'incoming' )
|
||||
{
|
||||
$_RESET['module'] = 'incoming';
|
||||
$_RESET['section'] = 'receive';
|
||||
$_RESET['do'] = 'validate';
|
||||
|
||||
/* Brute force allow access */
|
||||
if ( ! defined( 'IPS_ENFORCE_ACCESS' ) )
|
||||
{
|
||||
define( 'IPS_ENFORCE_ACCESS', TRUE );
|
||||
}
|
||||
|
||||
}
|
||||
else if ( $_REQUEST['CODE'] == 'paydone' )
|
||||
{
|
||||
$_RESET['module'] = 'incoming';
|
||||
$_RESET['section'] = 'receive';
|
||||
$_RESET['do'] = 'done';
|
||||
|
||||
/* Brute force allow access */
|
||||
if ( ! defined( 'IPS_ENFORCE_ACCESS' ) )
|
||||
{
|
||||
define( 'IPS_ENFORCE_ACCESS', TRUE );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_RESET['do'] = $_REQUEST['CODE'];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#Fix IP.Board 2.1 style module links
|
||||
if( isset( $_REQUEST['act'] ) && $_REQUEST['act'] == 'module' && isset( $_REQUEST['module'] ) )
|
||||
{
|
||||
$_REQUEST['autocom'] = $_REQUEST['module'];
|
||||
}
|
||||
if( isset( $_REQUEST['cmd'] ) )
|
||||
{
|
||||
$_RESET['req'] = $_REQUEST['cmd'];
|
||||
}
|
||||
|
||||
# ALL
|
||||
if( ! isset( $_REQUEST['do'] ) AND ( isset( $_REQUEST['CODE'] ) OR isset( $_REQUEST['code'] ) ) )
|
||||
{
|
||||
$_RESET['do'] = ( $_REQUEST['CODE'] ) ? $_REQUEST['CODE'] : $_REQUEST['code'];
|
||||
}
|
||||
|
||||
if( isset( $_REQUEST['autocom'] ) or isset( $_REQUEST['automodule'] ) )
|
||||
{
|
||||
$_RESET['app'] = $_REQUEST['autocom'] ? $_REQUEST['autocom'] : $_REQUEST['automodule'];
|
||||
}
|
||||
# Blog friendly urls
|
||||
else if( isset( $_GET['autocom'] ) or isset( $_GET['automodule'] ) )
|
||||
{
|
||||
$_RESET['app'] = $_GET['autocom'] ? $_GET['autocom'] : $_GET['automodule'];
|
||||
}
|
||||
|
||||
if( isset( $_REQUEST['act'] ) && $_REQUEST['act'] == 'Print' )
|
||||
{
|
||||
$_RESET['app'] = 'forums';
|
||||
$_RESET['module'] = 'forums';
|
||||
$_RESET['section'] = 'printtopic';
|
||||
}
|
||||
|
||||
return $_RESET;
|
||||
}
|
||||
|
||||
/**
|
||||
* SEO templates
|
||||
*
|
||||
* OUT FORMAT REGEX:
|
||||
* First array element is a regex to run to see if we've a match for the URL
|
||||
* The second array element is the template to use the results of the parenthesis capture
|
||||
*
|
||||
* Special variable #{__title__} is replaced with the $title data passed to output->formatUrl( $url, $title)
|
||||
*
|
||||
* IMPORTANT: Remember that when these regex are used, the output has not been fully parsed so you will get:
|
||||
* showuser={$data['member_id']} NOT showuser=1 so do not try and match numerics only!
|
||||
*
|
||||
* IN FORMAT REGEX
|
||||
*
|
||||
* This allows the registry to piece back together a URL based on the template regex
|
||||
* So, for example: "/user/(\d+?)/", 'matches' => array( array( 'showuser' => '$1' ) )tells IP.Board to populate 'showuser' with the result
|
||||
* of the parenthesis capture #1
|
||||
*
|
||||
* @access public
|
||||
* @return array SEO templates
|
||||
*/
|
||||
public function fetchTemplates()
|
||||
{
|
||||
if ( IPB_USE_ONLY_ID_FURL )
|
||||
{
|
||||
$templates = array(
|
||||
# SPECIAL TEMPLATE: Used when checking permalinks. {start}permalink{end}. If you changed these templates to use something like:
|
||||
# /forums/forum-12-my-forum.html then you would need to use start => '/', end => '.html'
|
||||
# varBlock is the bit that separates the FURL from other variables. varSep is the bit that separates the vars. So if you wanted to use:
|
||||
# /forums/forum-12-my-forum.html?st/20 or /forums/forum-12-my-forum.html?st-20-view-newpost
|
||||
# You'd use 'varBlock' = '?' and 'varSep' => ','
|
||||
'__data__' => array( 'start' => '/',
|
||||
'end' => '/',
|
||||
'varBlock' => '/page__',
|
||||
'varSep' => '__' ),
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
$templates = array(
|
||||
'__data__' => array( 'start' => '-',
|
||||
'end' => '/',
|
||||
'varBlock' => '/page__',
|
||||
'varSep' => '__' ),
|
||||
);
|
||||
}
|
||||
return $templates;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch bitwise mappings
|
||||
* You can add to any of these arrays, but you cannot remove keys or re-order them. BAD THINGS WILL HAPPEN
|
||||
*
|
||||
* @access public
|
||||
* @return array Bitwise mappings
|
||||
*/
|
||||
public function fetchBitwise()
|
||||
{
|
||||
$_BITWISE = array( 'facebook' => array( 'fbc_s_pic', 'fbc_s_avatar', 'fbc_s_status', 'fbc_s_aboutme' ), // facebook == profile_portal.fb_bwoptions
|
||||
'members' => array( 'bw_is_spammer',
|
||||
'bw_from_sfs',
|
||||
'bw_vnc_type', # 1 based on topic marking table, 0 based on last_visit
|
||||
'bw_forum_result_type', # 1 is list, 0 is forum
|
||||
'bw_no_status_update' ), # 1 is yes ban, 0 is no, allow
|
||||
|
||||
'groups' => array(
|
||||
'gbw_mod_post_unit_type' , # 1 is days, 0 is posts
|
||||
'gbw_ppd_unit_type' , # 1 is days, 0 is posts
|
||||
'gbw_displayname_unit_type' , # 1 is days, 0 is posts
|
||||
'gbw_sig_unit_type' , # 1 is days, 0 is posts
|
||||
'gbw_promote_unit_type' , # 1 is days, 0 is posts
|
||||
'gbw_no_status_update' , # 1 is blocked, 0 is not. Quite simple really
|
||||
)
|
||||
);
|
||||
|
||||
return $_BITWISE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<html>␍<head><title>IP.Board - Bulletin Board System</title></head>␍<body>␍<h1>403: IP.Board -> Forbidden</h1>␍<hr>␍You have reached this page in error, please use your back button to return to the forum.␍<hr>␍<a href="http://www.invisionboard.com/">IP.Board</a>␍</body>␍</html>␍
|
||||
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* Sphinx template file
|
||||
* Last Updated: $Date: 2009-07-28 20:26:37 -0400 (Tue, 28 Jul 2009) $
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @version $Rev: 4948 $
|
||||
* @since 3.0.0
|
||||
*
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
$sphinxTemplate = <<<EOF
|
||||
|
||||
#############################################################################
|
||||
## data source definition
|
||||
#############################################################################
|
||||
|
||||
source ipb_source_config
|
||||
{
|
||||
#setup
|
||||
type = mysql
|
||||
sql_host = <!--SPHINX_CONF_HOST-->
|
||||
sql_user = <!--SPHINX_CONF_USER-->
|
||||
sql_pass = <!--SPHINX_CONF_PASS-->
|
||||
sql_db = <!--SPHINX_CONF_DATABASE-->
|
||||
sql_port = <!--SPHINX_CONF_PORT-->
|
||||
}
|
||||
|
||||
<!--SPHINX_CONTENT-->
|
||||
|
||||
#############################################################################
|
||||
## indexer settings
|
||||
#############################################################################
|
||||
|
||||
indexer
|
||||
{
|
||||
mem_limit = 256M
|
||||
}
|
||||
|
||||
#############################################################################
|
||||
## searchd settings
|
||||
#############################################################################
|
||||
|
||||
searchd
|
||||
{
|
||||
address = 127.0.0.1
|
||||
port = <!--SPHINX_PORT-->
|
||||
log = <!--SPHINX_BASE_PATH-->/log/searchd.log
|
||||
query_log = <!--SPHINX_BASE_PATH-->/log/query.log
|
||||
read_timeout = 5
|
||||
max_children = 30
|
||||
pid_file = <!--SPHINX_BASE_PATH-->/log/searchd.pid
|
||||
max_matches = 1000
|
||||
seamless_rotate = 0
|
||||
preopen_indexes = 0
|
||||
unlink_old = 1
|
||||
}
|
||||
|
||||
# --eof--
|
||||
|
||||
EOF;
|
||||
@@ -0,0 +1,223 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* User agent (browser and spider) mappings
|
||||
* Last Updated: $Date: 2009-09-04 02:00:51 -0400 (Fri, 04 Sep 2009) $
|
||||
*
|
||||
* @author $Author: matt $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @version $Rev: 5086 $
|
||||
* @since 3.0.0
|
||||
*
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
$BROWSERS['amaya'] = array(
|
||||
'b_title' => "Amaya",
|
||||
'b_regex' => array( "amaya/([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
|
||||
$BROWSERS['aol'] = array(
|
||||
'b_title' => "AOL",
|
||||
'b_regex' => array( "aol[ /\-]([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
|
||||
$BROWSERS['blackberry'] = array(
|
||||
'b_title' => "Blackberry",
|
||||
'b_regex' => array( "blackberry(\d+?)/([0-9.]{1,10})" => "2" )
|
||||
);
|
||||
|
||||
$BROWSERS['camino'] = array(
|
||||
'b_title' => "Camino",
|
||||
'b_regex' => array( "camino/([0-9.+]{1,10})" => "1" )
|
||||
);
|
||||
$BROWSERS['chimera'] = array(
|
||||
'b_title' => "Chimera",
|
||||
'b_regex' => array( "chimera/([0-9.+]{1,10})" => "1" )
|
||||
);
|
||||
|
||||
$BROWSERS['chrome'] = array(
|
||||
'b_title' => "Chrome",
|
||||
'b_regex' => array( "Chrome/([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
|
||||
$BROWSERS['curl'] = array(
|
||||
'b_title' => "Curl",
|
||||
'b_regex' => array( "curl[ /]([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
|
||||
$BROWSERS['firebird'] = array(
|
||||
'b_title' => "Firebird",
|
||||
'b_regex' => array( "Firebird/([0-9.+]{1,10})" => "1" )
|
||||
);
|
||||
$BROWSERS['firefox'] = array(
|
||||
'b_title' => "Firefox",
|
||||
'b_regex' => array( "Firefox/([0-9.+]{1,10})" => "1" )
|
||||
);
|
||||
$BROWSERS['lotus'] = array(
|
||||
'b_title' => "Lotus Notes",
|
||||
'b_regex' => array( "Lotus[ \-]?Notes[ /]([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
$BROWSERS['konqueror'] = array(
|
||||
'b_title' => "Konqueror",
|
||||
'b_regex' => array( "konqueror/([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
$BROWSERS['lynx'] = array(
|
||||
'b_title' => "Lynx",
|
||||
'b_regex' => array( "lynx/([0-9a-z.]{1,10})" => "1" )
|
||||
);
|
||||
$BROWSERS['maxthon'] = array(
|
||||
'b_title' => "Maxthon",
|
||||
'b_regex' => array( " Maxthon[\);]" => "" )
|
||||
);
|
||||
$BROWSERS['omniweb'] = array(
|
||||
'b_title' => "OmniWeb",
|
||||
'b_regex' => array( "omniweb/[ a-z]?([0-9.]{1,10})$" => "1" )
|
||||
);
|
||||
$BROWSERS['opera'] = array(
|
||||
'b_title' => "Opera",
|
||||
'b_regex' => array( "opera[ /]([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
|
||||
$BROWSERS['safari'] = array(
|
||||
'b_title' => "Safari",
|
||||
'b_regex' => array( "version/([0-9.]{1,10})\s+?safari/([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
$BROWSERS['iphone'] = array(
|
||||
'b_title' => "iPhone",
|
||||
'b_regex' => array( "iphone;" => "0" )
|
||||
);
|
||||
|
||||
$BROWSERS['ipodtouch'] = array(
|
||||
'b_title' => "iPod Touch",
|
||||
'b_regex' => array( "ipod;" => "0" )
|
||||
);
|
||||
|
||||
$BROWSERS['webtv'] = array(
|
||||
'b_title' => "Webtv",
|
||||
'b_regex' => array( "webtv[ /]([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
$BROWSERS['explorer'] = array(
|
||||
'b_title' => "Explorer",
|
||||
'b_regex' => array( "\(compatible; MSIE[ /]([0-9.]{1,10})" => "1" ),
|
||||
'b_position' => 5000,
|
||||
);
|
||||
$BROWSERS['netscape'] = array(
|
||||
'b_title' => "Netscape",
|
||||
'b_regex' => array( "^mozilla/([0-4]\.[0-9.]{1,10})" => "1" )
|
||||
);
|
||||
$BROWSERS['mozilla'] = array(
|
||||
'b_title' => "Mozilla",
|
||||
'b_regex' => array( "^mozilla/([5-9]\.[0-9a-z.]{1,10})" => "1" )
|
||||
);
|
||||
|
||||
//-----------------------------------------
|
||||
// SEARCH ENGINES
|
||||
//-----------------------------------------
|
||||
|
||||
/*$ENGINES['about'] = array(
|
||||
'b_title' => "About",
|
||||
'b_regex' => array( "Libby[_/ ]([0-9.]{1,10})" => "1" )
|
||||
);*/
|
||||
$ENGINES['alexa'] = array(
|
||||
'b_title' => "Alexa",
|
||||
'b_regex' => array( "^ia_archive" => "0" )
|
||||
);
|
||||
$ENGINES['altavista'] = array(
|
||||
'b_title' => "Altavista",
|
||||
'b_regex' => array( "Scooter[ /\-]*[a-z]*([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
/*$ENGINES['ask'] = array(
|
||||
'b_title' => "Ask Jeeves",
|
||||
'b_regex' => array( "Ask[ \-]?Jeeves" => "0" )
|
||||
);
|
||||
|
||||
$ENGINES['excite'] = array(
|
||||
'b_title' => "Excite",
|
||||
'b_regex' => array( "Architext[ \-]?Spider" => "0" )
|
||||
);*/
|
||||
$ENGINES['google'] = array(
|
||||
'b_title' => "Google",
|
||||
'b_regex' => array( "Googl(e|ebot)(-Image)?/([0-9.]{1,10})" => "\\\\3","Googl(e|ebot)(-Image)?/" => "" )
|
||||
);
|
||||
$ENGINES['infoseek'] = array(
|
||||
'b_title' => "Infoseek",
|
||||
'b_regex' => array( "SideWinder[ /]?([0-9a-z.]{1,10})" => "1","Infoseek" => "" )
|
||||
);
|
||||
$ENGINES['inktomi'] = array(
|
||||
'b_title' => "Inktomi",
|
||||
'b_regex' => array( "slurp@inktomi\.com" => "" )
|
||||
);
|
||||
/*$ENGINES['internetseer'] = array(
|
||||
'b_title' => "InternetSeer",
|
||||
'b_regex' => array( "^InternetSeer\.com" => "" )
|
||||
);*/
|
||||
/*$ENGINES['look'] = array(
|
||||
'b_title' => "Look",
|
||||
'b_regex' => array( "www\.look\.com" => "" )
|
||||
);
|
||||
$ENGINES['looksmart'] = array(
|
||||
'b_title' => "Looksmart",
|
||||
'b_regex' => array( "looksmart-sv-fw" => "" )
|
||||
);
|
||||
$ENGINES['lycos'] = array(
|
||||
'b_title' => "Lycos",
|
||||
'b_regex' => array( "Lycos_Spider_" => "" )
|
||||
);*/
|
||||
|
||||
$ENGINES['msproxy'] = array(
|
||||
'b_title' => "MSProxy",
|
||||
'b_regex' => array( "MSProxy[ /]([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
|
||||
$ENGINES['msnbot'] = array(
|
||||
'b_title' => "MSN/Bing",
|
||||
'b_regex' => array( "msnbot[ /]([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
|
||||
/*$ENGINES['webcrawl'] = array(
|
||||
'b_title' => "WebCrawl",
|
||||
'b_regex' => array( "webcrawl\.net" => "" )
|
||||
);
|
||||
$ENGINES['websense'] = array(
|
||||
'b_title' => "Websense",
|
||||
'b_regex' => array( "(Sqworm|websense|Konqueror/3\.(0|1)(\-rc[1-6])?; i686 Linux; 2002[0-9]{4})" => "" )
|
||||
);*/
|
||||
|
||||
$ENGINES['yahoo'] = array(
|
||||
'b_title' => "Yahoo",
|
||||
'b_regex' => array( "Yahoo(.*?)(Slurp|FeedSeeker)" => "" )
|
||||
);
|
||||
|
||||
//Russian Search Engine Crawlers
|
||||
|
||||
$ENGINES['yandex'] = array(
|
||||
'b_title' => "Yandex",
|
||||
'b_regex' => array( "Yandex(Blog)?[ /]([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
$ENGINES['rambler'] = array(
|
||||
'b_title' => "Rambler",
|
||||
'b_regex' => array( "StackRambler[ /]([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
$ENGINES['aport'] = array(
|
||||
'b_title' => "Aport",
|
||||
'b_regex' => array( "Aport" => "" )
|
||||
);
|
||||
$ENGINES['nigma'] = array(
|
||||
'b_title' => "Nigma",
|
||||
'b_regex' => array( "Nigma[ /]([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
$ENGINES['webalta'] = array(
|
||||
'b_title' => "Webalta",
|
||||
'b_regex' => array( "Webalta( Crawler)?" => "" )
|
||||
);
|
||||
Reference in new issue
Block a user