作者:丹_jie | 来源:互联网 | 2014-05-13 00:31
?php/*____天生HTML文件________beign__________*/if($make_html){$buffer=ob_get_flush();if($go_html)//是否直接转到HTML文件显示还是PHP读得内容输出(0:php读内容输出1:直接转){/*__处理因天生了H
/*____天生HTML文件________beign__________*/
if ($make_html)
{
$buffer = ob_get_flush();
if ($go_html)//是否直接转到HTML文件显示还是PHP读得内容输出(0:php读内容输出1:直接转)
{
/*__处理因天生了HTML文件而产生的种径标题______begin_______*/
$search = array(
'/(src=|action=|href=|ajaxRead\()\'/ie',
'/\.\.\./e',
'/\.\/\./e',
'/\.\.\/http:\/\//ies',
'/\.\.\/#/',
'/\'\.\'/e',
'/\.\.\/Javascript:/ies');
$replace = array(
''\\1\'../'',
''..'',
''.'',
''http://'',
'#',
''\'..\''',
''Javascript:'');
$buffer = preg_replace($search, $replace, $buffer);