分类:'.$group['group_name'].'
+浏览量:'.$pv.'
+'; +echo ""; +?> + + +diff --git a/admin/theme.php b/admin/theme.php index 0037001..b770572 100644 --- a/admin/theme.php +++ b/admin/theme.php @@ -7,8 +7,14 @@ function theme($theme,$str){ if(!empty($arr[$str])){ return strip_tags($arr[$str]); } + else if($str =='theme_version'){ + return '未知'; + } + else if($str =='theme_name'){ + return $theme; + } else{ - return 'unknown'; + return false; } } $set=isset($_GET['set'])?$_GET['set']:null; @@ -25,7 +31,7 @@ if(!empty($set)) {
'.theme($theme,"theme_name").'版本:'.theme($theme,"theme_version").' | ';
- echo ''.theme($theme,"theme_explain").' | ';
+
+ echo ''.theme($theme,"theme_explain").' '; + if(theme($theme,"theme_course")){ + echo ' 主题教程'; + } + echo' | ';
echo ''.theme($theme,"author_name").' '; - if(!empty(theme($theme,"author_link"))){ + if(theme($theme,"author_link")){ echo ' 作者主页'; } + echo ' | '; + if(theme($theme,"theme_demo")){ + echo ''; + } echo ' | '; - echo ''; if($conf['template'] == $theme) { echo ' | 当前使用 | ';
} else {
diff --git a/include/function.php b/include/function.php
index 6f0b89d..f8e1b87 100644
--- a/include/function.php
+++ b/include/function.php
@@ -21,6 +21,29 @@ function checkmobile() {
return false;
}
}
+//判断蜘蛛
+function is_spider(){
+ $userAgent = strtolower($_SERVER['HTTP_USER_AGENT']);
+ $spiders = array(
+ 'Googlebot',
+ 'Baiduspider',
+ 'Yahoo! Slurp',
+ 'YodaoBot',
+ 'msnbot',
+ '360Spider',
+ 'spider',
+ 'Spider'
+ //这里可以加入更多的蜘蛛标示
+ );
+ foreach ($spiders as $spider) {
+ $spider = strtolower($spider);
+ if (strpos($userAgent, $spider) !== false) {
+ return true;
+ }
+ }
+ return false;
+}
+
function daddslashes($string) {
if(is_array($string)) {
foreach($string as $key => $val) {
@@ -295,4 +318,14 @@ function ins_link($name, $url, $icon, $group_id, $status){
return false;
}
}
+function theme_file($file){
+ global $conf;
+ $theme = ROOT.'template/'.$conf['template'].'/'.$file;
+ if(file_exists($theme)){
+ return $theme;
+ }
+ else{
+ return 'template/'.$file;
+ }
+}
?>
\ No newline at end of file
diff --git a/include/updbase.php b/include/updbase.php
index 5ecc127..64dacf7 100644
--- a/include/updbase.php
+++ b/include/updbase.php
@@ -47,6 +47,9 @@ if($sqlvn < 10205) {
if($sqlvn < 10300) {
$version = 'v1.3.0';
}
+if($sqlvn < 10304) {
+ $version = 'v1.3.4';
+}
$sql=explode(';',$sql);
for ($i=0;$i