浏览代码

optimization

star7th 6 年之前
父节点
当前提交
27252e5626
共有 39 个文件被更改,包括 55 次插入338 次删除
  1. 0 189
      Application/Common/Common/function.php
  2. 0 1
      Application/Common/Common/index.html
  3. 0 4
      Application/Common/Conf/config.php
  4. 0 14
      Application/Common/Conf/debug.php
  5. 0 1
      Application/Common/Conf/index.html
  6. 0 1
      Application/Common/index.html
  7. 0 1
      Application/Home/Common/index.html
  8. 0 9
      Application/Home/Conf/config.php
  9. 0 1
      Application/Home/Conf/index.html
  10. 0 35
      Application/Home/Controller/IndexController.class.php
  11. 0 1
      Application/Home/Controller/index.html
  12. 0 1
      Application/Home/Model/index.html
  13. 0 1
      Application/Home/View/index.html
  14. 0 1
      Application/Home/index.html
  15. 0 1
      Application/README.md
  16. 0 1
      Application/Runtime/index.html
  17. 0 1
      Application/index.html
  18. 1 1
      index.php
  19. 6 57
      install/ajax.php
  20. 1 1
      install/common.php
  21. 2 6
      install/database.php
  22. 3 3
      install/lang.en.php
  23. 3 3
      install/lang.zh.php
  24. 7 0
      server/Application/Common/Conf/config.php
  25. 2 1
      server/Application/Home/Conf/config.php
  26. 0 0
      server/Application/Home/Conf/tags.php
  27. 0 0
      server/Application/Home/Controller/BaseController.class.php
  28. 0 0
      server/Application/Home/Controller/CommonController.class.php
  29. 30 3
      server/Application/Home/Controller/IndexController.class.php
  30. 0 0
      server/Application/Home/Controller/ItemController.class.php
  31. 0 0
      server/Application/Home/Controller/PageController.class.php
  32. 0 0
      server/Application/Home/Controller/UpdateController.class.php
  33. 0 0
      server/Application/Home/Controller/UserController.class.php
  34. 0 0
      server/Application/Home/Lang/en-us.php
  35. 0 0
      server/Application/Home/Lang/zh-cn.php
  36. 0 0
      server/Application/Home/Model/BaseModel.class.php
  37. 0 0
      server/Application/Home/Model/ItemModel.class.php
  38. 0 0
      server/Application/Home/Model/UserModel.class.php
  39. 0 0
      server/Application/Home/Model/UserTokenModel.class.php

+ 0 - 189
Application/Common/Common/function.php

