From 7526d78aaa7bd25a366a4b247f6f5518efd99480 Mon Sep 17 00:00:00 2001 From: conory Date: Fri, 8 Jan 2016 18:11:05 +0900 Subject: [PATCH 1/9] remove PHP_VERSION check --- config/config.inc.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/config/config.inc.php b/config/config.inc.php index d409f9e33..e3bfb3934 100644 --- a/config/config.inc.php +++ b/config/config.inc.php @@ -296,10 +296,7 @@ if((__DEBUG_OUTPUT__ == 2) && version_compare(PHP_VERSION, '6.0.0') === -1) } // Set Timezone as server time -if(version_compare(PHP_VERSION, '5.3.0') >= 0) -{ - date_default_timezone_set(@date_default_timezone_get()); -} +date_default_timezone_set(@date_default_timezone_get()); // Require a function-defined-file for simple use require(_XE_PATH_ . 'config/func.inc.php'); @@ -441,7 +438,8 @@ function __xe_autoload($class_name) } spl_autoload_register('__xe_autoload'); -if(file_exists(_XE_PATH_ . '/vendor/autoload.php')) { +if(file_exists(_XE_PATH_ . '/vendor/autoload.php')) +{ require _XE_PATH_ . '/vendor/autoload.php'; } /* End of file config.inc.php */ From 9cc266bbe60517ca777291971c50ccffcfe751e0 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 8 Jan 2016 22:21:47 +0900 Subject: [PATCH 2/9] Apply RhymiX branding and improve README.md --- COPYRIGHT | 3 ++- README.md | 54 +++++++++++++++++++++++++++++------------------ composer.json | 8 +++---- index.php | 58 ++++++++++++++++++++++++++------------------------- package.json | 8 +++---- 5 files changed, 74 insertions(+), 57 deletions(-) diff --git a/COPYRIGHT b/COPYRIGHT index f32728bb0..0f2124c53 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -1 +1,2 @@ -Copyright (C) NAVER \ No newline at end of file +Copyright (c) RhymiX Developers and Contributors +Copyright (c) NAVER diff --git a/README.md b/README.md index 00d0eaee8..d145c95a6 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,41 @@ -RhymiX : RX (라이믹스) -========================= +RhymiX CMS +========== -라이믹스(RhymiX)는 XETOWN Fork 프로젝트의 XE Core 이름입니다. +라이믹스(RhymiX)는 XETOWN 커뮤니티에서 진행하는 XE Core Fork (가지치기) 프로젝트입니다. -원작 : XpressEngine (NAVER Corp) https://www.xpressengine.com +라이믹스(RhymiX)는 "시를 짓다, 운을 맞추다"라는 의미의 "rhyme"과 +"조합하다, 변주하다"라는 의미의 "remix"를 합친 이름입니다. +라이믹스는 인터넷 공간에서 자유롭게 창작 활동을 하고 +다양한 소프트웨어와 콘텐츠를 조합하여 새로운 것을 만들어내는 모든 사용자들을 응원합니다. -### 개발방향 -원작을 개선시켜 사용자 편리성이 가장 뛰어난 CMS로 만들고자 합니다. +### 개발 방향 -- 초보자도 쉽게 클릭 몇 번으로 웹사이트를 완성할 수 있을 만큼의 뛰어난 편리성 -- 기존 XE 서드파티(애드온, 모듈, 위젯등...)와의 호환성 100% 목표! -- 보안이 우수한 CMS +원작을 개선하여 사용자 편리성이 가장 뛰어난 CMS로 만들고자 합니다. -## Server Requirements -* PHP version 5.3.0 or greater (But recommend PHP >= 5.5.0) -* MYSQL version 4.1 or greater (But recommend MYSQL >= 5.x) , MS-SQL, CUBRID -* XML Library -* GD Library -* ICONV -* session.auto_start = Off (php.ini) +- 초보자도 쉽게 클릭 몇 번으로 웹사이트를 완성할 수 있을 만큼 편리한 CMS +- 최신 기술을 적극적으로 사용하고 속도가 빠르며 보안이 우수한 CMS +- 커뮤니티를 통해 사용자와 개발자의 건전한 의사소통을 돕는 CMS +- **애드온, 모듈, 위젯 등 기존 XE 서드파티 자료와의 호환성 100% 목표!** -## Official site -https://www.rhymix.org +### 설치 환경 -## License -미정 +- PHP 5.3 이상 (PHP 5.5 이상 권장, PHP 7 지원) +- MYSQL 4.1 이상 (MySQL 5.0 이상 또는 MariaDB 권장) +- 필수 모듈: curl, gd, iconv _or_ mbstring, json, mcrypt _or_ openssl, xml +- php.ini에서 session.auto_start = Off로 설정되어 있어야 합니다. +- 설치 폴더 또는 files 폴더에 쓰기 권한이 주어져야 합니다. + +### 공식 홈페이지 + +- XETOWN : https://www.xetown.com +- RhymiX : https://www.rhymix.org + +### 저작권 및 라이선스 + +RhymiX는 [XpressEngine](https://www.xpressengine.com)에 바탕을 두고 있습니다. +XpressEngine의 저작권은 [NAVER](https://www.navercorp.com/)에게 있습니다. + +RhymiX 개발자들이 추가 및 변경한 부분의 저작권은 해당 개발자들에게 있습니다. + +별도의 결정이 있을 때까지 라이선스는 XpressEngine과 동일한 LGPL 2.1을 유지하며, +LGPL 2.1의 관련 조항에 따라 LGPL 3.0, GPL 2, GPL 3 등으로 전환하여 사용할 수도 있습니다. diff --git a/composer.json b/composer.json index 1628de44f..dc316a1d7 100644 --- a/composer.json +++ b/composer.json @@ -1,12 +1,12 @@ { "name": "xetown/xe-core", - "description": "XpressEngine XETOWN Remix", - "homepage": "https://www.xetown.com/", + "description": "RhymiX", + "homepage": "https://www.rhymix.org", "license": "LGPL-2.1", "type": "project", "authors": [ - { "name": "NAVER", "email": "developers@xpressengine.com" }, - { "name": "XETOWN Contributors" } + { "name": "RhymiX Developers and Contributors" }, + { "name": "NAVER", "email": "developers@xpressengine.com" } ], "require": { "php": ">=5.3.0", diff --git a/index.php b/index.php index 90c646c52..565f7b85e 100644 --- a/index.php +++ b/index.php @@ -1,33 +1,35 @@ */ /** - * @file index.php - * @author NAVER (developers@xpressengine.com) - * @brief Start page - * - * @mainpage XpressEngine - * @section intro introduction - * - * "XpressEngine (XE)" is an opensource and being developed in the opensource project.\n - * For more information, please see the link below. - * - Official website: http://www.xpressengine.com - * - Offcial Repository: https://github.com/xpressengine/xe-core - * \n - * "XpressEngine (XE)" is free software; you can redistribute it and/or \n - * modify it under the terms of the GNU Lesser General Public \n - * License as published by the Free Software Foundation; either \n - * version 2.1 of the License, or (at your option) any later version. \n - * \n - * This software is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * \n - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - **/ + * ----------------------------------------------------------------------------- + * + * R H Y M I X : C O N T E N T M A N A G E M E N T S Y S T E M + * + * https://www.rhymix.org + * + * ----------------------------------------------------------------------------- + * + * Copyright (c) RhymiX Developers and Contributors + * + * RhyMix is a derivative work (fork) of XpressEngine (XE) version 1.x. + * + * Copyright (c) NAVER + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation, either version 2.1 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License + * for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * ----------------------------------------------------------------------------- + */ /** * @brief Declare constants for generic use and for checking to avoid a direct call from the Web diff --git a/package.json b/package.json index 3f2bd26c2..6cefa70d6 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { - "name": "XpressEngine", - "author": "NAVER", + "name": "RhymiX", + "author": "NAVER, RhymiX Developers and Contributors", "license": "GNU LGPL", "repository": { "type": "git", - "url": "git://github.com/xpressengine/xe-core.git" + "url": "git://github.com/xetown/xe-core.git" }, "bugs": { - "url": "https://github.com/xpressengine/xe-core/issues" + "url": "https://github.com/xetown/xe-core/issues" }, "devDependencies": { "grunt": "^0.4.5", From 11cc9be7649e5c9218c2e42bc43566c529d12759 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 8 Jan 2016 22:43:47 +0900 Subject: [PATCH 3/9] Update contributor guide --- CONTRIBUTING.md | 103 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 84 insertions(+), 19 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 471523c5f..b5af465e0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,25 +1,90 @@ -# Contribution Guide +# 개발에 참여하고 싶으신 분들께 드리는 안내문 -## Issue 작성 -Issue 작성 시 참고해주세요. +## 이슈 작성 -* 작성하려는 이슈가 이미 있는지 검색 후 등록해주세요. 비슷한 이슈가 있다면 댓글로 추가 내용을 덧붙일 수 있습니다. -* 이슈에는 하나의 문제 또는 제안을 작성해주세요. 절대 하나의 이슈에 2개 이상의 내용을 적지마세요. -* 이슈는 가능한 상세하고 간결하게 작성해주세요. - * 필요하다면 화면을 캡처하여 이미지를 업로드할 수 있습니다. +- 관련된 이슈가 이미 있는지 검색하고, 같은 내용이라면 댓글로 덧붙여 주십시오. + 오래된 이슈라도 메일로 알림이 전달되므로 묻힐 염려가 없습니다. +- 무관한 이슈에 댓글을 달지 말아 주십시오. +- 2가지 이상 서로 다른 문제가 있는 경우, 각각 이슈를 등록해 주십시오. +- 버그 신고에는 아래의 내용을 반드시 포함시켜 주십시오. + - 실행 환경 + - 호스팅 환경에 대한 간단한 설명 (예: ○○24 리눅스 웹호스팅) + - RhymiX 버전 (예: 1.8.15) + - PHP 버전 (예: 5.6.16) + - 브라우저 종류 및 버전 (예: IE 11) + - 에러가 발생하는 경우 에러 메시지 전체 + - 화면상에 에러가 표시되거나 디자인이 깨져 보이는 경우, 해당 스크린샷 + - 브라우저의 개발자도구(F12)에 에러가 표시되는 경우, 콘솔 및 네트워크 탭의 스크린샷 + - 증상을 확인해 볼 수 있는 웹사이트 주소 + - 내부망이나 로컬 개발환경 등 외부인의 접속이 원천적으로 불가능한 경우가 아니라면 반드시 주소를 남겨 주시기 바랍니다. -## Pull request(PR) -* `master` 브랜치의 코드는 수정하지마세요. -* PR은 `develop` 브랜치만 허용합니다. -* `develop` 브랜치를 부모로 한 토픽 브랜치를 활용하면 편리합니다. +## 풀 리퀘스트(PR) 작성 +- 자신의 저장소에서 별도의 브랜치를 만들어 작업하신 후, `develop` 브랜치로 풀 리퀘스트를 넣어주시면 됩니다. + - 예: 썸네일 관련 버그를 수정하는 경우 자신의 저장소에서 `fix/thumbnail` 브랜치를 만들어 작업하십시오. + 작성 후에 수정할 것이 있으면 이 브랜치에서 계속 작업하고 커밋하시면 됩니다. PR 페이지에 자동으로 반영됩니다. +- 개발 진행 및 안정화에 따라 브랜치별 운영 정책이 변경될 수 있으니 유의하십시오. +- 아래의 코딩 규칙을 지키려고 노력해 주시기 바랍니다. +- 코딩 규칙에 맞지 않는 소스를 발견하더라도 PR의 주제외 관계없는 부분은 함부로 고치지 마세요! + 코딩 규칙에 맞도록 소스를 수정하는 작업은 모두 별도의 PR로 처리하여야 합니다. +- 단, PR을 검토하는 개발자들은 괄호의 위치와 같은 사소한 문제를 지적하느라고 + 실제 기능에 관심을 주지 못하는 오류를 범하지 않도록 노력해야 합니다. -## Coding Guidelines -코드를 기여할 때 Coding conventions을 따라야합니다. +## 코딩 규칙 -* 모든 text 파일의 charset은 BOM이 없는 UTF-8입니다. -* newline은 UNIX type을 사용합니다. 일부 파일이 다른 type을 사용하더라도 절대 고치지 마세요! -* 들여쓰기는 1개의 탭으로 합니다. -* class 선언과 function, if, foreach, for, while 등 중괄호의 `{}`는 다음 줄에 있어야 합니다. - * 마찬가지로 선언 다음에는 공백을 두지 않습니다. ex) CORRECT `if(...)`, INCORRECT `if (...)` -* **Coding convention에 맞지 않는 코드를 발견 하더라도 목적과 관계 없는 코드는 절대 고치지 마세요.** +PHP, HTML, XML, CSS, JS 등 모든 텍스트 파일의 문자셋은 BOM이 없는 UTF-8입니다. + +줄바꿈 문자는 유닉스 방식(`LF`)을 따릅니다. + +윈도우 메모장에서 편집한 파일은 위의 두 가지 규칙에 어긋납니다. +윈도우 사용자는 [Notepad++](https://notepad-plus-plus.org/) 등의 개발자용 에디터를 사용하여 편집하시기 바랍니다. + +들여쓰기는 1개의 탭으로 합니다. +단, 탭 대신 공백을 사용하는 파일에서는 일관성 유지를 위해 4칸의 공백을 사용할 수 있습니다. + +RhymiX에서 정한 `error_reporting` 설정 하에서 어떤 에러도 발생하지 않도록 하는 것을 목표로 합니다. + +PHP 코드만으로 이루어진 파일은 맨 끝에 `?>` 태그를 사용하지 않습니다. + +클래스 및 함수 선언과 `if`, `for`, `foreach`, `while` 등의 중괄호는 다음 줄에 씁니다. + + class Foo + { // RIGHT + public function bar() { // WRONG + + } + } + +단, 클로져는 같은 줄에 중괄호를 쓸 수 있으며, 이 경우 중괄호 앞뒤에 한 칸씩 공백을 둡니다. +닫는 중괄호와 그 뒤의 기호 사이에는 공백을 두지 않습니다. + + $foo = function($bar) { return $bar + 1; }; // RIGHT + $foo = function($bar){return $bar + 1;}; // WRONG + +자바스크립트에서는 거의 모든 함수가 클로져이며, 잘못 줄바꿈할 경우 세미콜론이 삽입될 수 있으므로 +중괄호를 다음 줄에 쓰지 않아도 됩니다. + + $("#foo").on("click", function() { // OK + if ($(this).val() === "bar") { // OK + $(this).val("baz"); + } + }); + +함수 호출시 함수명과 괄호 사이, 괄호와 인자 사이에 공백을 두지 않습니다. +인자를 구분하는 쉼표는 뒤쪽에만 한 칸의 공백을 둡니다. + + function foobar($baz, $param) // RIGHT + function foobar ( $baz , $param ) // WRONG + +`if`, `for`, `foreach`, `while` 등의 키워드 뒤에는 한 칸의 공백을 둘 수 있으며, +`==`, `!=`, `>` 등의 연산자는 앞뒤에 한 칸씩 공백을 둡니다. + + if ($foo === $bar) // RECOMMENDED + if($foo === $bar) // OK for XE Compatibility + if($foo==$bar){ // WRONG + +문자열과 문자열, 정수와 정수를 비교할 때는 가능하면 `==` 대신 `===`을 사용합니다. +실제 자료형이 다를 가능성이 있는 경우 `intval()`, `strval()` 등의 함수와 함께 사용합니다. + +여기에서 규정하지 않은 내용은 [PSR-1](http://www.php-fig.org/psr/psr-1/)과 +[PSR-2](http://www.php-fig.org/psr/psr-2/)를 따릅니다. From 211044fe2b3574708aa5148a3489a80ff83c49f2 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 8 Jan 2016 23:50:11 +0900 Subject: [PATCH 4/9] Add a better statement of purpose --- README.md | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d145c95a6..0c8e86491 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,30 @@ -RhymiX CMS -========== +RhymiX +====== -라이믹스(RhymiX)는 XETOWN 커뮤니티에서 진행하는 XE Core Fork (가지치기) 프로젝트입니다. +RhymiX(라이믹스)는 누구든지 쉽고 자유롭게 독립적인 홈페이지를 만들어 +자신을 표현하고 커뮤니티를 키워나갈 수 있도록 돕기 위한 CMS(content management system)입니다. -라이믹스(RhymiX)는 "시를 짓다, 운을 맞추다"라는 의미의 "rhyme"과 +XETOWN 커뮤니티에서 [XE](https://www.xpressengine.com)를 fork(가지치기)하여 진행하는 프로젝트로, +누구나 무료로 사용할 수 있고 개발에 참여할 수도 있는 자유 소프트웨어(free software)입니다. + +RhymiX는 "시를 짓다, 운을 맞추다"라는 의미의 "rhyme"과 "조합하다, 변주하다"라는 의미의 "remix"를 합친 이름입니다. 라이믹스는 인터넷 공간에서 자유롭게 창작 활동을 하고 다양한 소프트웨어와 콘텐츠를 조합하여 새로운 것을 만들어내는 모든 사용자들을 응원합니다. ### 개발 방향 -원작을 개선하여 사용자 편리성이 가장 뛰어난 CMS로 만들고자 합니다. +RhymiX는 개발자와 사용자가 서로의 권리와 책임을 존중하는 인터넷 생태계, +중앙집중형 SNS 플랫폼에 의존하지 않고도 누구나 내 목소리를 낼 수 있는 세상, +벤처기업이나 스타트업의 개발자들뿐 아니라 평범한 블로거, 동호회, 학생, 장애인 등도 +사이버 공간에 당당하게 집을 짓고 서로 소통할 수 있는 미래를 만들어가길 원합니다. + +개발자 위주, 서비스 제공자 위주로 나아가는 현대의 IT 동향을 무차별적으로 받아들이기보다는 +사용자의 주권과 열린 인터넷 환경을 보호하는 기술을 집중적으로 발굴하며, +우리나라 인터넷 커뮤니티의 성장을 이끌었던 90년대 제로보드와 2000년대 XE의 정신을 이어받아 +2016년 현재 위기에 처한 오픈 웹을 지키고 회복시키는 일에 앞장서고자 합니다. + +그러기 위해서는 다른 어떤 CMS보다도 일반 사용자를 위한 편리성이 가장 뛰어나야 합니다. - 초보자도 쉽게 클릭 몇 번으로 웹사이트를 완성할 수 있을 만큼 편리한 CMS - 최신 기술을 적극적으로 사용하고 속도가 빠르며 보안이 우수한 CMS From 1c90e1286fccbae5c9f20939b3b1ecd580f29297 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 9 Jan 2016 00:06:22 +0900 Subject: [PATCH 5/9] Update install module to use RhymiX as project name --- modules/install/install.controller.php | 3 +- modules/install/lang/lang.xml | 160 +++++++++++------------ modules/install/tpl/css/install.css | 7 +- modules/install/tpl/footer.html | 4 +- modules/install/tpl/header.html | 4 +- modules/install/tpl/license_text.en.html | 20 +-- modules/install/tpl/license_text.ko.html | 18 +-- modules/install/tpl/select_db.html | 2 +- 8 files changed, 106 insertions(+), 112 deletions(-) diff --git a/modules/install/install.controller.php b/modules/install/install.controller.php index c096a9018..36092d8e9 100644 --- a/modules/install/install.controller.php +++ b/modules/install/install.controller.php @@ -33,6 +33,7 @@ class installController extends install { // Get DB-related variables $con_string = Context::gets('db_type','db_port','db_hostname','db_userid','db_password','db_database','db_table_prefix'); + $con_string->db_table_prefix = rtrim($con_string->db_table_prefix, '_'); $db_info = new stdClass(); $db_info->master_db = get_object_vars($con_string); @@ -186,7 +187,7 @@ class installController extends install 'db_userid' => Context::get('db_userid'), 'db_password' => Context::get('db_password'), 'db_database' => Context::get('db_database'), - 'db_table_prefix' => Context::get('db_table_prefix') + 'db_table_prefix' => rtrim(Context::get('db_table_prefix'), '_'), ); $db_info->slave_db = array($db_info->master_db); $db_info->default_url = Context::getRequestUri(); diff --git a/modules/install/lang/lang.xml b/modules/install/lang/lang.xml index a0a969a10..13d144267 100644 --- a/modules/install/lang/lang.xml +++ b/modules/install/lang/lang.xml @@ -1,15 +1,15 @@ - - - - - - - - - + + + + + + + + + @@ -83,12 +83,12 @@ - + - + @@ -216,26 +216,26 @@ - - + + - - - + + + - - - + + + - - - - - - + + + + + + @@ -250,16 +250,16 @@ - - - + + + - - - - - + + + + + @@ -728,9 +728,9 @@ - - - + + + 여기를 참고하세요.]]> @@ -805,7 +805,7 @@ - + @@ -821,15 +821,15 @@ - + - - - - - Xin hãy kiểm tra lại!]]> + + + + + Xin hãy kiểm tra lại!]]> @@ -857,15 +857,15 @@ - + - - + + - - + + @@ -892,16 +892,6 @@ - - - - - - - 웹 서버, DBMS, PHP 버전 및 Extension, XE 모듈 및 애드온' 정보가 XE 통계 수집 서버로 전송됩니다. 더 나은 SW를 제작하기 위한 목적으로 활용합니다. 익명으로 수집되며 이 정보를 외부에 공개하지 않습니다. 이 항목에 동의하지 않아도 됩니다.]]> - web server, DBMS, PHP version and extension, XE modules and addons' is sent to the XE statistics collection server. This information is collected anonymously and used to improve our software only. You don't have to agree to this.]]> - ウェブサーバー、DBMS、PHPバージョンおよびExtension、XEモジュール、およびアドオン'情報が、XE統計収集サーバーへ転送されます。より良いソフトウェアを製作するための目的で活用されます。情報は、匿名で収集され、外部へ公開することはありません。この項目は、同意しなくても構いません。]]> - @@ -973,17 +963,17 @@ - safe_mode=On일 경우 XE의 정상적인 동작을 돕습니다.]]> - - - + safe_mode=On일 경우 RhymiX의 정상적인 동작을 돕습니다.]]> + + + - - - - - - + + + + + + @@ -1075,26 +1065,26 @@ - - - - - - - - + + + + + + + + - - - + + + - - - - - - + + + + + + diff --git a/modules/install/tpl/css/install.css b/modules/install/tpl/css/install.css index 7863d0a5d..79499ff2a 100644 --- a/modules/install/tpl/css/install.css +++ b/modules/install/tpl/css/install.css @@ -34,11 +34,11 @@ img, form, fieldset { border: 0; margin:0; padding: 0; } margin: 0; } .x #header h1 { - font: bold 48px/100% Arial, sans-serif; + font: bold 54px/100% Cambria, Georgia, serif; color: #444; text-align: center; text-shadow: 2px 2px 3px rgba(128, 128, 128, 0.4); - margin: 0 0 16px 0; + margin: 0 0 24px 0; } .x #header h1 span.green { color: #55a72f; @@ -46,6 +46,9 @@ img, form, fieldset { border: 0; margin:0; padding: 0; } .x #header h1 span.brown { color: #905a29; } +.x #header h1 span.red { + color: #ef5350; +} .x #header h1 span.colon { color: #888888; position: relative; diff --git a/modules/install/tpl/footer.html b/modules/install/tpl/footer.html index abd6d9df5..c8ba1e3b2 100644 --- a/modules/install/tpl/footer.html +++ b/modules/install/tpl/footer.html @@ -6,9 +6,9 @@ diff --git a/modules/install/tpl/header.html b/modules/install/tpl/header.html index 7301da30b..26ca1dde9 100644 --- a/modules/install/tpl/header.html +++ b/modules/install/tpl/header.html @@ -3,6 +3,6 @@
diff --git a/modules/install/tpl/license_text.en.html b/modules/install/tpl/license_text.en.html index db117413f..0237a4136 100644 --- a/modules/install/tpl/license_text.en.html +++ b/modules/install/tpl/license_text.en.html @@ -1,29 +1,29 @@ -

