!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/apex_tdfonline/php/3ros/jscomp/   drwxr-xr-x
Free 14.56 GB of 61.93 GB (23.51%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     BaseConvert.class.php (1.63 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * BaseConvert class,
 *    converts an unsigned base 10 integer to a different base and vice versa.
 * ______________________________________________________________
 * BaseConvert
 *    |
 *    |________ constructor(newBase:string)
 *    |             uses newBase string var for convertion
 *    |                 [i.e. "0123456789abcdef" for an hex convertion]
 *    |
 *    |________ toBase(unsignedInteger:uint):string
 *    |             return base value of input
 *    |
 *    |________ fromBase(baseString:string):uint
 *                  return base 10 integer value of base input
 * --------------------------------------------------------------
 * REMEMBER: PHP < 6 doesn't work correctly with integer greater than 2147483647 (2^31 - 1)
 * --------------------------------------------------------------
 * @Compatibility    >= PHP 4
 * @Author        Andrea Giammarchi
 * @Site        http://www.devpro.it/
 * @Date        2006/06/05
 * @Version        1.0
 */
class BaseConvert {
    
    var    
$base$baseLength;
    
    function 
BaseConvert($base) {
        
$this->base = &$base;
        
$this->baseLength strlen($base);
    }
    
    function 
toBase($num) {
        
$module 0$result '';
        while(
$num) {
            
$result $this->base{($module $num $this->baseLength)}.$result;
            
$num = (int)(($num $module) / $this->baseLength);
        }
        return 
$result !== '' $result $this->base{0};
    }
    
    function 
fromBase($str) {
        
$pos 0$len strlen($str) - 1$result 0;
        while(
$pos $len)
            
$result += pow($this->baseLength, ($len $pos)) * strpos($this->base$str{($pos++)});
        return 
$len >= $result strpos($this->base$str{($pos)}) : null;
    }
}
?>

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