PHP问题求教

来源:百度知道 编辑:UC知道 时间:2024/05/28 02:15:19
谁能告诉我这段代码是怎么个意思。。。最好能帮忙破解。。。
function validate( )
{
global $site_engine_root;
global $starttime;
global $version_number;
$go = "";
require_once( $site_engine_root."lib/validate.php" );
if ( $go == 1 )
{
require_once( $site_engine_root."lib/install.php" );
if ( $go )
{
$install = new install( $starttime );
$_starttime = $install->decrypt( $starttime );
$time = time( );
if ( $time < $_starttime )
{
exit( );
}
if ( $time - $_starttime < 2592000 )
{
return round( 30 - ( $time - $_starttime

这是一个检测程序是否合法的方法

如果你想跳过程序检测可以把这段代码改为如下

function validate( )
{
global $site_engine_root;
global $starttime;
global $version_number;
$go = "";
require_once( $site_engine_root."lib/validate.php" );
if ( $go == 1 )
{
require_once( $site_engine_root."lib/install.php" );
if ( $go )
{
$install = new install( $starttime );
$_starttime = $install->decrypt( $starttime );
$time = time( );
if ( $time < $_starttime )
{
exit( );
}
if ( $time - $_starttime < 2592000 )
{
return round( 30 - ( $time - $_starttime ) / 86400, 0 );
}
else
{
return 1;
}
}
}
else if ( $version_number == 10 )
{
return 1;
}
if ( !defined( "SITEENGINE_LICENSE_KEY" ) || SITEENGINE_LICENSE_KEY != md5( "*SiteEngine6.0sebokacn)EQWE*)WQEWEQBOKA.CNSITEENGINE.NET&