Copyright © NAVER and Contributors

+

Copyright © RhymiX Developers and Contributors

+

Copyright © NAVER

- XpressEngine (XE) is an opensource and being developed in the open-source project. + RhymiX is free software, developed as an open-source project. For more information, please see the links below.

- XpressEngine XETown Remix is a fork of the XpressEngine CMS + RhymiX is a fork of the XpressEngine (XE) CMS with additional patches by members of the XETOWN community. - For more information, please see the links below.

- XpressEngine XETown Remix is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; + RhymiX and XE are free software; you can redistribute them and/or modify them + under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

diff --git a/modules/install/tpl/license_text.ko.html b/modules/install/tpl/license_text.ko.html index af74e8f2d..f15d5a501 100644 --- a/modules/install/tpl/license_text.ko.html +++ b/modules/install/tpl/license_text.ko.html @@ -1,27 +1,27 @@ -

Copyright © NAVER and Contributors

+

Copyright © RhymiX Developers and Contributors

+

Copyright © NAVER

- XpressEngine(XE)은 자유 소프트웨어이며, 오픈 소스 프로젝트로 개발되고 있습니다. + RhymiX는 자유 소프트웨어이며, 오픈소스 프로젝트로 개발되고 있습니다. 자세한 내용은 아래 링크를 참조하시기 바랍니다.

