Version 3.1.4
This commit is contained in:
1 parent
1d4720f3e2
commit
ae5c01cc78
2563 files changed
+283048
-240689
No files matched your search
@@ -1,17 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* IP.Board v3.1.4
|
||||
* Core variables file: defines caches, resets, etc.
|
||||
* Last Updated: $Date: 2009-11-27 15:29:20 -0500 (Fri, 27 Nov 2009) $
|
||||
* Last Updated: $Date: 2010-10-18 20:34:07 -0400 (Mon, 18 Oct 2010) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: michael $
|
||||
* @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: 5489 $
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 6992 $
|
||||
* @since 3.0.0
|
||||
*
|
||||
*/
|
||||
@@ -63,6 +65,13 @@ class coreVariables
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/applications/applications.php',
|
||||
'recache_class' => 'admin_core_applications_applications',
|
||||
'recache_function' => 'applicationsRecache' );
|
||||
|
||||
$CACHE['navigation_tabs'] = 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,
|
||||
@@ -245,6 +254,27 @@ class coreVariables
|
||||
'recache_class' => 'admin_forums_rss_export',
|
||||
'recache_function' => 'doRssRebuildCache'
|
||||
);
|
||||
|
||||
$CACHE['sharelinks'] = array(
|
||||
'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 0,
|
||||
'skip_rebuild_when_upgrading' => 0,
|
||||
'recache_file' => IPSLib::getAppDir( 'core' ) . '/modules_admin/tools/sharelinks.php',
|
||||
'recache_class' => 'admin_core_tools_sharelinks',
|
||||
'recache_function' => 'rebuildCache'
|
||||
);
|
||||
|
||||
$CACHE['notifications'] = array(
|
||||
'array' => 1,
|
||||
'allow_unload' => 0,
|
||||
'default_load' => 0,
|
||||
'skip_rebuild_when_upgrading' => 0,
|
||||
'recache_file' => IPS_ROOT_PATH . '/sources/classes/member/notifications.php',
|
||||
'recache_class' => 'notifications',
|
||||
'recache_function' => 'rebuildNotificationsCache'
|
||||
);
|
||||
|
||||
|
||||
if ( IN_DEV )
|
||||
{
|
||||
@@ -276,7 +306,25 @@ class coreVariables
|
||||
$_RESET = array();
|
||||
|
||||
###### New IPB 3.0.0 Redirects ######
|
||||
|
||||
/* Share links */
|
||||
if ( isset( $_REQUEST['sharelink'] ) AND ! isset( $_REQUEST['app'] ) )
|
||||
{
|
||||
/* Some set ups parse ; automagically (bah) */
|
||||
if ( ! strstr( $_REQUEST['sharelink'], ';' ) )
|
||||
{
|
||||
$_REQUEST['sharelink'] = preg_replace( "#sharelink=(.*)$#", "\\1", $_SERVER['QUERY_STRING'] );
|
||||
}
|
||||
|
||||
list( $key, $url, $title ) = explode( ';', $_REQUEST['sharelink'] );
|
||||
$_RESET['url'] = $url;
|
||||
$_RESET['title'] = $title;
|
||||
$_RESET['key'] = $key;
|
||||
$_RESET['app'] = 'core';
|
||||
$_RESET['module'] = 'global';
|
||||
$_RESET['section'] = 'share';
|
||||
}
|
||||
|
||||
if( isset( $_REQUEST['showannouncement'] ) && $_REQUEST['showannouncement'] )
|
||||
{
|
||||
$_RESET['app'] = 'forums';
|
||||
@@ -294,7 +342,7 @@ class coreVariables
|
||||
$_RESET['section'] = 'boards';
|
||||
$_RESET['module'] = 'forums';
|
||||
}
|
||||
|
||||
|
||||
# FORUM
|
||||
if( isset( $_REQUEST['showforum'] ) && $_REQUEST['showforum'] )
|
||||
{
|
||||
@@ -305,12 +353,15 @@ class coreVariables
|
||||
}
|
||||
|
||||
# TOPIC
|
||||
if( isset( $_REQUEST['showtopic'] ) && $_REQUEST['showtopic'] )
|
||||
if( ( isset( $_REQUEST['showtopic'] ) && $_REQUEST['showtopic'] ) OR ( isset($_REQUEST['act']) AND $_REQUEST['act'] == 'ST' ) )
|
||||
{
|
||||
$_RESET['app'] = 'forums';
|
||||
$_RESET['module'] = 'forums';
|
||||
$_RESET['section'] = 'topics';
|
||||
$_RESET['t'] = $_REQUEST['showtopic'];
|
||||
if ( !$_REQUEST['t'] )
|
||||
{
|
||||
$_RESET['t'] = $_REQUEST['showtopic'];
|
||||
}
|
||||
}
|
||||
|
||||
if( ( isset( $_REQUEST['act'] ) && $_REQUEST['act'] == 'findpost' ) || isset( $_REQUEST['findpost'] ) && $_REQUEST['findpost'] )
|
||||
@@ -346,7 +397,7 @@ class coreVariables
|
||||
}
|
||||
|
||||
# SUBSMANAGER - Needed here to redirect stored IPN to new app
|
||||
if ( isset( $_REQUEST['act'] ) && $_REQUEST['act'] == 'paysubs' )
|
||||
if ( isset( $_REQUEST['act'] ) && strtolower($_REQUEST['act']) == 'paysubs' )
|
||||
{
|
||||
$_RESET['app'] = 'subscriptions';
|
||||
|
||||
@@ -418,6 +469,12 @@ class coreVariables
|
||||
$_RESET['section'] = 'printtopic';
|
||||
}
|
||||
|
||||
# Calendar
|
||||
if( isset( $_REQUEST['act'] ) && $_REQUEST['act'] == 'calendar' )
|
||||
{
|
||||
$_RESET['app'] = 'calendar';
|
||||
}
|
||||
|
||||
return $_RESET;
|
||||
}
|
||||
|
||||
@@ -479,12 +536,18 @@ class coreVariables
|
||||
*/
|
||||
public function fetchBitwise()
|
||||
{
|
||||
$_BITWISE = array( 'facebook' => array( 'fbc_s_pic', 'fbc_s_avatar', 'fbc_s_status', 'fbc_s_aboutme' ), // facebook == profile_portal.fb_bwoptions
|
||||
$_BITWISE = array( 'facebook' => array( 'fbc_s_pic', 'fbc_s_avatar', 'fbc_s_status', 'fbc_s_aboutme', 'fbc_si_status' ), // facebook == profile_portal.fb_bwoptions
|
||||
'twitter' => array( 'tc_s_pic', 'tc_s_avatar', 'tc_s_status', 'tc_s_aboutme', 'tc_s_bgimg', 'tc_si_status' ), // twitter = profile_portal.tc_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
|
||||
'bw_no_status_update', # 1 is yes ban, 0 is no, allow
|
||||
'bw_status_email_mine', # 1 is 'send me an email when anyone replies to my status updates', 0 is DO NOT DO WHAT 1 DOES OR ELSE
|
||||
'bw_status_email_all', # 1 is 'send me an email when anyone replies to any status update I replied to', 0 is OMG DO NOT DO THAT
|
||||
'bw_disable_customization', # 1 yeah, 0 nah boi
|
||||
'bw_local_password_set', # 1 means "user was created by remote, but has local password set", 0 means not, or not local user
|
||||
),
|
||||
|
||||
'groups' => array(
|
||||
'gbw_mod_post_unit_type' , # 1 is days, 0 is posts
|
||||
@@ -493,6 +556,21 @@ class coreVariables
|
||||
'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.
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user