@@ -1,189 +0,0 @@
-<?php
-
-
-/**
- * 获得当前的域名
- *
- * @return  string
- */
-function get_domain()
-{
-    /* 协议 */
-    $protocol = (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) != 'off')) ? 'https://' : 'http://';
-
-    /* 域名或IP地址 */
-    if (isset($_SERVER['HTTP_X_FORWARDED_HOST']))
-    {
-        $host = $_SERVER['HTTP_X_FORWARDED_HOST'];
-    }
-    elseif (isset($_SERVER['HTTP_HOST']))
-    {
-        $host = $_SERVER['HTTP_HOST'];
-    }
-    else
-    {
-        /* 端口 */
-        if (isset($_SERVER['SERVER_PORT']))
-        {
-            $port = ':' . $_SERVER['SERVER_PORT'];
-
-            if ((':80' == $port && 'http://' == $protocol) || (':443' == $port && 'https://' == $protocol))
-            {
-                $port = '';
-            }
-        }
-        else
-        {
-            $port = '';
-        }
-
-        if (isset($_SERVER['SERVER_NAME']))
-        {
-            $host = $_SERVER['SERVER_NAME'] . $port;
-        }
-        elseif (isset($_SERVER['SERVER_ADDR']))
-        {
-            $host = $_SERVER['SERVER_ADDR'] . $port;
-        }
-    }
-
-    return $protocol . $host;
-}
-
-/**
- * 获得网站的URL地址
- *
- * @return  string
- */
-function site_url()
-{
-    return get_domain() . substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'));
-}
-
-
-//导出称word
-function output_word($data,$fileName=''){
-
-    if(empty($data)) return '';
-
-    $data = '
-        <html xmlns:v="urn:schemas-microsoft-com:vml"
-        xmlns:o="urn:schemas-microsoft-com:office:office"
-        xmlns:w="urn:schemas-microsoft-com:office:word"
-        xmlns="http://www.w3.org/TR/REC-html40">
-        <head><meta http-equiv=Content-Type content="text/html;  
-        charset=utf-8">
-		<style type="text/css">
-			table  
-			{  
-				border-collapse: collapse;
-				border: none;  
-				width: 100%;  
-			}  
-			td  
-			{  
-				border: solid #CCC 1px;  
-			}  
-			.codestyle{
-				word-break: break-all;
-				background:silver;mso-highlight:silver;
-			}
-		</style>
-        <meta name=ProgId content=Word.Document>
-        <meta name=Generator content="Microsoft Word 11">
-        <meta name=Originator content="Microsoft Word 11">
-        <xml><w:WordDocument><w:View>Print</w:View></xml></head>
-        <body>'.$data.'</body></html>';
-    
-    $filepath = tmpfile();
-	$data = str_replace("<thead>\n<tr>","<thead><tr style='background-color: rgb(0, 136, 204); color: rgb(255, 255, 255);'>",$data);
-	$data = str_replace("<pre><code>","<table width='100%' class='codestyle'><pre><code>",$data);
-	$data = str_replace("</code></pre>","</code></pre></table>",$data);
-    $len = strlen($data);
-    fwrite($filepath, $data);
-    header("Content-type: application/octet-stream");
-    header("Content-Disposition: attachment; filename={$fileName}.doc");
-    header('Content-Description: File Transfer');
-    header('Content-Type: application/octet-stream');
-    header('Content-Disposition: attachment; filename='.$fileName.'.doc');
-    header('Content-Transfer-Encoding: binary');
-    header('Expires: 0');
-    header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
-    header('Pragma: public');
-    header('Content-Length: ' . $len);
-    rewind($filepath);
-    echo fread($filepath,$len);
-}
-
-
-function clear_runtime($path = RUNTIME_PATH){  
-    //给定的目录不是一个文件夹  
-    if(!is_dir($path)){  
-        return null;  
-    }  
-  
-    $fh = opendir($path);  
-    while(($row = readdir($fh)) !== false){  
-        //过滤掉虚拟目录  
-        if($row == '.' || $row == '..'|| $row == 'index.html'){  
-            continue;  
-        }  
-  
-        if(!is_dir($path.'/'.$row)){
-            unlink($path.'/'.$row);  
-        }  
-        clear_runtime($path.'/'.$row);  
-          
-    }  
-    //关闭目录句柄,否则出Permission denied  
-    closedir($fh);    
-    return true;  
-}
-
-//获取ip
-function getIPaddress(){
-    $IPaddress='';
-    if (isset($_SERVER)){
-        if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])){
-            $IPaddress = $_SERVER["HTTP_X_FORWARDED_FOR"];
-        } else if (isset($_SERVER["HTTP_CLIENT_IP"])) {
-            $IPaddress = $_SERVER["HTTP_CLIENT_IP"];
-        } else {
-            $IPaddress = $_SERVER["REMOTE_ADDR"];
-        }
-    } else {
-        if (getenv("HTTP_X_FORWARDED_FOR")){
-            $IPaddress = getenv("HTTP_X_FORWARDED_FOR");
-        } else if (getenv("HTTP_CLIENT_IP")) {
-            $IPaddress = getenv("HTTP_CLIENT_IP");
-        } else {
-            $IPaddress = getenv("REMOTE_ADDR");
-        }
-    }
-    return $IPaddress;
-
-}
-
-function http_post($url, $param) {
-    $oCurl = curl_init ();
-    if (stripos ( $url, "https://" ) !== FALSE) {
-        curl_setopt ( $oCurl, CURLOPT_SSL_VERIFYPEER, FALSE );
-        curl_setopt ( $oCurl, CURLOPT_SSL_VERIFYHOST, false );
-    }
-    if (is_string ( $param )) {
-        $strPOST = $param;
-    } else {
-        $aPOST = array ();
-        foreach ( $param as $key => $val ) {
-            $aPOST [] = $key . "=" . urlencode ( $val );
-        }
-        $strPOST = join ( "&", $aPOST );
-    }
-    curl_setopt ( $oCurl, CURLOPT_URL, $url );
-    curl_setopt ( $oCurl, CURLOPT_RETURNTRANSFER, 1 );
-    curl_setopt ( $oCurl, CURLOPT_POST, true );
-    curl_setopt ( $oCurl, CURLOPT_POSTFIELDS, $strPOST );
-    $sContent = curl_exec ( $oCurl );
-    curl_close ( $oCurl );
-    return $sContent;
-}

