php页显示空白页是怎么回事
我的这个页面是外部连接的,不是内置的模块,用一个otc.php链的html页,php代码如下:<?php/*[DestoonB2BSystem]Copyright(c)2...
我的这个页面是外部连接的,不是内置的模块,用一个otc.php链的html页,php代码如下:
<?php
/*
[Destoon B2B System] Copyright (c) 2008-2010 Destoon.COM
This is NOT a freeware, use is subject to license.txt
*/
require 'common.inc.php';
$username = $domain = '';
if(isset($homepage) && check_name($homepage)) {
$username = $homepage;
} else {
$host = $_SERVER['HTTP_HOST'];
if(substr($host, 0, 4) == 'www.') {
$whost = $host;
$host = substr($host, 4);
} else {
$whost = $host;
}
if(strpos(DT_URL, $host) === false) {
$www = str_replace($CFG['com_domain'], '', $host);
if(check_name($www)) {
$username = $homepage = $www;
} else {
$c = $db->get_one("SELECT username,domain FROM {$DT_PRE}company WHERE domain='$whost'".($host == $whost ? '' : " OR domain='$host'"));
if($c) {
$username = $homepage = $c['username'];
$domain = $c['domain'];
}
}
}
}
if($username) {
$moduleid = 4;
$module = 'company';
$MOD = cache_read('module-'.$moduleid.'.php');
require DT_ROOT.'/module/'.$module.'/common.inc.php';
include DT_ROOT.'/module/'.$module.'/init.inc.php';
} else {
if($DT['safe_domain']) {
$safe_domain = explode('|', $DT['safe_domain']);
$pass_domain = false;
foreach($safe_domain as $v) {
if(strpos($DT_URL, $v) !== false) { $pass_domain = true; break; }
}
$pass_domain or exit(header("HTTP/1.1 404 Not Found"));
}
if($DT['index_html']) {
$html_file = $CFG['com_dir'] ? DT_ROOT.'/'.$DT['otc'].'.'.$DT['file_ext'] : DT_CACHE.'/otc.inc.html';
if(!is_file($html_file)) tohtml('otc');
include($html_file);
exit;
}
$destoon_task = '';
$AREA = cache_read('area.php');
$LETTER = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');
$seo_title = $DT['seo_title'];
$head_keywords = $DT['seo_keywords'];
$head_description = $DT['seo_description'];
include template('otc');
}
?>
请问这里有什么问题吗 展开
<?php
/*
[Destoon B2B System] Copyright (c) 2008-2010 Destoon.COM
This is NOT a freeware, use is subject to license.txt
*/
require 'common.inc.php';
$username = $domain = '';
if(isset($homepage) && check_name($homepage)) {
$username = $homepage;
} else {
$host = $_SERVER['HTTP_HOST'];
if(substr($host, 0, 4) == 'www.') {
$whost = $host;
$host = substr($host, 4);
} else {
$whost = $host;
}
if(strpos(DT_URL, $host) === false) {
$www = str_replace($CFG['com_domain'], '', $host);
if(check_name($www)) {
$username = $homepage = $www;
} else {
$c = $db->get_one("SELECT username,domain FROM {$DT_PRE}company WHERE domain='$whost'".($host == $whost ? '' : " OR domain='$host'"));
if($c) {
$username = $homepage = $c['username'];
$domain = $c['domain'];
}
}
}
}
if($username) {
$moduleid = 4;
$module = 'company';
$MOD = cache_read('module-'.$moduleid.'.php');
require DT_ROOT.'/module/'.$module.'/common.inc.php';
include DT_ROOT.'/module/'.$module.'/init.inc.php';
} else {
if($DT['safe_domain']) {
$safe_domain = explode('|', $DT['safe_domain']);
$pass_domain = false;
foreach($safe_domain as $v) {
if(strpos($DT_URL, $v) !== false) { $pass_domain = true; break; }
}
$pass_domain or exit(header("HTTP/1.1 404 Not Found"));
}
if($DT['index_html']) {
$html_file = $CFG['com_dir'] ? DT_ROOT.'/'.$DT['otc'].'.'.$DT['file_ext'] : DT_CACHE.'/otc.inc.html';
if(!is_file($html_file)) tohtml('otc');
include($html_file);
exit;
}
$destoon_task = '';
$AREA = cache_read('area.php');
$LETTER = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');
$seo_title = $DT['seo_title'];
$head_keywords = $DT['seo_keywords'];
$head_description = $DT['seo_description'];
include template('otc');
}
?>
请问这里有什么问题吗 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询