o dele eh otimo
tah aqui o arquivo para vc testar
test.php
Código PHP:
<?php
/*Test file to determine if Zend or ionCube will work on your server*/
function zn_system_info()
{
ob_start();
phpinfo(INFO_GENERAL);
$info = ob_get_contents();
ob_end_clean();
if (strpos($info, 'Zend Optimizer')){
if (strpos($info, 'Zend Optimizer v2.1')){
return "old";
}
else{
return "true";
}
}
}
function dl_system_info()
{
ob_start();
phpinfo(INFO_GENERAL);
$info = ob_get_contents();
ob_end_clean();
return strpos($info, 'Zend Optimizer');
}
//
// ionCube Run Time Loading Compatibility Tester
// Copyright (c) 2002-2003 ionCube Ltd.
// Detect some system parameters
//
function ic_system_info()
{
$thread_safe = false;
$debug_build = false;
$cgi_cli = false;
$php_ini_path = '';
ob_start();
phpinfo(INFO_GENERAL);
$php_info = ob_get_contents();
ob_end_clean();
foreach (split("\n",$php_info) as $line) {
if (eregi('command',$line)) {
continue;
}
if (eregi('thread safety.*(enabled|yes)',$line)) {
$thread_safe = true;
}
if (eregi('debug.*(enabled|yes)',$line)) {
$debug_build = true;
}
if (eregi("configuration file.*(</B></td><TD ALIGN=\"left\">| => |v\">)([^ <]*)(.*</td.*)?",$line,$match)) {
$php_ini_path = $match[2];
if (!@file_exists($php_ini_path)) {
$php_ini_path = '';
}
}
$cgi_cli = ((strpos(php_sapi_name(),'cgi') !== false) ||
(strpos(php_sapi_name(),'cli') !== false));
}
return array('THREAD_SAFE' => $thread_safe,
'DEBUG_BUILD' => $debug_build,
'PHP_INI' => $php_ini_path,
'CGI_CLI' => $cgi_cli);
}
// ------------------------------------------------------------------------------------
error_reporting(E_ALL&~E_NOTICE);
$nl = ((php_sapi_name() == 'cli') ? "\n" : '<br>');
$ok = true;
$already_installed = false;
$install = false;
$ion_good = '';
$here = dirname(__FILE__);
if (extension_loaded('ionCube Loader')) {
$already_installed = true;
$ion_good = "yes";
}
$sys_info = ic_system_info();
$ion_error = '';
if (!$already_installed) {
if ($sys_info['THREAD_SAFE'] && !$sys_info['CGI_CLI']) {
$ion_error = $ion_error."Your PHP install appears to have threading support and run-time Loading
is only possible on threaded web servers if using the CGI, FastCGI or
CLI interface.$nl${nl}To run encoded files please install the Loader in the php.ini file.$nl";
$ok = false;
}
if ($sys_info['DEBUG_BUILD']) {
$ion_error = $ion_error."Your PHP installation appears to be built with debugging support
enabled and this is incompatible with ionCube Loaders.$nl${nl}Debugging support in PHP produces slower execution, is
not recommended for production builds and was probably a mistake.${nl}${nl}You should rebuild PHP without the --enable-debug option and if
you obtained your PHP install from an RPM then the producer of the
RPM should be notified so that it can be corrected.$nl";
$ok = false;
}
if (ini_get('safe_mode')) {
$ion_error = $ion_error."PHP safe mode is enabled and run time loading will not be possible.$nl";
$ok = false;
} elseif (!is_dir(realpath(ini_get('extension_dir')))) {
$ion_error = $ion_error."The setting of extension_dir in the php.ini file is not a directory
or may not exist and run time loading will not be possible. You do not need
write permissions on the extension_dir but for run-time loading to work
a path from the extensions directory to wherever the Loader is installed
must exist.$nl";
$ok = false;
}
if ($ok) {
$test_old_name = false;
$_u = php_uname();
$_os = substr($_u,0,strpos($_u,' '));
$_os_key = strtolower(substr($_u,0,3));
$_php_version = phpversion();
$_php_family = substr($_php_version,0,3);
$_loader_sfix = (($_os_key == 'win') ? '.dll' : '.so');
$_ln_old="ioncube_loader.$_loader_sfix";
$_ln_old_loc="/ioncube/$_ln_old";
$_ln_new="ioncube_loader_${_os_key}_${_php_family}${_loader_sfix}";
$_ln_new_loc="/ioncube/$_ln_new";
$_oid = $_id = realpath(ini_get('extension_dir'));
$_here = dirname(__FILE__);
if ((@$_id[1]) == ':') {
$_id = str_replace('\\','/',substr($_id,2));
$_here = substr($_here,2);
}
$_rd=str_repeat('/..',substr_count($_id,'/')).$_here.'/';
$_rd = str_replace('\\','/',$_rd);
$_ln = '';
$_i=strlen($_rd);
while($_i--) {
if($_rd[$_i]=='/') {
if ($test_old_name) {
$_lp=substr($_rd,0,$_i).$_ln_old_loc;
$_fqlp=$_oid.$_lp;
$_fqlp = str_replace('\\','/',$_fqlp);
$nl = str_replace('\\','/',$nl);
if(@file_exists($_fqlp)) {
$_ln=$_lp;
break;
}
}
$_lp=substr($_rd,0,$_i).$_ln_new_loc;
$_fqlp=$_oid.$_lp;
if(@file_exists($_fqlp)) {
$_fqlp = str_replace('\\','/',$_fqlp);
$_ln=$_lp;
break;
}
}
}
if (!$_ln) {
if ($test_old_name) {
if (@file_exists($_id.$_ln_old_loc)) {
$_ln = $_ln_old_loc;
}
}
if (@file_exists($_id.$_ln_new_loc)) {
$_ln = $_ln_new_loc;
}
}
if ($_ln) {
@dl($_ln);
if(extension_loaded('ionCube Loader')) {
$ion_good = "yes";
} else {
$ion_error = $ion_error."The Loader was not installed. Check with your host or system administrator that enable_dl in your php configuration is turned on and that safe_mode is turned off.";
}
} else {
$ion_good = "yes";
}
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test File</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
BODY {
FONT-SIZE: 12px; MARGIN: 10px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; height:100%
}
TABLE {
FONT-SIZE: 12px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
A:link {
COLOR: #003399; TEXT-DECORATION: underline
}
A:visited {
COLOR: #003399; TEXT-DECORATION: underline
}
A:active {
COLOR: #003399; TEXT-DECORATION: underline
}
A:hover {
COLOR: #003399; TEXT-DECORATION: none
}
TABLE.area {
BACKGROUND-COLOR: #000000
}
TR.area {
BACKGROUND-COLOR: #ffffff
}
.header {
COLOR: #ffffff; BACKGROUND-COLOR: #465786; font-weight:bold
}
.headerred {
COLOR: #ffffff; BACKGROUND-COLOR: #CC0000; font-weight:bold
}
.altfirst {
BACKGROUND-COLOR: #f2f2f2
}
.altsecond {
BACKGROUND-COLOR: #ffffff
}
h1 {
font-size: 140%; margin:5px
}
h2 {
font-size: 110%; margin:5px
}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="1" cellpadding="7">
<TR class=header>
<TD colSpan=4>Testing Server... </TD>
</TR>
<tr class="altfirst">
<td width="50" height="65"> <?PHP if (zn_system_info() == "old"){ print "<img src=\"http://www.crawlability.com/check/icon_fail.gif\" width=\"45\" height=\"45\">"; } elseif(zn_system_info() == "") { print "<img src=\"http://www.crawlability.com/check/icon_fail.gif\" width=\"45\" height=\"45\">"; } else { print "<img src=\"http://www.crawlability.com/check/icon_pass.gif\" width=\"45\" height=\"45\">"; } ?> </td>
<td width="120" height="65"><strong>Zend
Optimizer</strong></td>
<td width="100" height="65"> <?PHP if (zn_system_info() == "old"){ print "No"; } elseif(zn_system_info() == "") { print "No"; } else { print "Yes"; } ?> </td>
<td height="65">
<?PHP if (zn_system_info() == "old"){ print "It appears you are running an older version of zend optimizer. In order this software to work correctly your server will need zend optimizer 2.5+."; } elseif(zn_system_info() == "") { print "<a href=\"http://zend.com/store/free_download.php?pid=13\">Download/Install Instructions</a> | <a href=\"http://zend.com/store/products/optimizer-faq.php\">FAQ</a>"; } else { } ?> </td>
</tr>
<tr class="altsecond">
<td width="50" height="65"> <?PHP if ($ion_good == "yes"){ $install = "yes"; print "<img src=\"http://www.crawlability.com/check/icon_pass.gif\" width=\"45\" height=\"45\">"; } else{ print "<img src=\"http://www.crawlability.com/check/icon_fail.gif\" width=\"45\" height=\"45\">"; } ?> </td>
<td width="120" height="65"><strong>Ioncube</strong></td>
<td width="100" height="65"> <?PHP if ($ion_good == "yes"){ print "Yes"; } else{ print "No"; } ?> </td>
<td height="65"><font color="#333333"><?PHP print $ion_error; ?>
</font></td>
</tr>
</table>
<?PHP if ($install == "yes"){ ?>
<br>
<table width="100%" border="0" cellspacing="1" cellpadding="7">
<TR class=header>
<TD colSpan=4>Congratulations!</TD>
</tr>
<tr class="altfirst">
<td width="50" height="65"> <img src="http://www.crawlability.com/check/icon_pass.gif" width="45" height="45"> </td>
<td height="65">The software
should install on your server with no server changes needed.<br>
<font color="#FF0000">You should download and install the <strong><?PHP if (zn_system_info()){ print "Zend Encoded"; } else{ print "ionCube Encoded"; } ?></strong> version of the software.</font></td>
</tr>
</table>
<?PHP } else{ ?>
<table width="100%" border="0" cellspacing="1" cellpadding="7">
<TR class=headerred>
<TD colSpan=4>Server Changes Possibly Needed </TD>
</tr>
<tr>
<td width="50" height="65"> <img src="http://www.crawlability.com/check/icon_fail.gif" width="45" height="45"> </td>
<td height="65">This test
script was unable to find Zend Optimizer on your server and was unable to
successfully run Ioncube. Suggestions and install instructions are to the
right of both Zend Optimizer and Ioncube above.</td>
</tr>
</table>
<?PHP } ?>
<p> </p>
<hr width="100%" size="1" noshade>
<?PHP if (!isset($_GET["info"])){ ?>
<a href="test.php?info=1">View
detailed PHP Info</a>
<?PHP } else{ phpinfo(); } ?>
</body>
</html>
cria um php com esse conteudo, upa pro server e chama pelo browser
abs
b.