首先进入根目录下/inc/,在inc文件夹下新建biz文件夹
然后在biz文件夹下新建2个文件分别为biz.php,function.php
biz.php
<?php
/*********************/
/* */
/* Version : 5.1.0 */
/* Author : RM */
/* Comment : 071223 */
/* */
/*********************/
function biz_url_ck( $BIZ_URLDB )
{
global $db;
global $_SERVER;
global $HTTP_SERVER_VARS;
global $PHP_SELF_TEMP;
if ( !is_array( $BIZ_URLDB ) )
{
if ( 20090110 < date( "Ymd" ) )
{
exit( "a为了保证你的系统运行更稳定,功能更强大,请到官方同步升级后,才可以继续使用,谢谢合作,如给你带来不便,敬请原谅!!!" );
}
}
else
{
$BIZ_URLDB[] = "127.0.0.1";
$BIZ_URLDB[] = "localhost";
$BIZ_URLDB[] = "www.XXX.com";
$PHP_SELF_TEMP = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
$PHP_SELF = $_SERVER['REQUEST_URI'] ? $_SERVER['REQUEST_URI'] : $PHP_SELF_TEMP;
$HTTP_HOST = $_SERVER['HTTP_HOST'] ? $_SERVER['HTTP_HOST'] : $HTTP_SERVER_VARS['HTTP_HOST'];
$WEBURL = $HTTP_HOST.$PHP_SELF;
if ( !$WEBURL )
{
$allowuse = 1;
}
else
{
foreach ( $BIZ_URLDB as $key => $value )
{
if ( eregi( "^[-a-z0-9_\\.]*{$value}", $WEBURL ) )
{
$allowuse = 1;
}
}
}
if ( !$allowuse )
{
exit( "非授权用户禁止使用,有问题请联系官方站http://www.0536tm.com" );
}
return 1;
}
}
function info_ck( )
{
}
function module_ck( $type )
{
global $pre;
global $BIZ_MODULEDB;
if ( !is_array( $BIZ_MODULEDB ) )
{
if ( 20090110 < date( "Ymd" ) )
{
exit( "b为了保证你的系统运行更稳定,功能更强大,请到官方同步升级后,才可以继续使用,谢谢合作,如给你带来不便,敬请原谅!!!" );
}
}
else
{
if ( !in_array( $type, $BIZ_MODULEDB ) )
{
exit( "此模块未经授权,禁止使用。有问题请联系官方站http://www.0536tm.com" );
}
return 1;
}
}
if ( !function_exists( "AvoidGather" ) )
{
exit( "F" );
}
unset( $BIZ_URLDB );
if ( 20100310 < date( "Ymd" ) )
{
}
$BIZ_URLDB[] = "ceshi88.hk29.winxp3.com";
if ( $BIZID && $BIZ_URLDB )
{
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">";
echo "你的授权ID是:<br>";
echo md5( "{$BIZ_URLDB['0']}" );
exit( );
}
$BIZ_MODULEDB[] = "fenlei";
$IS_BIZPhp168 = 1;
$IS_BIZ = 1;
biz_url_ck( $BIZ_URLDB );
?>
找到$BIZ_URLDB[] = "www.XXX.com";
把其中www.XXX.com改为你的网子,
function.php
<?php
/*********************/
/* */
/* Version : 5.1.0 */
/* Author : RM */
/* Comment : 071223 */
/* */
/*********************/
function avoidgather( )
{
global $rsdb;
global $webdb;
global $IS_BIZPhp168;
if ( !$IS_BIZPhp168 )
{
return;
}
if ( $webdb[AvoidCopy] )
{
$rsdb[content] = "<body οncοpy='return false' oncut='return false'>{$rsdb['content']}";
}
if ( $webdb[AvoidSave] )
{
$rsdb[content] = "{$rsdb['content']}<noscript><iframe scr='*.htm'></iframe></noscript>";
}
if ( !$webdb[AvoidGather] )
{
return;
}
$AvoidGatherpre = rands( 3 ).$webdb[AvoidGatherPre].rands( 3 );
$rsdb[content] = "<div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}</div>{$rsdb['content']}<div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}</div>";
$AvoidGatherpre = rands( 3 ).$webdb[AvoidGatherPre].rands( 3 );
$rsdb[content] = str_replace( "<br>", "<br><div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}{$AvoidGatherpre}</div>", $rsdb[content] );
$rsdb[content] = str_replace( "<BR>", "<BR><div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}{$AvoidGatherpre}</div>", $rsdb[content] );
$AvoidGatherpre = rands( 3 ).$webdb[AvoidGatherPre].rands( 3 );
$rsdb[content] = str_replace( "<p>", "<p><div class='{$AvoidGatherpre}'>{$webdb['AvoidGatherString']}{$AvoidGatherpre}</div>", $rsdb[content] );
}
function limt_ip( $type )
{
global $webdb;
global $ForceEnter;
global $IS_BIZPhp168;
global $onlineip;
if ( !$IS_BIZPhp168 )
{
global $IS_BIZ;
$IS_BIZ = "";
}
else
{
if ( $type == "ForbidIp" && $webdb[ForbidIp] )
{
$detail = explode( "\r\n", $webdb[ForbidIp] );
foreach ( $detail as $key => $value )
{
$value = trim( $value );
if ( !$value )
{
continue;
}
if ( ereg( "^{$value}", $onlineip ) )
{
exit( "Forbid Ip!!" );
}
}
}
if ( $type == "AllowVisitIp" && $webdb[AllowVisitIp] )
{
$AllowVisit = 0;
$detail = explode( "\r\n", $webdb[AllowVisitIp] );
foreach ( $detail as $key => $value )
{
$value = trim( $value );
if ( !$value )
{
continue;
}
if ( ereg( "^{$value}", $onlineip ) )
{
$AllowVisit = 1;
}
}
if ( !$AllowVisit )
{
exit( "NO Allow Visit!!" );
}
}
if ( $type == "AdminIp" && $ForceEnter == 0 && $webdb[AdminIp] )
{
$AllowVisit = 0;
$detail = explode( "\r\n", $webdb[AdminIp] );
foreach ( $detail as $key => $value )
{
$value = trim( $value );
if ( !$value )
{
continue;
}
if ( ereg( "^{$value}", $onlineip ) )
{
$AllowVisit = 1;
}
}
if ( !$AllowVisit )
{
exit( "NO Allow Login!!" );
}
}
}
}
function biz_function( )
{
}
require_once( PHP168_PATH."inc/biz/biz.php" );
?>