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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user