From d2b2f1bed12dc7d1638ecfc984dc889831b73d55 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Thu, 6 Nov 2014 16:42:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E7=B8=AE=E6=8E=92=E5=AD=97?= =?UTF-8?q?=E5=85=83=20tab->4=20whitespace?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 19 + htdocs/config.sample.php | 24 +- htdocs/lib/Database/DBAdmin.php | 40 +- htdocs/lib/Database/DBStudyActivity.php | 514 +++++++------- htdocs/lib/Database/DBTarget.php | 266 ++++---- htdocs/lib/Database/DBTheme.php | 90 +-- htdocs/lib/Database/DBUser.php | 378 +++++------ htdocs/lib/Database/DBUserSession.php | 106 +-- htdocs/lib/Database/Database.php | 66 +- htdocs/lib/Database/Exception.php | 14 +- htdocs/lib/Exception.php | 22 +- htdocs/lib/Study/Exception.php | 48 +- htdocs/lib/Study/StudyActivity.php | 440 ++++++------ htdocs/lib/Study/StudyActivityManager.php | 80 +-- htdocs/lib/Study/StudyWill.php | 512 +++++++------- htdocs/lib/Study/Theme.php | 206 +++--- htdocs/lib/Study/ThemeManager.php | 20 +- htdocs/lib/Target/Area.php | 236 +++---- htdocs/lib/Target/Exception.php | 38 +- htdocs/lib/Target/Hall.php | 186 +++--- htdocs/lib/Target/Target.php | 510 +++++++------- htdocs/lib/User/ClassGroup.php | 214 +++--- htdocs/lib/User/ClassGroupAdmin.php | 110 +-- htdocs/lib/User/Exception.php | 86 +-- htdocs/lib/User/User.php | 780 +++++++++++----------- htdocs/lib/User/UserAdmin.php | 66 +- htdocs/lib/User/UserGroup.php | 282 ++++---- htdocs/lib/User/UserGroupAdmin.php | 102 +-- htdocs/lib/User/UserSession.php | 112 ++-- htdocs/lib/Util/Password.php | 54 +- 30 files changed, 2820 insertions(+), 2801 deletions(-) create mode 100644 .editorconfig 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 @@ /** * 要用哪種加密方式 - * - * 目前提供選項: + * + * 目前提供選項: *