+ 0 - 1
Application/Common/Common/index.html

@@ -1 +0,0 @@
- 

+ 0 - 4
Application/Common/Conf/config.php

@@ -1,4 +0,0 @@
-<?php
-//showdoc not install 
-//
-//

+ 0 - 14
Application/Common/Conf/debug.php

@@ -1,14 +0,0 @@
-<?php
-
-// 调试模式下面默认设置 可以在应用配置目录下重新定义 debug.php 覆盖
-return  array(
-    'LOG_RECORD'            =>  false,  // 进行日志记录
-    'LOG_EXCEPTION_RECORD'  =>  false,    // 是否记录异常信息日志
-    'LOG_LEVEL'             =>  'ERR',  // 允许记录的日志级别
-    'DB_FIELDS_CACHE'       =>  false, // 字段缓存信息
-    'DB_DEBUG'				=>  false, // 开启调试模式 记录SQL日志
-    'TMPL_CACHE_ON'         =>  false,        // 是否开启模板编译缓存,设为false则每次都会重新编译
-    'TMPL_STRIP_SPACE'      =>  false,       // 是否去除模板文件里面的html空格与换行
-    'SHOW_ERROR_MSG'        =>  true,    // 显示错误信息
-    'URL_CASE_INSENSITIVE'  =>  false,  // URL区分大小写
-);

+ 0 - 1
Application/Common/Conf/index.html

@@ -1 +0,0 @@
- 

+ 0 - 1
Application/Common/index.html

@@ -1 +0,0 @@
- 

+ 0 - 1
Application/Home/Common/index.html

@@ -1 +0,0 @@
- 

+ 0 - 9
Application/Home/Conf/config.php

@@ -1,9 +0,0 @@
-<?php 
-return array(
-	//'配置项'=>'配置值'
-    'LANG_SWITCH_ON' => true,   // 开启语言包功能
-    'LANG_AUTO_DETECT' => false, // 自动侦测语言 开启多语言功能后有效
-    'DEFAULT_LANG' => 'zh-cn', // 默认语言
-    'LANG_LIST'        => 'zh-cn,en-us', // 允许切换的语言列表 用逗号分隔
-    'VAR_LANGUAGE'     => 'l', // 默认语言切换变量
-);

+ 0 - 1
Application/Home/Conf/index.html

@@ -1 +0,0 @@
- 

+ 0 - 35
Application/Home/Controller/IndexController.class.php

@@ -1,35 +0,0 @@
-<?php
-namespace Home\Controller;
-use Think\Controller;
-class IndexController extends BaseController {
-    public function index(){
-        $tmp = @file_get_contents('./Application/Common/Conf/config.php');
-        if (strstr($tmp, "showdoc not install")) {
-            header("location:./install");
-            exit();
-        }
-
-        //跳转到web目录
-        header("location:./web/#/");
-        exit();
-
-    	$this->checkLogin(false);
-    	$login_user = session("login_user");
-    	$this->assign("login_user" ,$login_user);
-    	if (LANG_SET == 'en-us') {
-    		$demo_url = "https://www.showdoc.cc/demo-en";
-    		$help_url = "https://www.showdoc.cc/help-en";
-    		$creator_url = "https://github.com/star7th";
-    	}
-    	else{
-    		$demo_url = "https://www.showdoc.cc/demo";
-    		$help_url = "https://www.showdoc.cc/help";
-    		$creator_url = "https://blog.star7th.com/";
-    	}
-    	$this->assign("demo_url" ,$demo_url);
-    	$this->assign("help_url" ,$help_url);
-    	$this->assign("creator_url" ,$creator_url);
-
-        $this->display();
-    }
-}

+ 0 - 1
Application/Home/Controller/index.html

@@ -1 +0,0 @@
- 

+ 0 - 1
Application/Home/Model/index.html

@@ -1 +0,0 @@
- 

+ 0 - 1
Application/Home/View/index.html

@@ -1 +0,0 @@
- 

+ 0 - 1
Application/Home/index.html

@@ -1 +0,0 @@
- 

+ 0 - 1
Application/README.md

@@ -1 +0,0 @@
-项目目录

+ 0 - 1
Application/Runtime/index.html

@@ -1 +0,0 @@
- 

+ 0 - 1
Application/index.html

@@ -1 +0,0 @@
- 

+ 1 - 1
index.php

