Version 3.3.4
This commit is contained in:
1 parent
78706903a2
commit
fb6b5baabc
2206 files changed
+409828
-382984
No files matched your search
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* IP.Board v3.3.4
|
||||
* Core variables file: defines caches, resets, etc.
|
||||
* Last Updated: $Date: 2011-09-08 18:01:45 -0400 (Thu, 08 Sep 2011) $
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 9470 $
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 10914 $
|
||||
* @since 3.0.0
|
||||
*
|
||||
*/
|
||||
@@ -38,28 +38,35 @@ class coreVariables
|
||||
// Extension File: Registered Caches
|
||||
//-----------------------------------------
|
||||
|
||||
$CACHE['systemvars'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => '',
|
||||
'recache_function' => '' );
|
||||
$CACHE['systemvars'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => '',
|
||||
'recache_function' => '' );
|
||||
|
||||
$CACHE['licenseData'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 0,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/tools/licensekey.php',
|
||||
'recache_class' => 'admin_core_tools_licensekey',
|
||||
'recache_function' => 'recache' );
|
||||
|
||||
$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' );
|
||||
$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,
|
||||
$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,
|
||||
$CACHE['app_cache'] = array( 'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 1,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/applications/applications.php',
|
||||
@@ -325,6 +332,28 @@ class coreVariables
|
||||
{
|
||||
$_RESET = array();
|
||||
|
||||
/* Make old skin selectors work */
|
||||
if ( $_REQUEST['k'] && $_REQUEST['settingNewSkin'] )
|
||||
{
|
||||
$_RESET['app'] = 'core';
|
||||
$_RESET['module'] = 'global';
|
||||
$_RESET['section'] = 'skin';
|
||||
$_RESET['skinId'] = intval( $_REQUEST['settingNewSkin'] );
|
||||
|
||||
/* Return here to stop other rules parsing */
|
||||
return $_RESET;
|
||||
}
|
||||
else if ( $_REQUEST['setAsMobile'] )
|
||||
{
|
||||
$_RESET['app'] = 'core';
|
||||
$_RESET['module'] = 'global';
|
||||
$_RESET['section'] = 'skin';
|
||||
$_RESET['skinId'] = 'setAsMobile';
|
||||
|
||||
/* Return here to stop other rules parsing */
|
||||
return $_RESET;
|
||||
}
|
||||
|
||||
###### New IPB 3.0.0 Redirects ######
|
||||
|
||||
/* Share links */
|
||||
@@ -350,7 +379,7 @@ class coreVariables
|
||||
$_RESET['app'] = 'forums';
|
||||
$_RESET['module'] = 'forums';
|
||||
$_RESET['section'] = 'announcements';
|
||||
$_RESET['announce_id'] = $_REQUEST['showannouncement'];
|
||||
$_RESET['announce_id'] = intval( $_REQUEST['showannouncement'] );
|
||||
}
|
||||
|
||||
###### Redirect IPB 2.x to IPB 3.0 URLS ######
|
||||
@@ -369,7 +398,8 @@ class coreVariables
|
||||
$_RESET['app'] = 'forums';
|
||||
$_RESET['module'] = 'forums';
|
||||
$_RESET['section'] = 'forums';
|
||||
$_RESET['f'] = $_REQUEST['showforum'];
|
||||
$_RESET['showforum'] = intval( $_REQUEST['showforum'] );
|
||||
$_RESET['f'] = intval( $_REQUEST['showforum'] );
|
||||
}
|
||||
|
||||
# TOPIC
|
||||
@@ -381,17 +411,17 @@ class coreVariables
|
||||
|
||||
if ( !$_REQUEST['t'] )
|
||||
{
|
||||
$_RESET['t'] = $_REQUEST['showtopic'];
|
||||
$_RESET['t'] = intval( $_REQUEST['showtopic'] );
|
||||
}
|
||||
else if( $_REQUEST['t'] AND !$_REQUEST['showtopic'] )
|
||||
{
|
||||
$_RESET['showtopic'] = $_REQUEST['t'];
|
||||
$_RESET['showtopic'] = intval( $_REQUEST['t'] );
|
||||
}
|
||||
}
|
||||
|
||||
if( ( isset( $_REQUEST['act'] ) && $_REQUEST['act'] == 'findpost' ) || !empty( $_REQUEST['findpost'] ) )
|
||||
{
|
||||
$_RESET['pid'] = ( $_REQUEST['pid'] ) ? $_REQUEST['pid'] : $_REQUEST['findpost'];
|
||||
$_RESET['pid'] = intval( ( $_REQUEST['pid'] ) ? $_REQUEST['pid'] : $_REQUEST['findpost'] );
|
||||
$_RESET['app'] = 'forums';
|
||||
$_RESET['module'] = 'forums';
|
||||
$_RESET['section'] = 'findpost';
|
||||
@@ -403,7 +433,7 @@ class coreVariables
|
||||
$_RESET['app'] = 'members';
|
||||
$_RESET['module'] = 'profile';
|
||||
$_RESET['section'] = 'view';
|
||||
$_RESET['id'] = $_REQUEST['showuser'];
|
||||
$_RESET['id'] = intval( $_REQUEST['showuser'] );
|
||||
}
|
||||
|
||||
if( isset( $_REQUEST['act'] ) && $_REQUEST['act'] == 'members' )
|
||||
@@ -421,44 +451,51 @@ class coreVariables
|
||||
$_RESET['type'] = 'forums';
|
||||
}
|
||||
|
||||
# SUBSMANAGER - Needed here to redirect stored IPN to new app
|
||||
if ( isset( $_REQUEST['act'] ) && strtolower($_REQUEST['act']) == 'paysubs' )
|
||||
# Redirect IPN URLs to IP.Nexus / IP.Subscriptions
|
||||
if ( ( isset( $_REQUEST['act'] ) and $_REQUEST['act'] == 'paysubs' ) or ( isset( $_REQUEST['app'] ) and $_REQUEST['app'] == 'subscriptions' ) )
|
||||
{
|
||||
$_RESET['app'] = 'subscriptions';
|
||||
|
||||
if ( isset( $_REQUEST['CODE'] ) )
|
||||
/* Brute force allow access */
|
||||
if ( ! defined( 'IPS_ENFORCE_ACCESS' ) )
|
||||
{
|
||||
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'];
|
||||
}
|
||||
define( 'IPS_ENFORCE_ACCESS', TRUE );
|
||||
}
|
||||
|
||||
$_RESET['old'] = '1';
|
||||
|
||||
// If Nexus is installed, go to Nexus
|
||||
$subs_version = IPSLib::fetchVersionNumber( 'subscriptions' );
|
||||
if ( IPSLib::extractAppLocationKey('nexus') == 'ips' && $subs_version['long'] < 10008 )
|
||||
{
|
||||
$_RESET['app'] = 'nexus';
|
||||
$_RESET['module'] = 'payments';
|
||||
$_RESET['section'] = 'receive';
|
||||
$_RESET['validate'] = 'paypal';
|
||||
}
|
||||
// Otherwise go to IP.Subscriptions
|
||||
else
|
||||
{
|
||||
$_RESET['app'] = 'subscriptions';
|
||||
|
||||
if ( isset( $_REQUEST['CODE'] ) )
|
||||
{
|
||||
if ( $_REQUEST['CODE'] == 'incoming' )
|
||||
{
|
||||
$_RESET['module'] = 'incoming';
|
||||
$_RESET['section'] = 'receive';
|
||||
$_RESET['do'] = 'validate';
|
||||
}
|
||||
else if ( $_REQUEST['CODE'] == 'paydone' )
|
||||
{
|
||||
$_RESET['module'] = 'incoming';
|
||||
$_RESET['section'] = 'receive';
|
||||
$_RESET['do'] = 'done';
|
||||
}
|
||||
else
|
||||
{
|
||||
$_RESET['do'] = $_REQUEST['CODE'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Fix IP.Board 2.1 style module links
|
||||
@@ -519,29 +556,19 @@ class coreVariables
|
||||
*/
|
||||
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' => '__' ),
|
||||
);
|
||||
}
|
||||
$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' => '__' ),
|
||||
);
|
||||
|
||||
return $templates;
|
||||
}
|
||||
|
||||
@@ -556,7 +583,6 @@ class coreVariables
|
||||
{
|
||||
$_BITWISE = array( 'facebook' => array( 'fbc_s_pic', 'fbc_s_status', 'fbc_s_aboutme', 'fbc_si_status' ), // facebook == profile_portal.fb_bwoptions
|
||||
'twitter' => array( 'tc_s_pic', 'tc_s_status', 'tc_s_aboutme', 'tc_s_bgimg', 'tc_si_status' ), // twitter = profile_portal.tc_bwoptions
|
||||
'vkontakte' => array( 'vc_s_pic', 'vc_s_status' ), //vkontakte
|
||||
'members' => array( 'bw_is_spammer',
|
||||
'bw_from_sfs',
|
||||
'bw_vnc_type', # 1 based on topic marking table, 0 based on last_visit
|
||||
@@ -569,34 +595,37 @@ class coreVariables
|
||||
'bw_disable_tagging', # 1 means no tagging for this dude
|
||||
'bw_disable_prefixes', # 1 means no prefixes
|
||||
'bw_using_skin_gen', # 1 means yes. 0 means.. well, I think you can figure that out
|
||||
'bw_disable_gravatar', # If 1, Gravatar will not be used for this user
|
||||
),
|
||||
|
||||
'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
|
||||
'gbw_soft_delete' , # 1 is ok, 0 is not
|
||||
'gbw_soft_delete_own' , # 1 is ok, 0 is not
|
||||
'gbw_soft_delete_own_topic' , # 1 is ok, 0 is not
|
||||
'gbw_un_soft_delete' , # 1 is ok, 0 is not
|
||||
'gbw_soft_delete_see' , # 1 is ok, 0 is not
|
||||
'gbw_soft_delete_topic' , # 1 is ok, 0 is not
|
||||
'gbw_un_soft_delete_topic' , # 1 is ok, 0 is not
|
||||
'gbw_soft_delete_topic_see' , # 1 is ok, 0 is not
|
||||
'gbw_soft_delete_reason' , # 1 means can read reason, 0 means cannot
|
||||
'gbw_soft_delete_see_post' , # seriously.
|
||||
'gbw_allow_customization' , # 1 YES, 0 NO
|
||||
'gbw_allow_url_bgimage' , #^^
|
||||
'gbw_allow_upload_bgimage' , #^^
|
||||
'gbw_view_reps' , # 1 allows them to view who gave rep to a post, 0 is can't
|
||||
'gbw_no_status_import' , # 1 prevents members in group from importing statuses from services.
|
||||
'gbw_disable_tagging' , # 1 means no tagging for this group
|
||||
'gbw_disable_prefixes' , # 1 means cannot prefixes
|
||||
)
|
||||
);
|
||||
'gbw_mod_post_unit_type' , #1 1 is days, 0 is posts
|
||||
'gbw_ppd_unit_type' , #2 1 is days, 0 is posts
|
||||
'gbw_displayname_unit_type' , #4 1 is days, 0 is posts
|
||||
'gbw_sig_unit_type' , #8 1 is days, 0 is posts
|
||||
'gbw_promote_unit_type' , #16 1 is days, 0 is posts
|
||||
'gbw_no_status_update' , #32 1 is blocked, 0 is not. Quite simple really
|
||||
'gbw_soft_delete' , #64 1 is ok, 0 is not - NO LONGER USED
|
||||
'gbw_soft_delete_own' , #128 1 is ok, 0 is not
|
||||
'gbw_soft_delete_own_topic' , #256 1 is ok, 0 is not - NO LONGER USED
|
||||
'gbw_un_soft_delete' , #512 1 is ok, 0 is not - NO LONGER USED
|
||||
'gbw_soft_delete_see' , #1024 1 is ok, 0 is not - NO LONGER USED
|
||||
'gbw_soft_delete_topic' , #2048 1 is ok, 0 is not - NO LONGER USED
|
||||
'gbw_un_soft_delete_topic' , #4096 1 is ok, 0 is not - NO LONGER USED
|
||||
'gbw_soft_delete_topic_see' , #8192 1 is ok, 0 is not - NO LONGER USED
|
||||
'gbw_soft_delete_reason' , #16384 1 means can read reason, 0 means cannot - NO LONGER USED
|
||||
'gbw_soft_delete_see_post' , #32768 seriously. - NO LONGER USED
|
||||
'gbw_allow_customization' , #65536 1 YES, 0 NO
|
||||
'gbw_allow_url_bgimage' , #131072 ^^
|
||||
'gbw_allow_upload_bgimage' , #262144 ^^
|
||||
'gbw_view_reps' , #524288 1 allows them to view who gave rep to a post, 0 is can't
|
||||
'gbw_no_status_import' , #1048576 1 prevents members in group from importing statuses from services.
|
||||
'gbw_disable_tagging' , #2097152 1 means no tagging for this group
|
||||
'gbw_disable_prefixes' , #4194304 1 means cannot prefixes
|
||||
'gbw_view_last_info' , #8388608 1 for yes, 0 for NOOOOO
|
||||
'gbw_view_online_lists' , #16777216 1 for yes
|
||||
'gbw_hide_leaders_page' , #33554432 1 for yes
|
||||
) );
|
||||
|
||||
return $_BITWISE;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<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.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
<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.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,76 +1,76 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* Sphinx template file
|
||||
* Last Updated: $Date: 2011-08-30 16:47:25 -0400 (Tue, 30 Aug 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 9433 $
|
||||
* @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 <!--SPHINX_CONF_PREFIX-->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
|
||||
{
|
||||
listen = 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;
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* Sphinx template file
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 10914 $
|
||||
* @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 <!--SPHINX_CONF_PREFIX-->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
|
||||
{
|
||||
listen = 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;
|
||||
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* IP.Board v3.3.4
|
||||
* User agent (browser and spider) mappings
|
||||
* Last Updated: $Date: 2011-09-14 20:13:56 -0400 (Wed, 14 Sep 2011) $
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 9491 $
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 10914 $
|
||||
* @since 3.0.0
|
||||
*
|
||||
*/
|
||||
@@ -24,6 +24,26 @@ if ( ! defined( 'IN_IPB' ) )
|
||||
exit();
|
||||
}
|
||||
|
||||
// Default mobile skin matched agents */
|
||||
$MOBILESKIN = array(
|
||||
'groups' => array(),
|
||||
'uagents' => array(
|
||||
'android' => '',
|
||||
'blackberry' => '',
|
||||
'iphone' => '',
|
||||
'ipodtouch' => '',
|
||||
'sonyericsson' => '',
|
||||
'nokia' => '',
|
||||
'motorola' => '',
|
||||
'samsung' => '',
|
||||
'htc' => '',
|
||||
'lg' => '',
|
||||
'palm' => '',
|
||||
'windows7' => '',
|
||||
'operamini' => '' )
|
||||
);
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Mobile devices. These go first so they are matched
|
||||
// http://en.wikipedia.org/wiki/List_of_user_agents_for_mobile_phones
|
||||
@@ -36,12 +56,12 @@ $BROWSERS['transformer'] = array(
|
||||
|
||||
$BROWSERS['android'] = array(
|
||||
'b_title' => "Android",
|
||||
'b_regex' => array( ";\s+?android\s+?([A-Za-z0-9.]{1,10})" => "1" )
|
||||
'b_regex' => array( "\sandroid\s+?([A-Za-z0-9.]{1,10}).+?mobile" => "1" )
|
||||
);
|
||||
|
||||
$BROWSERS['blackberry'] = array(
|
||||
'b_title' => "Blackberry",
|
||||
'b_regex' => array( "blackberry(\d+?)/([0-9.]{1,10})" => "2" )
|
||||
'b_regex' => array( "blackberry\s?(\d+?)[\/;]" => "1" )
|
||||
);
|
||||
|
||||
$BROWSERS['iphone'] = array(
|
||||
@@ -104,6 +124,11 @@ $BROWSERS['operamini'] = array(
|
||||
'b_regex' => array( "opera (mobi|mini)" => "0" )
|
||||
);
|
||||
|
||||
$BROWSERS['windows7'] = array(
|
||||
'b_title' => "Windows 7",
|
||||
'b_regex' => array( "Windows Phone OS ([^;]+);" => "1" )
|
||||
);
|
||||
|
||||
//-----------------------------------------
|
||||
// Browsers
|
||||
//-----------------------------------------
|
||||
@@ -198,10 +223,10 @@ $BROWSERS['mozilla'] = array(
|
||||
// SEARCH ENGINES
|
||||
//-----------------------------------------
|
||||
|
||||
/*$ENGINES['about'] = array(
|
||||
$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" )
|
||||
@@ -210,7 +235,7 @@ $ENGINES['altavista'] = array(
|
||||
'b_title' => "Altavista",
|
||||
'b_regex' => array( "Scooter[ /\-]*[a-z]*([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
/*$ENGINES['ask'] = array(
|
||||
$ENGINES['ask'] = array(
|
||||
'b_title' => "Ask Jeeves",
|
||||
'b_regex' => array( "Ask[ \-]?Jeeves" => "0" )
|
||||
);
|
||||
@@ -218,12 +243,16 @@ $ENGINES['altavista'] = array(
|
||||
$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['googlemobile'] = array(
|
||||
'b_title' => "Google Mobile",
|
||||
'b_regex' => array( "Googl(e|ebot)(-Mobile)?/([0-9.]{1,10})" => "\\\\3","Googl(e|ebot)(-Mobile)?/" => "" )
|
||||
);
|
||||
|
||||
$ENGINES['facebook'] = array(
|
||||
'b_title' => "Facebook",
|
||||
'b_regex' => array( "facebookexternalhit/([0-9.]{1,10})" => "\\\\1" )
|
||||
@@ -237,11 +266,11 @@ $ENGINES['inktomi'] = array(
|
||||
'b_title' => "Inktomi",
|
||||
'b_regex' => array( "slurp@inktomi\.com" => "" )
|
||||
);
|
||||
/*$ENGINES['internetseer'] = array(
|
||||
$ENGINES['internetseer'] = array(
|
||||
'b_title' => "InternetSeer",
|
||||
'b_regex' => array( "^InternetSeer\.com" => "" )
|
||||
);*/
|
||||
/*$ENGINES['look'] = array(
|
||||
);
|
||||
$ENGINES['look'] = array(
|
||||
'b_title' => "Look",
|
||||
'b_regex' => array( "www\.look\.com" => "" )
|
||||
);
|
||||
@@ -252,51 +281,28 @@ $ENGINES['looksmart'] = array(
|
||||
$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['bingbot'] = array(
|
||||
'b_title' => "Bing",
|
||||
'b_regex' => array( "bingbot[ /]([0-9.]{1,10})" => "1" )
|
||||
);
|
||||
|
||||
/*$ENGINES['webcrawl'] = array(
|
||||
$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