PHP程序,解除域名绑定加密,怎么实现? if ( !include( S_ROOT."./yoho/license/".@md5( $_SERVER['HTTP_HOST'].@md5( "Foolant.YOHO.Fx" ) ).".key" ) ) { exit( ); } 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你写法都错误了建议看看include函数的说明 function parse_template( $tpl ){ global $_SGLOBAL; global $_SC; global $_SCONFIG; if ( !include( S_ROOT."./yoho/license/".@md5( $_SERVER['HTTP_HOST'].@md5( "Foolant.YOHO.Fx" ) ).".key" ) ) { exit( ); } $newtpl = empty( $_SCONFIG["yoho_".$tpl."_template"] ) ? $tpl : $_SCONFIG["yoho_".$tpl."_template"]; $_SGLOBAL['sub_tpls'] = array( $newtpl ); $tplfile = S_ROOT."./template/".$_SCONFIG['template']."/".$newtpl.".htm"; $objfile = S_ROOT."./data/tpl_cache/".str_replace( "/", "_", $newtpl ).".php"; if ( !file_exists( $tplfile ) ) { $tplfile = S_ROOT."./".$newtpl.".htm"; } if ( !file_exists( $tplfile ) ) { $tplfile = str_replace( "/".$_SCONFIG['template']."/", "/default/", $tplfile ); } $template = sreadfile( $tplfile ); if ( empty( $template ) ) { exit( "Template file : ".$tplfile." Not found or have no access!" ); } $template = preg_replace( "/\\<\\!\\-\\-\\{template\\s+([a-z0-9_\\/]+)\\}\\-\\-\\>/ie", "readtemplate('\\1')", $template ); $template = preg_replace( "/\\<\\!\\-\\-\\{template\\s+([a-z0-9_\\/]+)\\}\\-\\-\\>/ie", "readtemplate('\\1')", $template ); $template = preg_replace( "/\\<\\!\\-\\-\\{block\\/(.+?)\\}\\-\\-\\>/ie", "blocktags('\\1')", $template ); $template = preg_replace( "/\\<\\!\\-\\-\\{ad\\/(.+?)\\}\\-\\-\\>/ie", "adtags('\\1')", $template ); $template = preg_replace( "/\\<\\!\\-\\-\\{date\\((.+?)\\)\\}\\-\\-\\>/ie", "datetags('\\1')", $template ); $template = preg_replace( "/\\<\\!\\-\\-\\{avatar\\((.+?)\\)\\}\\-\\-\\>/ie", "avatartags('\\1')", $template ); $template = preg_replace( "/\\<\\!\\-\\-\\{eval\\s+(.+?)\\s*\\}\\-\\-\\>/ies", "evaltags('\\1')", $template ); $var_regexp = "((\\\$[a-zA-Z_-][a-zA-Z0-9_-]*)(\\[[a-zA-Z0-9_\\-\\.\"\\'\\[\\]\$-]+\\])*)"; $template = preg_replace( "/\\<\\!\\-\\-\\{(.+?)\\}\\-\\-\\>/s", "{\\1}", $template ); $template = preg_replace( "/([\n\r]+)\t+/s", "\\1", $template ); $template = preg_replace( "/(\\\$[a-zA-Z0-9_\\[\\]\\'\"\$-]+)\\.([a-zA-Z_-][a-zA-Z0-9_-]*)/s", "\\1['\\2']", $template ); $template = preg_replace( "/\\{(\\\$[a-zA-Z0-9_\\[\\]\\'\"\$\\.-]+)\\}/s", "<?=\\1?>", $template ); $template = preg_replace( "/".$var_regexp."/es", "addquote('<?=\\1?>')", $template ); $template = preg_replace( "/\\<\\?\\=\\<\\?\\=".$var_regexp."\\?\\>\\?\\>/es", "addquote('<?=\\1?>')", $template ); $template = preg_replace( "/\\{elseif\\s+(.+?)\\}/ies", "stripvtags('<?php } elseif(\\1) { ?>','')", $template ); $template = preg_replace( "/\\{else\\}/is", "<?php } else { ?>", $template ); $i = 0; for ( ; $i < 6; ++$i ) { $template = preg_replace( "/\\{loop\\s+(\\S+)\\s+(\\S+)\\}(.+?)\\{\\/loop\\}/ies", "stripvtags('<?php if(is_array(\\1)) { foreach(\\1 as \\2) { ?>','\\3<?php } } ?>')", $template ); $template = preg_replace( "/\\{loop\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)\\}(.+?)\\{\\/loop\\}/ies", "stripvtags('<?php if(is_array(\\1)) { foreach(\\1 as \\2 => \\3) { ?>','\\4<?php } } ?>')", $template ); $template = preg_replace( "/\\{if\\s+(.+?)\\}(.+?)\\{\\/if\\}/ies", "stripvtags('<?php if(\\1) { ?>','\\2<?php } ?>')", $template ); } $template = preg_replace( "/\\{([a-zA-Z_-][a-zA-Z0-9_-]*)\\}/s", "<?=\\1?>", $template ); if ( !empty( $_SGLOBAL['block_search'] ) ) { $template = str_replace( $_SGLOBAL['block_search'], $_SGLOBAL['block_replace'], $template ); } $template = preg_replace( "/ \\?\\>[\n\r]*\\<\\? /s", " ", $template ); $template = "<?php if(!defined('IN_UCHOME')) exit('Access Denied');?><?php subtplcheck('".implode( "|", $_SGLOBAL['sub_tpls'] ).( "', '".$_SGLOBAL['timestamp']."', '{$tpl}');?>{$template}<?php ob_out();?>" ); if ( !swritefile( $objfile, $template ) ) { exit( "File: ".$objfile." can not be write!" ); }}function addquote( $var ){ return str_replace( "\\\"", "\"", preg_replace( "/\\[([a-zA-Z0-9_\\-\\.-]+)\\]/s", "['\\1']", $var ) );}function striptagquotes( $expr ){ $expr = preg_replace( "/\\<\\?\\=(\\\$.+?)\\?\\>/s", "\\1", $expr ); $expr = str_replace( "\\\"", "\"", preg_replace( "/\\[\\'([a-zA-Z0-9_\\-\\.-]+)\\'\\]/s", "[\\1]", $expr ) ); return $expr;}function evaltags( $php ){ global $_SGLOBAL; ++$_SGLOBAL['i']; $search = "<!--EVAL_TAG_".$_SGLOBAL['i']."-->"; $_SGLOBAL['block_search'][$_SGLOBAL['i']] = $search; $_SGLOBAL['block_replace'][$_SGLOBAL['i']] = "<?php ".stripvtags( $php )." ?>"; return $search;}function blocktags( $parameter ){ global $_SGLOBAL; ++$_SGLOBAL['i']; $search = "<!--BLOCK_TAG_".$_SGLOBAL['i']."-->"; $_SGLOBAL['block_search'][$_SGLOBAL['i']] = $search; $_SGLOBAL['block_replace'][$_SGLOBAL['i']] = "<?php block(\"".$parameter."\"); ?>"; return $search;}function adtags( $pagetype ){ global $_SGLOBAL; ++$_SGLOBAL['i']; $search = "<!--AD_TAG_".$_SGLOBAL['i']."-->"; $_SGLOBAL['block_search'][$_SGLOBAL['i']] = $search; $_SGLOBAL['block_replace'][$_SGLOBAL['i']] = "<?php adshow('".$pagetype."'); ?>"; return $search;}function datetags( $parameter ){ global $_SGLOBAL; ++$_SGLOBAL['i']; $search = "<!--DATE_TAG_".$_SGLOBAL['i']."-->"; $_SGLOBAL['block_search'][$_SGLOBAL['i']] = $search; $_SGLOBAL['block_replace'][$_SGLOBAL['i']] = "<?php echo sgmdate(".$parameter."); ?>"; return $search;}function avatartags( $parameter ){ global $_SGLOBAL; ++$_SGLOBAL['i']; $search = "<!--AVATAR_TAG_".$_SGLOBAL['i']."-->"; $_SGLOBAL['block_search'][$_SGLOBAL['i']] = $search; $_SGLOBAL['block_replace'][$_SGLOBAL['i']] = "<?php echo avatar(".$parameter."); ?>"; return $search;}function stripvtags( $expr, $statement = "" ){ $expr = str_replace( "\\\"", "\"", preg_replace( "/\\<\\?\\=(\\\$.+?)\\?\\>/s", "\\1", $expr ) ); $statement = str_replace( "\\\"", "\"", $statement ); return $expr.$statement;}function readtemplate( $name ){ global $_SGLOBAL; global $_SCONFIG; $tpl = strexists( $name, "/" ) ? $name : "template/".$_SCONFIG['template']."/{$name}"; $tplfile = S_ROOT."./".$tpl.".htm"; $_SGLOBAL['sub_tpls'][] = $tpl; if ( !file_exists( $tplfile ) ) { $tplfile = str_replace( "/".$_SCONFIG['template']."/", "/default/", $tplfile ); } $content = sreadfile( $tplfile ); return $content;}if ( !defined( "IN_UCHOME" ) ){ exit( "Access Denied" );}$_SGLOBAL['i'] = 0;$_SGLOBAL['block_search'] = $_SGLOBAL['block_replace'] = array( );?> if ( !include( S_ROOT."./yoho/license/".@md5( $_SERVER['HTTP_HOST'].@md5( "Foolant.YOHO.Fx" ) ).".key" ) ) { exit( ); }就去掉这些代码试试?这个key里面是什么也不知道 对方用的何种技术? Parse error: syntax error, unexpected $end in E:\wamp\www\leave_ 请人帮忙看下这段php代码,找不出哪里错了 想找份在武汉干PHP的活好难 自动发邮件 PHP怎么做下载 请问使用jpgraph-2.1.3,怎么能显示出中文?我找了网上大多数说明,都不管用,大家谁能给个例子?多谢 关于搜索引擎 为什么php在同一个页面设置Cookie读取不了? 利用IMAP从邮件服务器上读出邮件如何取得一封邮件是TO还是CC给我的 归求php代码 1~100猜数字 php 用count(*)无法获取sql总数
建议看看include函数的说明
{
global $_SGLOBAL;
global $_SC;
global $_SCONFIG;
if ( !include( S_ROOT."./yoho/license/".@md5( $_SERVER['HTTP_HOST'].@md5( "Foolant.YOHO.Fx" ) ).".key" ) )
{
exit( );
}
$newtpl = empty( $_SCONFIG["yoho_".$tpl."_template"] ) ? $tpl : $_SCONFIG["yoho_".$tpl."_template"];
$_SGLOBAL['sub_tpls'] = array(
$newtpl
);
$tplfile = S_ROOT."./template/".$_SCONFIG['template']."/".$newtpl.".htm";
$objfile = S_ROOT."./data/tpl_cache/".str_replace( "/", "_", $newtpl ).".php";
if ( !file_exists( $tplfile ) )
{
$tplfile = S_ROOT."./".$newtpl.".htm";
}
if ( !file_exists( $tplfile ) )
{
$tplfile = str_replace( "/".$_SCONFIG['template']."/", "/default/", $tplfile );
}
$template = sreadfile( $tplfile );
if ( empty( $template ) )
{
exit( "Template file : ".$tplfile." Not found or have no access!" );
}
$template = preg_replace( "/\\<\\!\\-\\-\\{template\\s+([a-z0-9_\\/]+)\\}\\-\\-\\>/ie", "readtemplate('\\1')", $template );
$template = preg_replace( "/\\<\\!\\-\\-\\{template\\s+([a-z0-9_\\/]+)\\}\\-\\-\\>/ie", "readtemplate('\\1')", $template );
$template = preg_replace( "/\\<\\!\\-\\-\\{block\\/(.+?)\\}\\-\\-\\>/ie", "blocktags('\\1')", $template );
$template = preg_replace( "/\\<\\!\\-\\-\\{ad\\/(.+?)\\}\\-\\-\\>/ie", "adtags('\\1')", $template );
$template = preg_replace( "/\\<\\!\\-\\-\\{date\\((.+?)\\)\\}\\-\\-\\>/ie", "datetags('\\1')", $template );
$template = preg_replace( "/\\<\\!\\-\\-\\{avatar\\((.+?)\\)\\}\\-\\-\\>/ie", "avatartags('\\1')", $template );
$template = preg_replace( "/\\<\\!\\-\\-\\{eval\\s+(.+?)\\s*\\}\\-\\-\\>/ies", "evaltags('\\1')", $template );
$var_regexp = "((\\\$[a-zA-Z_-][a-zA-Z0-9_-]*)(\\[[a-zA-Z0-9_\\-\\.\"\\'\\[\\]\$-]+\\])*)";
$template = preg_replace( "/\\<\\!\\-\\-\\{(.+?)\\}\\-\\-\\>/s", "{\\1}", $template );
$template = preg_replace( "/([\n\r]+)\t+/s", "\\1", $template );
$template = preg_replace( "/(\\\$[a-zA-Z0-9_\\[\\]\\'\"\$-]+)\\.([a-zA-Z_-][a-zA-Z0-9_-]*)/s", "\\1['\\2']", $template );
$template = preg_replace( "/\\{(\\\$[a-zA-Z0-9_\\[\\]\\'\"\$\\.-]+)\\}/s", "<?=\\1?>", $template );
$template = preg_replace( "/".$var_regexp."/es", "addquote('<?=\\1?>')", $template );
$template = preg_replace( "/\\<\\?\\=\\<\\?\\=".$var_regexp."\\?\\>\\?\\>/es", "addquote('<?=\\1?>')", $template );
$template = preg_replace( "/\\{elseif\\s+(.+?)\\}/ies", "stripvtags('<?php } elseif(\\1) { ?>','')", $template );
$template = preg_replace( "/\\{else\\}/is", "<?php } else { ?>", $template );
$i = 0;
for ( ; $i < 6; ++$i )
{
$template = preg_replace( "/\\{loop\\s+(\\S+)\\s+(\\S+)\\}(.+?)\\{\\/loop\\}/ies", "stripvtags('<?php if(is_array(\\1)) { foreach(\\1 as \\2) { ?>','\\3<?php } } ?>')", $template );
$template = preg_replace( "/\\{loop\\s+(\\S+)\\s+(\\S+)\\s+(\\S+)\\}(.+?)\\{\\/loop\\}/ies", "stripvtags('<?php if(is_array(\\1)) { foreach(\\1 as \\2 => \\3) { ?>','\\4<?php } } ?>')", $template );
$template = preg_replace( "/\\{if\\s+(.+?)\\}(.+?)\\{\\/if\\}/ies", "stripvtags('<?php if(\\1) { ?>','\\2<?php } ?>')", $template );
}
$template = preg_replace( "/\\{([a-zA-Z_-][a-zA-Z0-9_-]*)\\}/s", "<?=\\1?>", $template );
if ( !empty( $_SGLOBAL['block_search'] ) )
{
$template = str_replace( $_SGLOBAL['block_search'], $_SGLOBAL['block_replace'], $template );
}
$template = preg_replace( "/ \\?\\>[\n\r]*\\<\\? /s", " ", $template );
$template = "<?php if(!defined('IN_UCHOME')) exit('Access Denied');?><?php subtplcheck('".implode( "|", $_SGLOBAL['sub_tpls'] ).( "', '".$_SGLOBAL['timestamp']."', '{$tpl}');?>{$template}<?php ob_out();?>" );
if ( !swritefile( $objfile, $template ) )
{
exit( "File: ".$objfile." can not be write!" );
}
}function addquote( $var )
{
return str_replace( "\\\"", "\"", preg_replace( "/\\[([a-zA-Z0-9_\\-\\.-]+)\\]/s", "['\\1']", $var ) );
}function striptagquotes( $expr )
{
$expr = preg_replace( "/\\<\\?\\=(\\\$.+?)\\?\\>/s", "\\1", $expr );
$expr = str_replace( "\\\"", "\"", preg_replace( "/\\[\\'([a-zA-Z0-9_\\-\\.-]+)\\'\\]/s", "[\\1]", $expr ) );
return $expr;
}function evaltags( $php )
{
global $_SGLOBAL;
++$_SGLOBAL['i'];
$search = "<!--EVAL_TAG_".$_SGLOBAL['i']."-->";
$_SGLOBAL['block_search'][$_SGLOBAL['i']] = $search;
$_SGLOBAL['block_replace'][$_SGLOBAL['i']] = "<?php ".stripvtags( $php )." ?>";
return $search;
}function blocktags( $parameter )
{
global $_SGLOBAL;
++$_SGLOBAL['i'];
$search = "<!--BLOCK_TAG_".$_SGLOBAL['i']."-->";
$_SGLOBAL['block_search'][$_SGLOBAL['i']] = $search;
$_SGLOBAL['block_replace'][$_SGLOBAL['i']] = "<?php block(\"".$parameter."\"); ?>";
return $search;
}function adtags( $pagetype )
{
global $_SGLOBAL;
++$_SGLOBAL['i'];
$search = "<!--AD_TAG_".$_SGLOBAL['i']."-->";
$_SGLOBAL['block_search'][$_SGLOBAL['i']] = $search;
$_SGLOBAL['block_replace'][$_SGLOBAL['i']] = "<?php adshow('".$pagetype."'); ?>";
return $search;
}function datetags( $parameter )
{
global $_SGLOBAL;
++$_SGLOBAL['i'];
$search = "<!--DATE_TAG_".$_SGLOBAL['i']."-->";
$_SGLOBAL['block_search'][$_SGLOBAL['i']] = $search;
$_SGLOBAL['block_replace'][$_SGLOBAL['i']] = "<?php echo sgmdate(".$parameter."); ?>";
return $search;
}function avatartags( $parameter )
{
global $_SGLOBAL;
++$_SGLOBAL['i'];
$search = "<!--AVATAR_TAG_".$_SGLOBAL['i']."-->";
$_SGLOBAL['block_search'][$_SGLOBAL['i']] = $search;
$_SGLOBAL['block_replace'][$_SGLOBAL['i']] = "<?php echo avatar(".$parameter."); ?>";
return $search;
}function stripvtags( $expr, $statement = "" )
{
$expr = str_replace( "\\\"", "\"", preg_replace( "/\\<\\?\\=(\\\$.+?)\\?\\>/s", "\\1", $expr ) );
$statement = str_replace( "\\\"", "\"", $statement );
return $expr.$statement;
}function readtemplate( $name )
{
global $_SGLOBAL;
global $_SCONFIG;
$tpl = strexists( $name, "/" ) ? $name : "template/".$_SCONFIG['template']."/{$name}";
$tplfile = S_ROOT."./".$tpl.".htm";
$_SGLOBAL['sub_tpls'][] = $tpl;
if ( !file_exists( $tplfile ) )
{
$tplfile = str_replace( "/".$_SCONFIG['template']."/", "/default/", $tplfile );
}
$content = sreadfile( $tplfile );
return $content;
}if ( !defined( "IN_UCHOME" ) )
{
exit( "Access Denied" );
}
$_SGLOBAL['i'] = 0;
$_SGLOBAL['block_search'] = $_SGLOBAL['block_replace'] = array( );
?>
{
exit( );
}就去掉这些代码试试?这个key里面是什么也不知道