@@ -18,7 +18,7 @@ if(version_compare(PHP_VERSION,'5.3.0','<'))  die('require PHP > 5.3.0 !');
 define('APP_DEBUG',True);
 
 // 定义应用目录
-define('APP_PATH','./Application/');
+define('APP_PATH','./server/Application/');
 
 // 引入ThinkPHP入口文件
 require './server/ThinkPHP/ThinkPHP.php';

+ 6 - 57
install/ajax.php

@@ -18,19 +18,13 @@ if(!new_is_writeable("../Public/Uploads")){
 	ajax_out(L("not_writable_upload"),10098);
 }
 
-if(!new_is_writeable("../Application/Runtime")){
-	ajax_out(L("not_writable_runtime"),10095);
-}
 
 if(!new_is_writeable("../server/Application/Runtime")){
     ajax_out(L("not_writable_server_runtime"),10095);
 }
 
-if(!new_is_writeable("../Application/Common/Conf/config.php")){
-	ajax_out(L("not_writable_config"),10094);
-}
 
-if(!new_is_writeable("../Application/Home/Conf/config.php")){
+if(!new_is_writeable("../server/Application/Home/Conf/config.php")){
 	ajax_out(L("not_writable_home_config"),10098);
 }
 
@@ -51,59 +45,14 @@ elseif ($db_type == "mysql") {
 }
 function user_sqlite(){
         clear_runtime();//清除缓存
-        write_home_config();
         write_js_lang();
-        $config = 
-<<<EOD
-<?php
-return array(
-    //'配置项'=>'配置值'
-    //使用sqlite数据库
-    'DB_TYPE'   => 'Sqlite', 
-    'DB_NAME'   => 'Sqlite/showdoc.db.php', 
-    //showdoc不再支持mysql http://www.showdoc.cc/help?page_id=31990
-    'DB_HOST'   => 'localhost',
-    'DB_USER'   => 'showdoc', 
-    'DB_PWD'    => 'showdoc123456',
-    'DB_PORT'   => 3306, // 端口
-    'DB_PREFIX' => '', // 数据库表前缀
-    'DB_CHARSET'=> 'utf8', // 字符集
-    'DB_DEBUG'  =>  TRUE, // 数据库调试模式 开启后可以记录SQL日志
-    'URL_HTML_SUFFIX' => '',//url伪静态后缀
-    'URL_MODEL' => 3 ,//URL兼容模式
-    'URL_ROUTER_ON'   => true, 
-    'URL_ROUTE_RULES'=>array(
-        ':id\d'               => 'Home/Item/show?item_id=:1',
-		':domain\s$'               => 'Home/Item/show?item_domain=:1',//item的个性域名
-        'uid/:id\d'               => 'Home/Item/showByUid?uid=:1',
-        'page/:id\d'               => 'Home/Page/single?page_id=:1',
-    ),
-    'URL_CASE_INSENSITIVE'=>true,
-    'SHOW_ERROR_MSG'        =>  true,    // 显示错误信息,这样在部署模式下也能显示错误
-    'STATS_CODE' =>'',  //可选,统计代码
-    'TMPL_CACHE_ON' => false,//禁止模板编译缓存
-    'HTML_CACHE_ON' => false,//禁止静态缓存
-    //上传文件到七牛的配置
-    'UPLOAD_SITEIMG_QINIU' => array(
-                    'maxSize' => 5 * 1024 * 1024,//文件大小
-                    'rootPath' => './',
-                    'saveName' => array ('uniqid', ''),
-                    'driver' => 'Qiniu',
-                    'driverConfig' => array (
-                            'secrectKey' => '', 
-                            'accessKey' => '',
-                            'domain' => '',
-                            'bucket' => '', 
-                        )
-                    ),
-);
-EOD;
-        $ret = file_put_contents("../Application/Common/Conf/config.php", $config);
+        
+        $ret = write_home_config();
         if ($ret) {
         	file_put_contents("./install.lock","https://www.showdoc.cc/");
             ajax_out(L("install_success"));
         }else{
-            ajax_out(L("install_config_not_writable"),10001);
+            ajax_out(L("not_writable_home_config"),10001);
         }
 }
 
@@ -126,8 +75,8 @@ return array(
     'VAR_LANGUAGE'     => 'l', // 默认语言切换变量
 );";
 
-	$ret = file_put_contents("../Application/Home/Conf/config.php", $config);
-
+	$ret = file_put_contents("../server/Application/Home/Conf/config.php", $config);
+    return $ret ;
 }
 
 function write_js_lang(){

+ 1 - 1
install/common.php

@@ -45,7 +45,7 @@ function new_is_writeable($file) {
   return $writeable;
 }
 
-function clear_runtime($path = "../Application/Runtime"){  
+function clear_runtime($path = "../server/Application/Runtime"){  
     //给定的目录不是一个文件夹  
     if(!is_dir($path)){  
         return null;  

+ 2 - 6
install/database.php

@@ -28,21 +28,17 @@ if(!new_is_writeable("../Public/Uploads")){
   echo L("not_writable_upload").'<br>';
   $go = 0;
 }
-if(!new_is_writeable("../Application/Runtime")){
-  echo L("not_writable_runtime").'<br>';
-  $go = 0;
-}
 
 if(!new_is_writeable("../server/Application/Runtime")){
   echo L("not_writable_server_runtime").'<br>';
   $go = 0;
 }
 
-if(!new_is_writeable("../Application/Common/Conf/config.php")){
+if(!new_is_writeable("../server/Application/Common/Conf/config.php")){
   echo L("not_writable_config").'<br>';
   $go = 0;
 }
-if(!new_is_writeable("../Application/Home/Conf/config.php")){
+if(!new_is_writeable("../server/Application/Home/Conf/config.php")){
   echo L("not_writable_home_config").'<br>';
   $go = 0;
 }

+ 3 - 3
install/lang.en.php

@@ -19,10 +19,10 @@ return array(
   "lock"=>'ShowDoc has been installed!If you want to reinstall,please delete file /install/install.lock ',
   "not_writable_install"=>' Directory install is not writable !',
   "not_writable_upload"=>'Directory Public/Uploads/  is not writable !',
-  "not_writable_runtime"=>'Directory Application/Runtime is not writable !',
+  "not_writable_runtime"=>'Directory server/Application/Runtime is not writable !',
   "not_writable_server_runtime"=>'Directory server/Application/Runtime is not writable !',
-  "not_writable_config"=>'File Application/Common/Conf/config.php is not writable !',
-  "not_writable_home_config"=>'File Application/Home/Conf/config.php is not writable !',
+  "not_writable_config"=>'File server/Application/Common/Conf/config.php is not writable !',
+  "not_writable_home_config"=>'File server/Application/Home/Conf/config.php is not writable !',
   "not_writable_sqlite"=>'Directory Sqlite is not writable !',
   "not_writable_sqlite_db"=>'File Sqlite/showdoc.db.php is not writable !',
   "not_writable_web_docconfig"=>'File web/index.html is not writable !',

+ 3 - 3
install/lang.zh.php

@@ -19,10 +19,10 @@ return array(
   "lock"=>'本程序已经安装过!如果要解除安装锁定,则可删除install目录下的install.lock文件后再重新访问本页面',
   "not_writable_install"=>'请赋予 install 目录以可写权限!',
   "not_writable_upload"=>'请赋予 Public/Uploads/ 目录以可写权限!',
-  "not_writable_runtime"=>'请赋予 Application/Runtime 目录以可写权限!',
+  "not_writable_runtime"=>'请赋予 server/Application/Runtime 目录以可写权限!',
   "not_writable_server_runtime"=>'请赋予 server/Application/Runtime 目录以可写权限!',
-  "not_writable_config"=>'请赋予 Application/Common/Conf/config.php 文件以可写权限!',
-  "not_writable_home_config"=>'请赋予 Application/Home/Conf/config.php 文件以可写权限!<br>(如果你确定赋予了文件权限但却一直看到此信息,则可考虑关闭selinux试试)',
+  "not_writable_config"=>'请赋予 server/Application/Common/Conf/config.php 文件以可写权限!',
+  "not_writable_home_config"=>'请赋予 server/Application/Home/Conf/config.php 文件以可写权限!<br>(如果你确定赋予了文件权限但却一直看到此信息,则可考虑关闭selinux试试)',
   "not_writable_sqlite"=>'请赋予 Sqlite 目录以可写权限!',
   "not_writable_sqlite_db"=>'请赋予 Sqlite/showdoc.db.php 以可写权限!',
   "not_writable_web_docconfig"=>'请赋予 web/index.html 以可写权限!',

+ 7 - 0
server/Application/Common/Conf/config.php

@@ -14,6 +14,13 @@ return array(
     'DB_DEBUG'  =>  TRUE, // 数据库调试模式 开启后可以记录SQL日志
     'URL_HTML_SUFFIX' => '',//url伪静态后缀
     'URL_MODEL' => 3 ,//URL兼容模式
+    'URL_ROUTER_ON'   => true, 
+    'URL_ROUTE_RULES'=>array(
+        ':id\d'               => 'Home/Item/show?item_id=:1',
+        ':domain\s$'               => 'Home/Item/show?item_domain=:1',//item的个性域名
+        'uid/:id\d'               => 'Home/Item/showByUid?uid=:1',
+        'page/:id\d'               => 'Home/Page/single?page_id=:1',
+    ),
     'URL_CASE_INSENSITIVE'=>true,
     'SHOW_ERROR_MSG'        =>  true,    // 显示错误信息,这样在部署模式下也能显示错误
     'STATS_CODE' =>'',  //可选,统计代码

+ 2 - 1
server/Application/Home/Conf/config.php

@@ -1,4 +1,5 @@
-<?php
+<?php 
 return array(
 	//'配置项'=>'配置值'
+    'showdoc' => 'showdoc not install'
 );

+ 0 - 0
Application/Home/Conf/tags.php → server/Application/Home/Conf/tags.php


+ 0 - 0
Application/Home/Controller/BaseController.class.php → server/Application/Home/Controller/BaseController.class.php


+ 0 - 0
Application/Home/Controller/CommonController.class.php → server/Application/Home/Controller/CommonController.class.php


+ 30 - 3
server/Application/Home/Controller/IndexController.class.php

@@ -1,8 +1,35 @@
 <?php
 namespace Home\Controller;
 use Think\Controller;
-class IndexController extends Controller {
+class IndexController extends BaseController {
     public function index(){
-        $this->show('<style type="text/css">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: "微软雅黑"; color: #333;font-size:24px} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px } a,a:hover{color:blue;}</style><div style="padding: 24px 48px;"> <h1>:)</h1><p>欢迎使用 <b>ThinkPHP</b>!</p><br/>版本 V{$Think.version}</div><script type="text/javascript" src="http://ad.topthink.com/Public/static/client.js"></script><thinkad id="ad_55e75dfae343f5a1"></thinkad><script type="text/javascript" src="http://tajs.qq.com/stats?sId=9347272" charset="UTF-8"></script>','utf-8');
+        $tmp = @file_get_contents('./server/Application/Home/Conf/config.php');
+        if (strstr($tmp, "showdoc not install")) {
+            header("location:./install");
+            exit();
+        }
+
+        //跳转到web目录
+        header("location:./web/#/");
+        exit();
+
+    	$this->checkLogin(false);
+    	$login_user = session("login_user");
+    	$this->assign("login_user" ,$login_user);
+    	if (LANG_SET == 'en-us') {
+    		$demo_url = "https://www.showdoc.cc/demo-en";
+    		$help_url = "https://www.showdoc.cc/help-en";
+    		$creator_url = "https://github.com/star7th";
+    	}
+    	else{
+    		$demo_url = "https://www.showdoc.cc/demo";
+    		$help_url = "https://www.showdoc.cc/help";
+    		$creator_url = "https://blog.star7th.com/";
+    	}
+    	$this->assign("demo_url" ,$demo_url);
+    	$this->assign("help_url" ,$help_url);
+    	$this->assign("creator_url" ,$creator_url);
+
+        $this->display();
     }
-}
+}

+ 0 - 0
Application/Home/Controller/ItemController.class.php → server/Application/Home/Controller/ItemController.class.php


+ 0 - 0
Application/Home/Controller/PageController.class.php → server/Application/Home/Controller/PageController.class.php


+ 0 - 0
Application/Home/Controller/UpdateController.class.php → server/Application/Home/Controller/UpdateController.class.php


+ 0 - 0
Application/Home/Controller/UserController.class.php → server/Application/Home/Controller/UserController.class.php


+ 0 - 0
Application/Home/Lang/en-us.php → server/Application/Home/Lang/en-us.php


+ 0 - 0
Application/Home/Lang/zh-cn.php → server/Application/Home/Lang/zh-cn.php


+ 0 - 0
Application/Home/Model/BaseModel.class.php → server/Application/Home/Model/BaseModel.class.php


+ 0 - 0
Application/Home/Model/ItemModel.class.php → server/Application/Home/Model/ItemModel.class.php


+ 0 - 0
Application/Home/Model/UserModel.class.php → server/Application/Home/Model/UserModel.class.php


+ 0 - 0
Application/Home/Model/UserTokenModel.class.php → server/Application/Home/Model/UserTokenModel.class.php