[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ustar.php
File is not writable. Editing disabled.
<?php /** * File containing the ezcArchiveUstarTar class. * * @package Archive * @version 1.4.1 * @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved. * @license http://ez.no/licenses/new_bsd New BSD License */ /** * The ezcArchiveUstarTar class implements the Tar ustar archive format. * * ezcArchiveUstarTar is a subclass from {@link ezcArchive} that provides the common interface, * and {@link ezcArchiveV7Tar} that provides the basic Tar implementation. * * ezcArchiveUstarTar reads on creation only the first {@link ezcArchiveEntry entry} from the archive. * When needed next entries are read. * * The Ustar Tar algorithm is an extension of V7 Tar. Ustar has the following extended features: * - Filenames up to 255 characters. * - Stores the owner and group by ID and Name. * - Can archive: regular files, symbolic links, hard links, fifo's, and devices. * * @package Archive * @version 1.4.1 */ class ezcArchiveUstarTar extends ezcArchiveV7Tar implements Iterator { /** * Initializes the Tar and tries to read the first entry from the archive. * * At initialization it sets the blockFactor to $blockFactor. Each tar archive * has always $blockFactor of blocks ( 0, $blockFactor, 2 * $blockFactor, etc ). * * The Tar archive works with blocks, so therefore the first parameter expects * the archive as a blockFile. * * @param ezcArchiveBlockFile $blockFile * @param int $blockFactor */ public function __construct( ezcArchiveBlockFile $blockFile, $blockFactor = 20 ) { parent::__construct( $blockFile, $blockFactor ); } /** * Returns the value which specifies a TAR_USTAR algorithm. * * @return int */ public function getAlgorithm() { return self::TAR_USTAR; } /** * Returns true because the TAR_USTAR algorithm can write. * * @see isWritable() * * @return bool */ public function algorithmCanWrite() { return true; } /** * Creates the a new ustar tar header for this class. * * This method expects an {@link ezcArchiveBlockFile} that points to the header that should be * read (and created). If null is given as block file, an empty header will be created. * * @param string|null $file * @return ezcArchiveUstarHeader */ protected function createTarHeader( $file = null) { return new ezcArchiveUstarHeader( $file ); } } ?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 782.7 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: N/A