- XpressEngine XETOWN Remix는 XE를 가지치기(fork)하여 XETOWN 커뮤니티 회원들이 개발한 다양한 기능을 추가한 것입니다. - 자세한 내용은 아래 링크를 참조하시기 바랍니다. + RhymiX는 XpressEngine(XE)을 가지치기(fork)하여 XETOWN 커뮤니티 회원들이 개발한 다양한 기능을 추가한 것입니다.

- XpressEngine XETOWN Remix는 자유 소프트웨어입니다. + RhymiX와 XE는 자유 소프트웨어입니다. 소프트웨어의 피양도자는 자유 소프트웨어 재단이 공표한 GNU 약소 일반 공중 사용 허가서 (LGPL) 2.1판 또는 그 이후 판을 임의로 선택해서, 그 규정에 따라 소프트웨어를 개작하거나 재배포할 수 있습니다.

diff --git a/modules/install/tpl/select_db.html b/modules/install/tpl/select_db.html index 439dc328b..0a52f8263 100644 --- a/modules/install/tpl/select_db.html +++ b/modules/install/tpl/select_db.html @@ -48,7 +48,7 @@
-
+

{$lang->db_info_desc}
{$lang->db_prefix_desc} From 92be5ac0efa94e60508ef337cdc638bfe608b4b8 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 9 Jan 2016 00:20:22 +0900 Subject: [PATCH 6/9] Fix incorrect prefix handling in autoinstall --- modules/install/install.controller.php | 2 +- modules/install/install.view.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/install/install.controller.php b/modules/install/install.controller.php index 36092d8e9..3db8d17bd 100644 --- a/modules/install/install.controller.php +++ b/modules/install/install.controller.php @@ -187,7 +187,7 @@ class installController extends install 'db_userid' => Context::get('db_userid'), 'db_password' => Context::get('db_password'), 'db_database' => Context::get('db_database'), - 'db_table_prefix' => rtrim(Context::get('db_table_prefix'), '_'), + 'db_table_prefix' => Context::get('db_table_prefix'), ); $db_info->slave_db = array($db_info->master_db); $db_info->default_url = Context::getRequestUri(); diff --git a/modules/install/install.view.php b/modules/install/install.view.php index bb94e272d..dbee3109c 100644 --- a/modules/install/install.view.php +++ b/modules/install/install.view.php @@ -44,11 +44,11 @@ class installView extends install 'db_hostname' =>'localhost', 'db_userid' =>'root', 'db_password' =>'root', - 'db_database' =>'xe_database', - 'db_table_prefix' =>'xe', + 'db_database' =>'rx_database', + 'db_table_prefix' =>'rx', 'user_rewrite' =>'N', 'time_zone' =>'0000', - 'email_address' =>'admin@xe.com', + 'email_address' =>'admin@admin.net', 'password' =>'pass', 'password2' =>'pass', 'nick_name' =>'admin', From c89b12a7be07e77a8c0ed7a78ffd99725678c12b Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 9 Jan 2016 11:32:52 +0900 Subject: [PATCH 7/9] Update repository path --- composer.json | 2 +- modules/install/tpl/footer.html | 2 +- modules/install/tpl/license_text.en.html | 2 +- modules/install/tpl/license_text.ko.html | 2 +- package.json | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index dc316a1d7..65cbf222e 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "xetown/xe-core", + "name": "rhymix/rhymix", "description": "RhymiX", "homepage": "https://www.rhymix.org", "license": "LGPL-2.1", diff --git a/modules/install/tpl/footer.html b/modules/install/tpl/footer.html index c8ba1e3b2..3d7a4377e 100644 --- a/modules/install/tpl/footer.html +++ b/modules/install/tpl/footer.html @@ -8,7 +8,7 @@

