Version 3.2.3

This commit is contained in:
Neo committed 2025-12-19 00:34:03 -08:00
1 parent ae5c01cc78
commit 78706903a2
2641 files changed
+228363 -201264

No files matched your search

@@ -3,19 +3,19 @@
/**
* <pre>
* Invision Power Services
* IP.Board v3.1.4
* IP.Board v3.2.3
* Skin Functions
* Last Updated: $Date: 2010-09-13 05:53:37 -0400 (Mon, 13 Sep 2010) $
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
* </pre>
*
* Owner: Matt
* @author $Author: terabyte $
* @author $Author: ips_terabyte $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/community/board/license.html
* @license This is NULLED!
* @package IP.Board
* @link http://www.invisionpower.com
* @link http://hatynka.in
* @since 9th March 2005 11:03
* @version $Revision: 6854 $
* @version $Revision: 8644 $
*
*/
@@ -39,7 +39,9 @@ class skinImportExport extends skinCaching
protected $request;
protected $lang;
protected $member;
protected $memberData;
protected $cache;
protected $caches;
/**#@-*/
/**
@@ -47,7 +49,7 @@ class skinImportExport extends skinCaching
*
* @access public
* @param object Registry object
* @return void
* @return @e void
*/
public function __construct( ipsRegistry $registry )
{
@@ -164,7 +166,7 @@ class skinImportExport extends skinCaching
// Grab the XMLArchive class
//-----------------------------------------
require_once( IPS_KERNEL_PATH . 'classXMLArchive.php' );
require_once( IPS_KERNEL_PATH . 'classXMLArchive.php' );/*noLibHook*/
$xmlArchive = new classXMLArchive();
$xmlArchive->readXML( $content );
@@ -296,7 +298,7 @@ class skinImportExport extends skinCaching
// Grab the XMLArchive class
//-----------------------------------------
require_once( IPS_KERNEL_PATH . 'classXMLArchive.php' );
require_once( IPS_KERNEL_PATH . 'classXMLArchive.php' );/*noLibHook*/
$xmlArchive = new classXMLArchive();
$xmlArchive->readXML( $content );
@@ -409,14 +411,14 @@ class skinImportExport extends skinCaching
'set_author_url' => $info['set_author_url'],
'set_image_dir' => ( $imageDir ) ? $imageDir : $defaultSkin['set_image_dir'],
'set_emo_dir' => $defaultSkin['set_emo_dir'],
'set_css_inline' => 0,
'set_css_inline' => 1,
'set_output_format' => $info['set_output_format'],
'set_css_groups' => '',
'set_hide_from_list' => 1, // Per Rikki :P
'set_order' => intval( $this->fetchHighestSetPosition() ) + 1,
'set_master_key' => ( isset( $info['set_master_key'] ) ) ? $info['set_master_key'] : 'root',
'set_updated' => time() );
if ( $setID )
{
//-----------------------------------------
@@ -669,7 +671,7 @@ class skinImportExport extends skinCaching
// XML
//-----------------------------------------
require_once( IPS_KERNEL_PATH.'classXML.php' );
require_once( IPS_KERNEL_PATH.'classXML.php' );/*noLibHook*/
$xml = new classXML( IPS_DOC_CHAR_SET );
$return = array();
@@ -710,7 +712,7 @@ class skinImportExport extends skinCaching
// XML
//-----------------------------------------
require_once( IPS_KERNEL_PATH.'classXML.php' );
require_once( IPS_KERNEL_PATH.'classXML.php' );/*noLibHook*/
$xml = new classXML( IPS_DOC_CHAR_SET );
$return = array();
@@ -751,7 +753,7 @@ class skinImportExport extends skinCaching
// XML
//-----------------------------------------
require_once( IPS_KERNEL_PATH.'classXML.php' );
require_once( IPS_KERNEL_PATH.'classXML.php' );/*noLibHook*/
$xml = new classXML( IPS_DOC_CHAR_SET );
$return = array();
@@ -787,7 +789,7 @@ class skinImportExport extends skinCaching
// XML
//-----------------------------------------
require_once( IPS_KERNEL_PATH.'classXML.php' );
require_once( IPS_KERNEL_PATH.'classXML.php' );/*noLibHook*/
$xml = new classXML( IPS_DOC_CHAR_SET );
//-----------------------------------------
@@ -834,7 +836,7 @@ class skinImportExport extends skinCaching
// Create new XML archive...
//-----------------------------------------
require_once( IPS_KERNEL_PATH . 'classXMLArchive.php' );
require_once( IPS_KERNEL_PATH . 'classXMLArchive.php' );/*noLibHook*/
$xmlArchive = new classXMLArchive();
$xmlArchive->setStripPath( $this->fetchImageDirectoryPath( $imgDir ) );
$xmlArchive->add( $this->fetchImageDirectoryPath( $imgDir ) );
@@ -881,7 +883,7 @@ class skinImportExport extends skinCaching
continue;
}
if ( isset( $data['app_enabled'] ) AND $data['app_enabled'] )
if ( !empty( $data['app_enabled'] ) )
{
$templates[ $appDir ] = $this->generateTemplateXML( $appDir, $setID, $setOnly );
$csss[ $appDir ] = $this->generateCSSXML( $appDir, $setID, $setOnly );
@@ -921,7 +923,7 @@ class skinImportExport extends skinCaching
// Create new XML archive...
//-----------------------------------------
require_once( IPS_KERNEL_PATH . 'classXMLArchive.php' );
require_once( IPS_KERNEL_PATH . 'classXMLArchive.php' );/*noLibHook*/
$xmlArchive = new classXMLArchive();
/* Add in version numbers */
@@ -955,7 +957,7 @@ class skinImportExport extends skinCaching
* @access public
* @param int [Set ID - 0/root if omitted]
* @param bool Include root bits in any XML export. Default is true
* @return void
* @return @e void
*/
public function exportAllAppTemplates( $setID=0, $setOnly=TRUE )
{
@@ -1004,7 +1006,7 @@ class skinImportExport extends skinCaching
*
* @access public
* @param int [Set ID - 0/root if omitted]
* @return void
* @return @e void
*/
public function exportAllAppCSS( $setID=0 )
{
@@ -1055,7 +1057,7 @@ class skinImportExport extends skinCaching
*
* @todo See Matt, this needs fixing!
* @access public
* @return void
* @return @e void
*/
public function importAllAppTemplates()
{
@@ -1070,7 +1072,7 @@ class skinImportExport extends skinCaching
{
$file = IPSLib::getAppDir( $app_dir ) . '/xml/' . $app_dir . '_templates.xml';
if ( ! file_exists( $file ) )
if ( ! is_file( $file ) )
{
$this->_addMessage( $app_dir . $this->lang->words['importnothingtoimport'] );
continue;
@@ -1136,7 +1138,7 @@ class skinImportExport extends skinCaching
'set_permissions' => '*',
'set_is_default' => 1,
'set_author_name' => 'Invision Power Services, Inc',
'set_author_url' => 'http://www.bestcms.ws',
'set_author_url' => 'http://www.invisionpower.com',
'set_image_dir' => 'master',
'set_emo_dir' => 'default',
'set_css_inline' => 1,
@@ -1173,7 +1175,7 @@ class skinImportExport extends skinCaching
'set_permissions' => '*',
'set_is_default' => 1,
'set_author_name' => 'Invision Power Services, Inc',
'set_author_url' => 'http://www.bestcms.ws',
'set_author_url' => 'http://www.invisionpower.com',
'set_image_dir' => $remap[ $_id ]['set_image_dir'],
'set_emo_dir' => 'default',
'set_css_inline' => 1,
@@ -1215,7 +1217,7 @@ class skinImportExport extends skinCaching
// Grab the XML parser
//-----------------------------------------
require_once( IPS_KERNEL_PATH.'classXML.php' );
require_once( IPS_KERNEL_PATH.'classXML.php' );/*noLibHook*/
$xml = new classXML( IPS_DOC_CHAR_SET );
//-----------------------------------------
@@ -1283,7 +1285,7 @@ class skinImportExport extends skinCaching
// Grab the XML parser
//-----------------------------------------
require_once( IPS_KERNEL_PATH.'classXML.php' );
require_once( IPS_KERNEL_PATH.'classXML.php' );/*noLibHook*/
$xml = new classXML( IPS_DOC_CHAR_SET );
//-----------------------------------------
@@ -1374,7 +1376,7 @@ class skinImportExport extends skinCaching
// Grab the XML parser
//-----------------------------------------
require_once( IPS_KERNEL_PATH . 'classXML.php' );
require_once( IPS_KERNEL_PATH . 'classXML.php' );/*noLibHook*/
$xml = new classXML( IPS_DOC_CHAR_SET );
//-----------------------------------------
@@ -1436,13 +1438,13 @@ class skinImportExport extends skinCaching
$infoXML = IPSLib::getAppDir( $app ) . '/xml/information.xml';
if ( ! file_exists( $infoXML ) )
if ( ! is_file( $infoXML ) )
{
$this->_addErrorMessage( $this->lang->words['couldnotlocate'] . $infoXML );
return FALSE;
}
require_once( IPS_KERNEL_PATH.'classXML.php' );
require_once( IPS_KERNEL_PATH.'classXML.php' );/*noLibHook*/
$xml = new classXML( IPS_DOC_CHAR_SET );
//-----------------------------------------
@@ -1607,7 +1609,7 @@ class skinImportExport extends skinCaching
// Grab the XML parser
//-----------------------------------------
require_once( IPS_KERNEL_PATH.'classXML.php' );
require_once( IPS_KERNEL_PATH.'classXML.php' );/*noLibHook*/
$xml = new classXML( IPS_DOC_CHAR_SET );
//-----------------------------------------
@@ -1653,7 +1655,7 @@ class skinImportExport extends skinCaching
// File exists
//-----------------------------------------
if ( ! file_exists( $fileXML ) )
if ( ! is_file( $fileXML ) )
{
return FALSE;
}
@@ -1728,7 +1730,7 @@ class skinImportExport extends skinCaching
* @access public
* @param string App to export into
* @param int Set ID (0 / root by default )
* @return void
* @return @e void
*/
public function exportCSSAppXML( $app_dir, $setID=0 )
{
@@ -1751,7 +1753,7 @@ class skinImportExport extends skinCaching
if ( $xml )
{
if ( file_exists( $file ) AND ! IPSLib::isWritable( $file ) )
if ( is_file( $file ) AND ! IPSLib::isWritable( $file ) )
{
$this->_addErrorMessage( $file . $this->lang->words['css_isnotwritable'] );
return FALSE;
@@ -1770,7 +1772,7 @@ class skinImportExport extends skinCaching
* @param string App to export into
* @param int [Set ID (0/root if omitted)]
* @param bool Include root bits in any XML export. Default is true
* @return void
* @return @e void
*/
public function exportTemplateAppXML( $app_dir, $setID=0, $setOnly=TRUE )
{
@@ -1793,7 +1795,7 @@ class skinImportExport extends skinCaching
if ( $xml )
{
if ( file_exists( $file ) AND ! IPSLib::isWritable( $file ) )
if ( is_file( $file ) AND ! IPSLib::isWritable( $file ) )
{
$this->_addErrorMessage( $file . $this->lang->words['css_isnotwritable'] );
return FALSE;
@@ -1828,7 +1830,7 @@ class skinImportExport extends skinCaching
$return = array( 'updateCount' => 0, 'insertCount' => 0, 'updateBits' => array(), 'insertBits' => array() );
$masterKeys = $this->fetchMasterKeys();
if( ! file_exists($fileXML) )
if( ! is_file($fileXML) )
{
return $return;
}
@@ -1861,7 +1863,7 @@ class skinImportExport extends skinCaching
// XML
//-----------------------------------------
require_once( IPS_KERNEL_PATH.'classXML.php' );
require_once( IPS_KERNEL_PATH.'classXML.php' );/*noLibHook*/
$xml = new classXML( IPS_DOC_CHAR_SET );
//-----------------------------------------