| @@ -409,13 +409,13 @@ function IndexActive($idx) | |||||
| //是否是HTTPS | //是否是HTTPS | ||||
| function IsSSL() | function IsSSL() | ||||
| { | { | ||||
| if ($_SERVER['HTTPS'] && ('1' == $_SERVER['HTTPS'] || 'on' == strtolower($_SERVER['HTTPS']))) { | |||||
| if (@$_SERVER['HTTPS'] && ('1' == $_SERVER['HTTPS'] || 'on' == strtolower($_SERVER['HTTPS']))) { | |||||
| return true; | return true; | ||||
| } elseif ('https' == $_SERVER['REQUEST_SCHEME']) { | |||||
| } elseif ('https' == @$_SERVER['REQUEST_SCHEME']) { | |||||
| return true; | return true; | ||||
| } elseif ('443' == $_SERVER['SERVER_PORT']) { | } elseif ('443' == $_SERVER['SERVER_PORT']) { | ||||
| return true; | return true; | ||||
| } elseif ('https' == $_SERVER['HTTP_X_FORWARDED_PROTO']) { | |||||
| } elseif ('https' == @$_SERVER['HTTP_X_FORWARDED_PROTO']) { | |||||
| return true; | return true; | ||||
| } | } | ||||
| return false; | return false; | ||||
| @@ -367,7 +367,7 @@ class DedeSqlite | |||||
| function GetVersion($isformat = TRUE) | function GetVersion($isformat = TRUE) | ||||
| { | { | ||||
| global $dsqlite; | global $dsqlite; | ||||
| if (!$dsqlite->isInit) { | |||||
| if (!@$dsqlite->isInit) { | |||||
| $this->Init($this->pconnect); | $this->Init($this->pconnect); | ||||
| } | } | ||||
| if ($dsqlite->isClose) { | if ($dsqlite->isClose) { | ||||
| @@ -476,9 +476,9 @@ function MakeOneTag(&$dtp, &$refObj, $parfield = 'Y') | |||||
| if (DEBUG_LEVEL == TRUE) { | if (DEBUG_LEVEL == TRUE) { | ||||
| $queryTime = ExecTime() - $ttt1; | $queryTime = ExecTime() - $ttt1; | ||||
| if (PHP_SAPI === 'cli') { | if (PHP_SAPI === 'cli') { | ||||
| echo '标签:'.$tagname.'载入花费时间:'.$queryTime."\r\n"; | |||||
| echo '标签:'.$tagname.' 载入花费时间:'.$queryTime."\r\n"; | |||||
| } else { | } else { | ||||
| echo DedeAlert('标签:'.$tagname.'载入花费时间:'.$queryTime, ALERT_WARNING); | |||||
| echo DedeAlert('标签:'.$tagname.' 载入花费时间:'.$queryTime, ALERT_WARNING); | |||||
| } | } | ||||
| } | } | ||||
| @@ -59,11 +59,13 @@ function lib_channelartlist(&$ctag, &$refObj) | |||||
| $pv = new PartView($typeids[$i]['id']); | $pv = new PartView($typeids[$i]['id']); | ||||
| $pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]); | $pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]); | ||||
| //栏目高亮 | //栏目高亮 | ||||
| if ($typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['id'] || $typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['reid'] || $typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['topid'] || $typeids[$i]['id'] == GetTopid($refObj->TypeLink->TypeInfos['id']) ) | |||||
| { | |||||
| $pv->Fields['currentstyle'] = $currentstyle ? $currentstyle : 'current'; | |||||
| } else { | |||||
| $pv->Fields['currentstyle'] = ''; | |||||
| if (isset($refObj->TypeLink->TypeInfos)) { | |||||
| if ($typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['id'] || $typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['reid'] || $typeids[$i]['id'] == $refObj->TypeLink->TypeInfos['topid'] || $typeids[$i]['id'] == GetTopid($refObj->TypeLink->TypeInfos['id']) ) | |||||
| { | |||||
| $pv->Fields['currentstyle'] = $currentstyle ? $currentstyle : 'current'; | |||||
| } else { | |||||
| $pv->Fields['currentstyle'] = ''; | |||||
| } | |||||
| } | } | ||||
| $pv->SetTemplet($innertext,'string'); | $pv->SetTemplet($innertext,'string'); | ||||
| $artlist .= $pv->GetResult(); | $artlist .= $pv->GetResult(); | ||||