ProShell v2.0
Dashboard
Server Info
Server: 158.106.128.192
PHP: 8.2.33
home
planet5
public_html
bansibaba.com
wp-includes
2026-09-18 03:12:25
Editing: JointOutputStream.php
Cancel
Save Changes
<?php /** * Swift Mailer Joint Output stream to chain multiple output streams together * Please read the LICENSE file * @author Chris Corbyn <chris@w3style.co.uk> * @package Swift_Cache * @license GNU Lesser General Public License */ require_once dirname(__FILE__) . "/../ClassLoader.php"; Swift_ClassLoader::load("Swift_Cache_OutputStream"); /** * Makes multiple output streams act as one super sream * @package Swift_Cache * @author Chris Corbyn <chris@w3style.co.uk> */ class Swift_Cache_JointOutputStream extends Swift_Cache_OutputStream { /** * The streams to join * @var array */ var $streams = array(); /** * The current stream in use * @var int */ var $pointer = 0; /** * Ctor * @param array An array of Swift_Cache_OutputStream instances */ function Swift_Cache_JointOutputStream(&$streams) { $this->streams =& $streams; } /** * Add a new output stream * @param Swift_Cache_OutputStream */ function addStream(&$stream) { $this->streams[] =& $stream; } /** * Read data from all streams as if they are one stream * @param int The number of bytes to read from each stream * @return string */ function read($size=null) { $ret = $this->streams[$this->pointer]->read($size); if ($ret !== false) { return $ret; } else { if (isset($this->streams[($this->pointer+1)])) { $this->pointer++; return $this->read($size); } else { $this->pointer = 0; return false; } } } }
Upload Files
Cancel
Upload
Create New
Cancel
Create
Change Permissions
Cancel
Save
Change Date
Cancel
Save
Rename Item
Cancel
Save
Confirm Delete
Are you sure you want to delete the selected items?
Cancel
Delete