diff --git a/modules/install/tpl/license_text.en.html b/modules/install/tpl/license_text.en.html index 0237a4136..0df775e37 100644 --- a/modules/install/tpl/license_text.en.html +++ b/modules/install/tpl/license_text.en.html @@ -8,7 +8,7 @@

diff --git a/modules/install/tpl/license_text.ko.html b/modules/install/tpl/license_text.ko.html index f15d5a501..7581a561c 100644 --- a/modules/install/tpl/license_text.ko.html +++ b/modules/install/tpl/license_text.ko.html @@ -8,7 +8,7 @@

diff --git a/package.json b/package.json index 6cefa70d6..f692948b2 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,10 @@ "license": "GNU LGPL", "repository": { "type": "git", - "url": "git://github.com/xetown/xe-core.git" + "url": "git://github.com/rhymix/rhymix.git" }, "bugs": { - "url": "https://github.com/xetown/xe-core/issues" + "url": "https://github.com/rhymix/rhymix/issues" }, "devDependencies": { "grunt": "^0.4.5", From 0a38218bdbc8ff147541a3ac8b38c9eecf2fb3d5 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 9 Jan 2016 14:42:56 +0900 Subject: [PATCH 8/9] Update contributor guide --- CONTRIBUTING.md | 67 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 63 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b5af465e0..5af7cafbf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,11 +2,15 @@ ## 이슈 작성 +- **구글에서 답을 찾을 수 있는지 먼저 확인해 주십시오.** - 관련된 이슈가 이미 있는지 검색하고, 같은 내용이라면 댓글로 덧붙여 주십시오. 오래된 이슈라도 메일로 알림이 전달되므로 묻힐 염려가 없습니다. -- 무관한 이슈에 댓글을 달지 말아 주십시오. +- 무관한 이슈에 댓글을 달지 말아 주십시오. 엉뚱한 사람에게 메일 알림이 전달됩니다. - 2가지 이상 서로 다른 문제가 있는 경우, 각각 이슈를 등록해 주십시오. -- 버그 신고에는 아래의 내용을 반드시 포함시켜 주십시오. +- **버그 신고 전 자신의 서버가 RhymiX의 실행 환경을 충족하는지 확인해 주십시오.** + - PHP 5.3 미만, EUC-KR 환경, 퍼미션 오류 등은 호스팅 업체에 문의하셔야 합니다. + - 자신의 서버 환경은 `phpinfo`를 사용하여 확인할 수 있습니다. +- **버그 신고에는 아래의 내용을 반드시 포함시켜 주십시오.** - 실행 환경 - 호스팅 환경에 대한 간단한 설명 (예: ○○24 리눅스 웹호스팅) - RhymiX 버전 (예: 1.8.15) @@ -32,6 +36,8 @@ ## 코딩 규칙 +### 일반 + PHP, HTML, XML, CSS, JS 등 모든 텍스트 파일의 문자셋은 BOM이 없는 UTF-8입니다. 줄바꿈 문자는 유닉스 방식(`LF`)을 따릅니다. @@ -42,10 +48,10 @@ PHP, HTML, XML, CSS, JS 등 모든 텍스트 파일의 문자셋은 BOM이 없 들여쓰기는 1개의 탭으로 합니다. 단, 탭 대신 공백을 사용하는 파일에서는 일관성 유지를 위해 4칸의 공백을 사용할 수 있습니다. -RhymiX에서 정한 `error_reporting` 설정 하에서 어떤 에러도 발생하지 않도록 하는 것을 목표로 합니다. - PHP 코드만으로 이루어진 파일은 맨 끝에 `?>` 태그를 사용하지 않습니다. +### 공백 및 줄바꿈 규칙 + 클래스 및 함수 선언과 `if`, `for`, `foreach`, `while` 등의 중괄호는 다음 줄에 씁니다. class Foo @@ -83,6 +89,59 @@ PHP 코드만으로 이루어진 파일은 맨 끝에 `?>` 태그를 사용하 if($foo === $bar) // OK for XE Compatibility if($foo==$bar){ // WRONG +### 주석 + +주석은 관련 코드 윗줄에 써야 합니다. 조건문이나 루프의 경우에도 마찬가지입니다. + + // If foo is bar, do something. + if ($foo->isBar()) + { + // Note: this will do X, Y, and Z. + $foo->doSomething(); + } + // Otherwise, do something else. + else + { + // TODO: Refactor this later. + $foo->doSomethingElse(); + } + +모든 클래스와 함수에는 `/**`으로 시작하는 PHPDoc 방식의 주석을 붙여야 합니다. +PHPDoc 주석 작성에 어려움이 있는 경우, 다른 클래스와 함수의 주석을 참고하십시오. + + /** + * This is the Foo class. + */ + class Foo + { + /** + * Constructor. + * + * @param string $member_srl + */ + public function __construct($member_srl) + { + // 생략 + } + + /** + * Check if this Foo is bar. + * + * @return bool + */ + public function isBar() + { + return true; + } + } + +불가피한 경우를 제외하면 주석은 영문으로 쓰는 것을 원칙으로 하며, +대문자로 시작하는 완전한 문장으로 이루어져야 합니다. + +### 기타 + +RhymiX에서 정한 `error_reporting` 설정 하에서 어떤 에러도 발생하지 않도록 하는 것을 목표로 합니다. + 문자열과 문자열, 정수와 정수를 비교할 때는 가능하면 `==` 대신 `===`을 사용합니다. 실제 자료형이 다를 가능성이 있는 경우 `intval()`, `strval()` 등의 함수와 함께 사용합니다. From 52867abf06834118554741e179232e778c4c1dad Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 9 Jan 2016 14:45:34 +0900 Subject: [PATCH 9/9] Add link from README.md to CONTRIBUTING.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 0c8e86491..f83e80677 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,12 @@ RhymiX는 개발자와 사용자가 서로의 권리와 책임을 존중하는 - php.ini에서 session.auto_start = Off로 설정되어 있어야 합니다. - 설치 폴더 또는 files 폴더에 쓰기 권한이 주어져야 합니다. +### 개발 참여 + +RhymiX는 개발자, 디자이너, 번역가 등의 도움과 일반 사용자들의 버그 신고를 환영합니다. +참여를 원하시는 분은 질서있고 효율적인 프로젝트 운영을 위해 +[CONTRIBUTING.md](./CONTRIBUTING.md)를 먼저 읽어 주시기 바랍니다. + ### 공식 홈페이지 - XETOWN : https://www.xetown.com