CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/root/usr/local/rvglobalsoft/rvglobalsoft/auto/rvsitebuilderinstaller/
Upload File :
Current File : //proc/2/root/usr/local/rvglobalsoft/rvglobalsoft/auto/rvsitebuilderinstaller/testloader.php

<?php
echo '<pre>';
$__oc = strtolower(substr(php_uname(),0,3));
$__ln = '/ioncube/ioncube_loader_' . $__oc . '_' . substr(phpversion(),0,3) . (($__oc == 'win')?'.dll':'.so');
echo 'Loader file : ' . $__ln . "\n";
if (!file_exists($__ln)) {
    $loaderPK = getLoaderFile();
    echo 'Sorry, find not found ' . $__ln . ' ,please install ionCube by SSH to your server with ROOT access and follow this command' . "\n";
    echo "cd /;\n";
    echo "wget http://download.rvglobalsoft.com/loader/ioncube/" . $loaderPK . " -O " . $loaderPK . ";\n";
    echo "tar -jxf " . $loaderPK . ";\n";
    echo "chown root.root -R /ioncube;\n";
    exit;
} else {
    echo "Test loader by dl\n";
    $fdl = preg_replace('/\/([^\/]+)/','../',dirname(__FILE__)) . $__ln;
    echo "Loader with type I\n\n";
    dl($fdl);
    
    if ( !extension_loaded('ionCube Loader') ) {
        $fdl = '../../../../../../../../' . $__ln;
        dl($fdl);
        if ( !extension_loaded('ionCube Loader') ) {
            echo "Your php system have some problem, it cannot load ionCube to extensions. Please see error detel.\n";
            
            if (!is_dir('/usr/local/cpanel/3rdparty/lib/php/extensions')) {
              echo "Cannot found php extensions directory.";  
            }
            exit;
        } 
    }
}
print "OK, For now your php system load ionCube to extensions completed.\n";
exit;


function getLoaderFile() 
{
    $machinetype = php_uname('m');
    $osType = strtolower(substr(php_uname(),0,3));
    if ($osType == 'dar') {
        $machineType = 'ppc';
    } elseif ($osType == 'fre') {
        if ( preg_match('/64/i', $machinetype, $aMatch)) {
            $machineType = 'AMD64';
        } else {
            $machineType = 'x86';
        }
    } elseif ($osType == 'lin') {
        if ( preg_match('/64/i', $machinetype, $aMatch)) {
            $machineType = 'x86-64';
        } elseif ( preg_match('/ppc/i', $machinetype, $aMatch)) {
            $machineType = 'ppc';
        } elseif ( preg_match('/sparc/i', $machinetype, $aMatch)) {
            $machineType = 'sparc';
        } else {
            $machineType = 'x86';
        }
    } elseif ($osType == 'ope') {
        $osVersion = php_uname('v');
        if (preg_match('/3\.7/i', $osVersion, $aMatch) ) {
            $machineType = '3.7';
        } else {
            $machineType = 'x86';
        }
    } elseif ($osType == 'sun') {
        if ( preg_match('/sparc/i', $machinetype, $aMatch)) {
            $machineType = 'sparc';
        } else {
            $machineType = 'x86';
        }
    } elseif ($osType == 'win') {
        $machineType = 'x86';
    }
    return 'ioncube_loaders_' . $osType . '_' . $machineType . '.tar.bz2';
}
?>

Copyright 2K16 - 2K18 Indonesian Hacker Rulez