!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/lib/php/test/Cache_Lite/tests/   drwxr-xr-x
Free 13.54 GB of 61.93 GB (21.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

function callCache($id$type 'string') {
    global 
$Cache_Lite;
    if (
$data $Cache_Lite->get($id)) {
        echo(
"Cache Hit !\n");
        if (
$type=='string') {
            echo(
$data);
        }
        if (
$type=='array') {
            echo(
serialize($data));
        }
    } else {
        echo(
"Cache Missed !\n");
        if (
$type=='string') {
            
$data '';
            for(
$i=0;$i<10;$i++) {
                
$data .= '0123456789';
            }
            echo(
$data);
        }
        if (
$type=='array') {
            
$data = array(array('foo''bar'), 1'foo''bar');
            echo(
serialize($data));
        }
        
$res $Cache_Lite->save($data);
        if (
is_object($res)) {
            
$message $res->getMessage();
            
$message str_replace(tmpDir(), '<cachedir>/'$message); // Remove system specific cache dir
            
echo "\nPEAR_ERROR : " $message " (#" $res->getCode() . ")\n";
        } else {
            if (!(
$res)) {
                echo 
"\nError when saving cache !\n";
            }
        }
    }
}
    
function 
multipleCallCache($type 'string') {
    global 
$Cache_Lite;
    
    echo 
"==> First call (cache should be missed)\n";
    
callCache('31415926'$type);
    echo 
"\nDone !\n\n";
    
    echo 
"==> Second call (cache should be hit)\n";
    
callCache('31415926'$type);
    echo 
"\nDone !\n\n";
    
    echo 
"==> Third call (cache should be hit)\n";
    
callCache('31415926'$type);
    echo 
"\nDone !\n\n";
    
    echo 
"==> We remove cache\n";
    
$Cache_Lite->remove('31415926');
    echo 
"Done !\n\n";
    
    echo 
"==> Fourth call (cache should be missed)\n";
    
callCache('31415926'$type);
    echo 
"\nDone !\n\n";
    
    echo 
"==> #5 Call with another id (cache should be missed)\n";
    
callCache('3141592653'$type);
    echo 
"\nDone !\n\n";
    
    echo 
"==> We remove cache\n";
    
$Cache_Lite->remove('31415926');
    
$Cache_Lite->remove('3141592653');
    echo 
"Done !\n";
}

function 
callCache2($id$type 'string') {
    global 
$Cache_Lite_Output;
    if (!(
$Cache_Lite_Output->start($id))) {
        if (
$type=='string') {
            
$data '';
            for(
$i=0;$i<10;$i++) {
                
$data .= '0123456789';
            }
            echo(
$data);
        }
        if (
$type=='array') {
            
$data = array(array('foo''bar'), 1'foo''bar');
            echo(
serialize($data));
        }
        
$Cache_Lite_Output->end();
        echo(
"Cache Missed !\n");
    } else {
        echo(
"Cache Hit !\n");
    }
}

function 
multipleCallCache2($type 'string') {
    global 
$Cache_Lite_Output;
    
    echo 
"==> First call (cache should be missed)\n";
    
callCache2('31415926'$type);
    echo 
"\nDone !\n\n";
    
    echo 
"==> Second call (cache should be hit)\n";
    
callCache2('31415926'$type);
    echo 
"\nDone !\n\n";
    
    echo 
"==> Third call (cache should be hit)\n";
    
callCache2('31415926'$type);
    echo 
"\nDone !\n\n";
    
    echo 
"==> We remove cache\n";
    
$Cache_Lite_Output->remove('31415926');
    echo 
"Done !\n\n";
    
    echo 
"==> Fourth call (cache should be missed)\n";
    
callCache2('31415926'$type);
    echo 
"\nDone !\n\n";
    
    echo 
"==> #5 Call with another id (cache should be missed)\n";
    
callCache2('3141592653'$type);
    echo 
"\nDone !\n\n";
    
    echo 
"==> We remove cache\n";
    
$Cache_Lite_Output->remove('31415926');
    
$Cache_Lite_Output->remove('3141592653');
    echo 
"Done !\n";
}

function 
multipleCallCache3_1($type 'string') {
    global 
$Cache_Lite;
       
    echo 
"==> #6 call (cache should be missed)\n";
    
callCache('31415926'$type);
    echo 
"\nDone !\n\n";
    
    echo 
"==> #7 call (cache should be hit)\n";
    
callCache('31415926'$type);
    echo 
"\nDone !\n\n";
}

function 
multipleCallCache3_2($type 'string') {
    global 
$Cache_Lite;
      
    echo 
"==> #8 call (cache should be missed)\n";
    
callCache('31415926'$type);
    echo 
"\nDone !\n\n";
    
    echo 
"==> We remove cache\n";
    
$Cache_Lite->remove('31415926');
    echo 
"Done !\n";
    
}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4757 ]--