!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/gateway.picotech.app/public_html/vendor/ramsey/uuid/src/Fields/   drwxr-xr-x
Free 28.48 GB of 117.98 GB (24.14%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SerializableFieldsTrait.php (1.95 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * This file is part of the ramsey/uuid library
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
 * @license http://opensource.org/licenses/MIT MIT
 */

declare(strict_types=1);

namespace 
Ramsey\Uuid\Fields;

use 
ValueError;

use function 
base64_decode;
use function 
sprintf;
use function 
strlen;

/**
 * Provides common serialization functionality to fields
 *
 * @psalm-immutable
 */
trait SerializableFieldsTrait
{
    
/**
     * @param string $bytes The bytes that comprise the fields
     */
    
abstract public function __construct(string $bytes);

    
/**
     * Returns the bytes that comprise the fields
     */
    
abstract public function getBytes(): string;

    
/**
     * Returns a string representation of object
     */
    
public function serialize(): string
    
{
        return 
$this->getBytes();
    }

    
/**
     * @return array{bytes: string}
     */
    
public function __serialize(): array
    {
        return [
'bytes' => $this->getBytes()];
    }

    
/**
     * Constructs the object from a serialized string representation
     *
     * @param string $data The serialized string representation of the object
     *
     * @psalm-suppress UnusedMethodCall
     */
    
public function unserialize(string $data): void
    
{
        if (
strlen($data) === 16) {
            
$this->__construct($data);
        } else {
            
$this->__construct(base64_decode($data));
        }
    }

    
/**
     * @param array{bytes?: string} $data
     *
     * @psalm-suppress UnusedMethodCall
     */
    
public function __unserialize(array $data): void
    
{
        
// @codeCoverageIgnoreStart
        
if (!isset($data['bytes'])) {
            throw new 
ValueError(sprintf('%s(): Argument #1 ($data) is invalid'__METHOD__));
        }
        
// @codeCoverageIgnoreEnd

        
$this->unserialize($data['bytes']);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0035 ]--