Version 3.1.4

This commit is contained in:
Neo committed 2025-12-19 00:32:22 -08:00
1 parent 1d4720f3e2
commit ae5c01cc78
2563 files changed
+283048 -240689

No files matched your search

+44 -9
View File
@@ -1,18 +1,21 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.0.5
* IP.Board v3.1.4
* XML Archive Hanlder: Can create XML Archives (gzips) of multiple files, binary and ascii
* Last Updated: $Date: 2009-06-09 11:51:16 -0400 (Tue, 09 Jun 2009) $
* Last Updated: $Date: 2010-06-15 09:23:05 -0400 (Tue, 15 Jun 2010) $
* </pre>
*
* @author $Author: matt $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.iinvisionpower.com/community/board/license.html
* @package Invision Power Services Kernel
* @link http://www.iinvisionpower.com
* @license http://www.invisionpower.com/community/board/license.html
* @package IP.Board
* @subpackage Kernel
* @link http://www.invisionpower.com
* @since 25th February 2004
* @version $Revision: 280 $
* @version $Revision: 425 $
*
*
* Example Usage:
@@ -136,8 +139,16 @@ class classXMLArchive
* @access private
* @var boolean
*/
private $_allowHiddenFiles = FALSE;
private $_allowHiddenFiles = FALSE;
/**
* Root tag values
*
* @access private
* @var array
*/
private $_defaultRootValues = array();
/**
* Constructor
*
@@ -154,9 +165,33 @@ class classXMLArchive
require_once( dirname( __FILE__ ) . '/classXML.php' );
$this->_xml = new classXML( IPS_DOC_CHAR_SET );
/* Set up the root values */
$this->_defaultRootValues = array( 'generator' => 'IPS_KERNEL', 'created' => time() );
$this->error_number = 0;
}
/**
* Adds values to the root tag
*
* @access public
* @return null
*/
public function addRootTagValues( $array=array() )
{
if ( is_array( $array ) AND count( $array ) )
{
foreach( $array as $k => $v )
{
if ( $k and $v != '' )
{
$this->_defaultRootValues[ $k ] = $v;
}
}
}
}
/**
* Allow hidden files to be added when using addDir
*
@@ -610,7 +645,7 @@ class classXMLArchive
private function _create()
{
$this->_xml->newXMLDocument();
$this->_xml->addElement( 'xmlarchive', '', array( 'generator' => 'IPS_KERNEL', 'created' => time() ) );
$this->_xml->addElement( 'xmlarchive', '', (array)$this->_defaultRootValues );
$this->_xml->addElement( 'fileset', 'xmlarchive' );
foreach( $this->_fileArray as $f )