Version 3.4.5
This commit is contained in:
1 parent
fb6b5baabc
commit
e4478369d8
1360 files changed
+228921
-179445
No files matched your search
@@ -3,9 +3,9 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* IP.Board v3.4.5
|
||||
* Skin Functions
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* Last Updated: $Date: 2013-05-07 22:02:49 -0400 (Tue, 07 May 2013) $
|
||||
* </pre>
|
||||
*
|
||||
* Owner: Matt
|
||||
@@ -15,7 +15,7 @@
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 9th March 2005 11:03
|
||||
* @version $Revision: 10914 $
|
||||
* @version $Revision: 12236 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -222,7 +222,7 @@ class skinFunctions
|
||||
else
|
||||
{
|
||||
$REMAP = array();
|
||||
require( DOC_IPS_ROOT_PATH . 'cache/skin_cache/masterMap.php' );/*noLibHook*/
|
||||
require( IPS_CACHE_PATH . 'cache/skin_cache/masterMap.php' );/*noLibHook*/
|
||||
|
||||
if ( is_array($REMAP) && count($REMAP) )
|
||||
{
|
||||
@@ -1541,6 +1541,9 @@ class skinFunctions
|
||||
//-----------------------------------------
|
||||
|
||||
$this->rebuildCSS( $setID );
|
||||
|
||||
/* Flush CDN */
|
||||
$this->flushipscdn();
|
||||
|
||||
//-----------------------------------------
|
||||
// Remove dead-uns?
|
||||
@@ -1643,6 +1646,9 @@ class skinFunctions
|
||||
|
||||
$this->rebuildCSS( $setID );
|
||||
|
||||
/* Flush CDN */
|
||||
$this->flushipscdn();
|
||||
|
||||
//-----------------------------------------
|
||||
// Grab the next template bit inline...
|
||||
//-----------------------------------------
|
||||
@@ -2263,7 +2269,7 @@ class skinFunctions
|
||||
//-----------------------------------------
|
||||
|
||||
$this->rebuildPHPTemplates( $setID, $template['template_group'] );
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Return
|
||||
//-----------------------------------------
|
||||
@@ -2739,6 +2745,9 @@ class skinFunctions
|
||||
$this->rebuildPHPTemplates( $setId );
|
||||
}
|
||||
|
||||
/* Flush CDN */
|
||||
$this->flushipscdn();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -2981,4 +2990,18 @@ class skinFunctions
|
||||
$this->DB->update( 'skin_collections', array( 'set_locked_uagent' => serialize( $old ) ), "set_key='mobile'" );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Flush IPS CDN Cache
|
||||
*/
|
||||
public function flushipscdn()
|
||||
{
|
||||
if ( ipsRegistry::$settings['ips_cdn'] )
|
||||
{
|
||||
require_once IPS_KERNEL_PATH . 'classFileManagement.php';
|
||||
$cfm = new classFileManagement();
|
||||
$cfm->timeout = 1;
|
||||
$cfm->getFileContents( "http://license.invisionpower.com/?a=cdnflush&key=" . ipsRegistry::$settings['ipb_reg_number'] . "&version=" . IPB_LONG_VERSION );
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user