Server IP : 104.21.14.103 / Your IP : 18.119.106.176 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/khowordpress.com/wp-content/plugins/duplicator-pro/lib/onedrive/src/Krizalys/Onedrive/ |
Upload File : |
<?php namespace DuplicatorPro\Krizalys\Onedrive; defined("ABSPATH") or die(""); class StreamOpener { private static $uris = [ StreamBackEnd::MEMORY => 'php://memory', StreamBackEnd::TEMP => 'php://temp', ]; /** * Opens a stream given a stream back end. * * @param int $streamBackEnd The stream back end. * * @return bool|resource The open stream. * * @throws \Exception Thrown if the stream back end given is not supported. */ public function open($streamBackEnd) { if (!array_key_exists($streamBackEnd, self::$uris)) { throw new \Exception("Unsupported stream back end: $streamBackEnd"); } $uri = self::$uris[$streamBackEnd]; return fopen($uri, 'rw+b'); } }