ホーム » ブログ » 2006年01月 » ionCube encoderでエンコードされたphpの冒頭部分を整形したソースコード(メモ的エントリ)

ionCube encoderでエンコードされたphpの冒頭部分を整形したソースコード(メモ的エントリ)

2006-01-05 written by akiyan | このエントリーを含むはてなブックマーク このエントリーを含むはてなブックマーク
if(!extension_loaded('ionCube Loader')){
    $__oc=strtolower(substr(php_uname(),0,3));
    $__ln='/ioncube/ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');
    $__oid=$__id=realpath(ini_get('extension_dir'));
    $__here=dirname(__FILE__);
    if((@$__id[1])==':'){
        $__id=str_replace('\\','/',substr($__id,2));
        $__here=str_replace('\\','/',substr($__here,2));
    }
    $__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';
    $__i=strlen($__rd);
    while($__i--){
        if($__rd[$__i]=='/'){
            $__lp=substr($__rd,0,$__i).$__ln;
            if(file_exists($__oid.$__lp)){
                $__ln=$__lp;
                break;
            }
        }
    }
    @dl($__ln);
} else {
    die('The file '.__FILE__." is corrupted.\n");
}
if(function_exists('_il_exec')){
    return _il_exec();
}
echo('The file <b>'.__FILE__.'</b> has been encoded with the <a href="http://www.ioncube.com">ionCube PHP Encoder</a> and requires the free '.basename($__ln).' <a href="http://www.ioncube.com/loaders.php">ionCube PHP Loader</a> to be installed.');
exit(199);
2006-01-05 written by akiyan | 記事 | このエントリーを含むはてなブックマーク このエントリーを含むはてなブックマーク

コメント

投稿



本文と関連性の無いコメントは削除することがあります。予めご了承ください。

トラックバック

このエントリへのトラックバックURLは
http://www.akiyan.com/cgi/mt/mt-tb.cgi/175
です。トラックバック元のエントリに当サイトへのリンクが無い場合はトラックバックを削除することがあります。