diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..3beb805 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +# Change these settings to your own preference +indent_style = space +indent_size = 4 + +# We recommend you to keep these unchanged +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/htdocs/config.sample.php b/htdocs/config.sample.php index 939646c..7ff625b 100644 --- a/htdocs/config.sample.php +++ b/htdocs/config.sample.php @@ -2,14 +2,14 @@ /** * 除錯模式-管理 - * + * * 警告: 若網站要正式上線,請務必設定為false,否則會有嚴重的安全問題 - */ + */ define('DEBUG_ADMIN', false); // 資料庫 ===================================================================== /** * 資料庫類型 - */ + */ define('DB_TYPE', 'mysql'); // or mysql /** @@ -47,7 +47,7 @@ define('DB_PREFIX', 'uel__'); // 學習導引設定 ================================================================= - + /** * 預設導引模式 * @@ -68,7 +68,7 @@ */ define('SITE_NAME', '無所不在學習導引系統'); - /** + /** * 網站副標題 */ define('SITE_SUBNAME', ''); @@ -80,14 +80,14 @@ /** * 網站首頁網址 - * + * * Warning: 網址後面務必加上"/" - */ + */ define('SITE_URL', 'http://localhost/'); /** * 本系統根網址 - * + * * 給絕對路徑用的。 * Warning: 網址後面務必加上"/" */ @@ -95,8 +95,8 @@ /** * 要用哪種加密方式 - * - * 目前提供選項: + * + * 目前提供選項: *