diff --git a/modules/page/conf/info.xml b/modules/page/conf/info.xml index 1adb4feab..13e5d174e 100644 --- a/modules/page/conf/info.xml +++ b/modules/page/conf/info.xml @@ -18,8 +18,8 @@ Этот модуль служит для создания страниц, чтобы связать их с содержимым. 製作頁面並連結內容的模組。 Bu modül içeriklere bağlanacak sayfaları oluşturmak içindir. - 0.1 - 2007-02-28 + 0.2 + 2011-06-15 service diff --git a/modules/page/conf/module.xml b/modules/page/conf/module.xml index daa2d2ad7..13e5d174e 100644 --- a/modules/page/conf/module.xml +++ b/modules/page/conf/module.xml @@ -1,30 +1,36 @@ - - - - - - - - - - - - - - - - - - - - + + 페이지 + 页面管理 + ページ + Page + Trang + Página + Страницы + 頁面 + Sayfa + 페이지를 제작하여 컨텐츠로 연결할 수 있는 모듈 + 制作页面并能连接到内容区的模块。 + ページを作成してコンテンツとしてリンク出来るようにするモジュールです。 + This module is for creating pages to link with contents. + Module này dành cho việc tạo trang cho liên kết với nội dung. + Este módulo is para crear página para enlazar con contenidos. + Этот модуль служит для создания страниц, чтобы связать их с содержимым. + 製作頁面並連結內容的模組。 + Bu modül içeriklere bağlanacak sayfaları oluşturmak içindir. + 0.2 + 2011-06-15 + service - - - - - - - + + NHN + NHN + NHN + NHN + NHN + NHN + NHN + NHN + NHN + diff --git a/modules/page/lang/en.lang.php b/modules/page/lang/en.lang.php index 24169b7dc..19cd8d198 100644 --- a/modules/page/lang/en.lang.php +++ b/modules/page/lang/en.lang.php @@ -13,4 +13,18 @@ $lang->about_page_caching_interval = "The unit is minute, and it displays temporary saved data for assigned time.
It is recommended to cache for proper time if a lot of resources are needed when displaying other servers' data or information.
A value of 0 will not cache."; $lang->about_mcontent = 'This is the page you will see from mobile devices. If you have not set this page, rearranged default page will be displayed.'; $lang->page_management = 'Page Management'; + + /* add merge opage + page type and article create */ + $lang->page_type = '페이지 타입'; + $lang->click_choice = '선택해 주세요.'; + $lang->page_type_name = array('WIDGET' => '위젯' + ,'ARTICLE' => 'Article' + ,'OUTSIDE' => 'External Page'); + $lang->about_page_type = '페이지 타입을 선택하여 원하는 화면을 구성할 수 있습니다.
  1. 위젯형 : 여러가지 위젯들을 생성하여 화면을 구성합니다.
  2. 문서형 : 제목, 내용, 태그를 갖는 문서를 제작하여 포스팅 형식의 페이지를 작성합니다.
  3. 외부페이지형 : 외부HTML또는 PHP 파일을 XE에서 사용할 수 있습니다.
'; + + $lang->opage_path = "Location of External Document"; + $lang->about_opage = "This module enables to use external html or php files in XE.
It allows absolute or relative path, and if the url starts with 'http://' , it can display the external page of the server."; + $lang->about_opage_path= "Please input the location of external document.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; + $lang->opage_mobile_path = 'Location of External Document for Mobile View'; + $lang->about_opage_mobile_path= "Please input the location of external document for mobile view. If not inputted, it uses the external document specified above.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; ?> diff --git a/modules/page/lang/es.lang.php b/modules/page/lang/es.lang.php index 73d59727c..9a7d16adc 100644 --- a/modules/page/lang/es.lang.php +++ b/modules/page/lang/es.lang.php @@ -13,4 +13,18 @@ $lang->cmd_page_create = '페이지 생성'; $lang->about_mcontent = 'This is the page for the mobile view. If you do not write this page, the mobile view display reoragnized PC view\'s page.'; $lang->page_management = '페이지 관리'; + + /* add merge opage + page type and article create */ + $lang->page_type = '페이지 타입'; + $lang->click_choice = '선택해 주세요.'; + $lang->page_type_name = array('WIDGET' => '위젯' + ,'ARTICLE' => 'Article' + ,'OUTSIDE' => 'External Page'); + $lang->about_page_type = '페이지 타입을 선택하여 원하는 화면을 구성할 수 있습니다.
  1. 위젯형 : 여러가지 위젯들을 생성하여 화면을 구성합니다.
  2. 문서형 : 제목, 내용, 태그를 갖는 문서를 제작하여 포스팅 형식의 페이지를 작성합니다.
  3. 외부페이지형 : 외부HTML또는 PHP 파일을 XE에서 사용할 수 있습니다.
'; + + $lang->opage_path = "Location of External Document"; + $lang->about_opage = "This module enables to use external html or php files in XE.
It allows absolute or relative path, and if the url starts with 'http://' , it can display the external page of the server."; + $lang->about_opage_path= "Please input the location of external document.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; + $lang->opage_mobile_path = 'Location of External Document for Mobile View'; + $lang->about_opage_mobile_path= "Please input the location of external document for mobile view. If not inputted, it uses the external document specified above.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; ?> diff --git a/modules/page/lang/fr.lang.php b/modules/page/lang/fr.lang.php index cbd0c62ec..0b01f555d 100644 --- a/modules/page/lang/fr.lang.php +++ b/modules/page/lang/fr.lang.php @@ -13,4 +13,18 @@ $lang->about_page_caching_interval = "L'unité est minute, et ça exposera des données conservées temporairement pendant le temps assigné.
Il est recommandé d'utiliser l'antémémoire pendant le temps convenable si beaucoup de ressource est nécessaire pour représenter les données ou l'information d'autre serveur.
La valeur 0 signifie de ne pas utiliser antémémoire."; $lang->about_mcontent = 'This is the page for the mobile view. If you do not write this page, the mobile view display reoragnized PC view\'s page.'; $lang->page_management = '페이지 관리'; + + /* add merge opage + page type and article create */ + $lang->page_type = '페이지 타입'; + $lang->click_choice = '선택해 주세요.'; + $lang->page_type_name = array('WIDGET' => '위젯' + ,'ARTICLE' => 'Article' + ,'OUTSIDE' => 'External Page'); + $lang->about_page_type = '페이지 타입을 선택하여 원하는 화면을 구성할 수 있습니다.
  1. 위젯형 : 여러가지 위젯들을 생성하여 화면을 구성합니다.
  2. 문서형 : 제목, 내용, 태그를 갖는 문서를 제작하여 포스팅 형식의 페이지를 작성합니다.
  3. 외부페이지형 : 외부HTML또는 PHP 파일을 XE에서 사용할 수 있습니다.
'; + + $lang->opage_path = "Location of External Document"; + $lang->about_opage = "This module enables to use external html or php files in XE.
It allows absolute or relative path, and if the url starts with 'http://' , it can display the external page of the server."; + $lang->about_opage_path= "Please input the location of external document.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; + $lang->opage_mobile_path = 'Location of External Document for Mobile View'; + $lang->about_opage_mobile_path= "Please input the location of external document for mobile view. If not inputted, it uses the external document specified above.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; ?> diff --git a/modules/page/lang/jp.lang.php b/modules/page/lang/jp.lang.php index 81bcf57a7..0a8dff798 100644 --- a/modules/page/lang/jp.lang.php +++ b/modules/page/lang/jp.lang.php @@ -13,4 +13,18 @@ $lang->about_page_caching_interval = '分単位で指定出来、設定された時間の間は、臨時保存されたデータを出力します。
他のサーバの情報を出力したり、データを出力する際、リソースが多く使われるため、数分単位でキャッシングすることをお勧めします。
「0」に指定するとキャッシングされません。'; $lang->about_mcontent = 'モバイルスキン用のページです。作成しないとPC向けのページを再構成して表示します。'; $lang->page_management = 'ページ管理'; + + /* add merge opage + page type and article create */ + $lang->page_type = '페이지 타입'; + $lang->click_choice = '선택해 주세요.'; + $lang->page_type_name = array('WIDGET' => '위젯' + ,'ARTICLE' => 'Article' + ,'OUTSIDE' => 'External Page'); + $lang->about_page_type = '페이지 타입을 선택하여 원하는 화면을 구성할 수 있습니다.
  1. 위젯형 : 여러가지 위젯들을 생성하여 화면을 구성합니다.
  2. 문서형 : 제목, 내용, 태그를 갖는 문서를 제작하여 포스팅 형식의 페이지를 작성합니다.
  3. 외부페이지형 : 외부HTML또는 PHP 파일을 XE에서 사용할 수 있습니다.
'; + + $lang->opage_path = "Location of External Document"; + $lang->about_opage = "This module enables to use external html or php files in XE.
It allows absolute or relative path, and if the url starts with 'http://' , it can display the external page of the server."; + $lang->about_opage_path= "Please input the location of external document.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; + $lang->opage_mobile_path = 'Location of External Document for Mobile View'; + $lang->about_opage_mobile_path= "Please input the location of external document for mobile view. If not inputted, it uses the external document specified above.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; ?> diff --git a/modules/page/lang/ko.lang.php b/modules/page/lang/ko.lang.php index df01b48e7..aa1755aff 100644 --- a/modules/page/lang/ko.lang.php +++ b/modules/page/lang/ko.lang.php @@ -8,7 +8,23 @@ $lang->about_page = "하나의 완성된 페이지를 제작할 수 있는 페이지 모듈입니다.\n최근게시물이나 기타 위젯을 이용해서 동적인 페이지 생성이 가능하고 에디터 컴포넌트를 통해서 다양한 모습으로 꾸밀 수 있습니다.\n접속 URL은 다른 모듈과 같이 mid=모듈이름 으로 접속 가능하며 기본으로 선택하면 접속 시 메인 페이지가 됩니다."; $lang->cmd_page_modify = '페이지 수정'; $lang->cmd_page_create = '페이지 생성'; + $lang->cmd_page_create = '페이지 생성'; + $lang->cmd_page_article_create = 'Article 생성'; $lang->page_caching_interval = '캐싱 시간 설정'; $lang->about_page_caching_interval = '분 단위이며 정해진 시간동안은 임시 저장한 데이터를 출력합니다.
다른 서버의 정보를 출력하거나, 데이터 출력하는데 많은 자원이 필요한 경우, 원하시는 분 단위 시간 간격으로 캐싱하는 것을 추천합니다.
0 으로 하시면 캐싱을 하지 않습니다.'; $lang->about_mcontent = '모바일에서 보여질 페이지입니다. 만약 작성하지 않으면 기본 페이지 데이터를 재정렬해서 보여줍니다.'; + + /* add merge opage + page type and article create */ + $lang->page_type = '페이지 타입'; + $lang->click_choice = '선택해 주세요.'; + $lang->page_type_name = array('WIDGET' => '위젯' + ,'ARTICLE' => '문서' + ,'OUTSIDE' => '외부페이지'); + $lang->about_page_type = '페이지 타입을 선택하여 원하는 화면을 구성할 수 있습니다.
  1. 위젯형 : 여러가지 위젯들을 생성하여 화면을 구성합니다.
  2. 문서형 : 제목, 내용, 태그를 갖는 문서를 제작하여 포스팅 형식의 페이지를 작성합니다.
  3. 외부페이지형 : 외부HTML또는 PHP 파일을 XE에서 사용할 수 있습니다.
'; + + $lang->opage_path = '외부 문서 위치'; + $lang->about_opage = 'XE가 아닌 외부 HTML 또는 PHP파일을 XE에서 사용할 수 있도록 하는 모듈입니다.
절대경로, 상대경로를 이용할 수 있으며 http:// 로 시작할 경우 서버 외부의 페이지도 표시할 수 있습니다'; + $lang->about_opage_path= '외부문서의 위치를 입력해주세요.
/path1/path2/sample.php 와 같이 절대경로나 ../path2/sample.php와 같은 상대경로 모두 사용가능합니다.
http://url/sample.php 와 같이 사용하면 해당 페이지를 웹으로 전송 받아 출력 하게 됩니다.
현재 XE가 설치된 절대경로는 다음과 같습니다.
'; + $lang->opage_mobile_path = '모바일용 외부 문서 위치'; + $lang->about_opage_mobile_path= '모바일용 외부문서의 위치를 입력해주세요. 입력하지 않으면 위에서 지정한 외부문서 위치의 페이지를 이용합니다.
/path1/path2/sample.php 와 같이 절대경로나 ../path2/sample.php와 같은 상대경로 모두 사용가능합니다.
http://url/sample.php 와 같이 사용하면 해당 페이지를 웹으로 전송 받아 출력 하게 됩니다.
현재 XE가 설치된 절대경로는 다음과 같습니다.
'; ?> diff --git a/modules/page/lang/ru.lang.php b/modules/page/lang/ru.lang.php index 69ebbdadb..bc5915554 100644 --- a/modules/page/lang/ru.lang.php +++ b/modules/page/lang/ru.lang.php @@ -13,4 +13,18 @@ $lang->cmd_page_create = '페이지 생성'; $lang->about_mcontent = 'This is the page for the mobile view. If you do not write this page, the mobile view display reoragnized PC view\'s page.'; $lang->page_management = '페이지 관리'; + + /* add merge opage + page type and article create */ + $lang->page_type = '페이지 타입'; + $lang->click_choice = '선택해 주세요.'; + $lang->page_type_name = array('WIDGET' => '위젯' + ,'ARTICLE' => 'Article' + ,'OUTSIDE' => 'External Page'); + $lang->about_page_type = '페이지 타입을 선택하여 원하는 화면을 구성할 수 있습니다.
  1. 위젯형 : 여러가지 위젯들을 생성하여 화면을 구성합니다.
  2. 문서형 : 제목, 내용, 태그를 갖는 문서를 제작하여 포스팅 형식의 페이지를 작성합니다.
  3. 외부페이지형 : 외부HTML또는 PHP 파일을 XE에서 사용할 수 있습니다.
'; + + $lang->opage_path = "Location of External Document"; + $lang->about_opage = "This module enables to use external html or php files in XE.
It allows absolute or relative path, and if the url starts with 'http://' , it can display the external page of the server."; + $lang->about_opage_path= "Please input the location of external document.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; + $lang->opage_mobile_path = 'Location of External Document for Mobile View'; + $lang->about_opage_mobile_path= "Please input the location of external document for mobile view. If not inputted, it uses the external document specified above.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; ?> diff --git a/modules/page/lang/tr.lang.php b/modules/page/lang/tr.lang.php index b9c319b0d..70193ffd6 100644 --- a/modules/page/lang/tr.lang.php +++ b/modules/page/lang/tr.lang.php @@ -13,4 +13,18 @@ $lang->about_page_caching_interval = "Birim dakikadır ve belirlenen zaman için geçici olarak kaydedilmiş veriyi gösterir.
Diğer sunucuların veri veya bilgileri gösterilirken, eğer fazla sayıda kaynağın gösterilmesi gerekiyorsa, uygun zamanın önbelleğe alınması önerilmiştir.
0 değeri verilirse, önbelleğe alınmayacaktır."; $lang->about_mcontent = 'Bu sayfa, sizin hareketli cihazlardan göreceğiniz sayfadır. Eğer bu sayfayı ayarlamadıysanız, düzenlenmiş varsayılan sayfa gösterilecektir.'; $lang->page_management = 'Sayfa Yönetimi'; + + /* add merge opage + page type and article create */ + $lang->page_type = '페이지 타입'; + $lang->click_choice = '선택해 주세요.'; + $lang->page_type_name = array('WIDGET' => '위젯' + ,'ARTICLE' => 'Article' + ,'OUTSIDE' => 'External Page'); + $lang->about_page_type = '페이지 타입을 선택하여 원하는 화면을 구성할 수 있습니다.
  1. 위젯형 : 여러가지 위젯들을 생성하여 화면을 구성합니다.
  2. 문서형 : 제목, 내용, 태그를 갖는 문서를 제작하여 포스팅 형식의 페이지를 작성합니다.
  3. 외부페이지형 : 외부HTML또는 PHP 파일을 XE에서 사용할 수 있습니다.
'; + + $lang->opage_path = "Location of External Document"; + $lang->about_opage = "This module enables to use external html or php files in XE.
It allows absolute or relative path, and if the url starts with 'http://' , it can display the external page of the server."; + $lang->about_opage_path= "Please input the location of external document.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; + $lang->opage_mobile_path = 'Location of External Document for Mobile View'; + $lang->about_opage_mobile_path= "Please input the location of external document for mobile view. If not inputted, it uses the external document specified above.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; ?> diff --git a/modules/page/lang/vi.lang.php b/modules/page/lang/vi.lang.php index 182a2475b..fe324e5dd 100644 --- a/modules/page/lang/vi.lang.php +++ b/modules/page/lang/vi.lang.php @@ -15,4 +15,18 @@ $lang->about_page_caching_interval = "Đơn vị được tính bằng phút, nó sẽ là thời gian lưu trữ tạm thời.
Đó là khuyến cáo thời gian lưu trữ tạm thời thích hợp khi cần để hiển thị.
Nhập 0 nếu không sử dụng tính năng này."; $lang->about_mcontent = 'This is the page for the mobile view. If you do not write this page, the mobile view display reoragnized PC view\'s page.'; $lang->page_management = '페이지 관리'; + + /* add merge opage + page type and article create */ + $lang->page_type = '페이지 타입'; + $lang->click_choice = '선택해 주세요.'; + $lang->page_type_name = array('WIDGET' => '위젯' + ,'ARTICLE' => 'Article' + ,'OUTSIDE' => 'External Page'); + $lang->about_page_type = '페이지 타입을 선택하여 원하는 화면을 구성할 수 있습니다.
  1. 위젯형 : 여러가지 위젯들을 생성하여 화면을 구성합니다.
  2. 문서형 : 제목, 내용, 태그를 갖는 문서를 제작하여 포스팅 형식의 페이지를 작성합니다.
  3. 외부페이지형 : 외부HTML또는 PHP 파일을 XE에서 사용할 수 있습니다.
'; + + $lang->opage_path = "Location of External Document"; + $lang->about_opage = "This module enables to use external html or php files in XE.
It allows absolute or relative path, and if the url starts with 'http://' , it can display the external page of the server."; + $lang->about_opage_path= "Please input the location of external document.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; + $lang->opage_mobile_path = 'Location of External Document for Mobile View'; + $lang->about_opage_mobile_path= "Please input the location of external document for mobile view. If not inputted, it uses the external document specified above.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; ?> diff --git a/modules/page/lang/zh-CN.lang.php b/modules/page/lang/zh-CN.lang.php index bb66c91bd..427d3c563 100644 --- a/modules/page/lang/zh-CN.lang.php +++ b/modules/page/lang/zh-CN.lang.php @@ -13,4 +13,18 @@ $lang->about_page_caching_interval = "单位为分。缓冲时间间隔内页面将输出临时储存的数据。
显示外链服务器信息或数据时,如消耗资源很大,尽量把缓冲时间设置为大一点的相应值。
0 表示无缓冲。"; $lang->about_mcontent = '此页为移动版页面,如您没有对此页面进行布局,它会自动将PC版页面数据重排序显示。'; $lang->page_management = '페이지 관리'; + + /* add merge opage + page type and article create */ + $lang->page_type = '페이지 타입'; + $lang->click_choice = '선택해 주세요.'; + $lang->page_type_name = array('WIDGET' => '위젯' + ,'ARTICLE' => 'Article' + ,'OUTSIDE' => 'External Page'); + $lang->about_page_type = '페이지 타입을 선택하여 원하는 화면을 구성할 수 있습니다.
  1. 위젯형 : 여러가지 위젯들을 생성하여 화면을 구성합니다.
  2. 문서형 : 제목, 내용, 태그를 갖는 문서를 제작하여 포스팅 형식의 페이지를 작성합니다.
  3. 외부페이지형 : 외부HTML또는 PHP 파일을 XE에서 사용할 수 있습니다.
'; + + $lang->opage_path = "Location of External Document"; + $lang->about_opage = "This module enables to use external html or php files in XE.
It allows absolute or relative path, and if the url starts with 'http://' , it can display the external page of the server."; + $lang->about_opage_path= "Please input the location of external document.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; + $lang->opage_mobile_path = 'Location of External Document for Mobile View'; + $lang->about_opage_mobile_path= "Please input the location of external document for mobile view. If not inputted, it uses the external document specified above.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; ?> diff --git a/modules/page/lang/zh-TW.lang.php b/modules/page/lang/zh-TW.lang.php index ea4ba7b97..8ebe5a2fa 100644 --- a/modules/page/lang/zh-TW.lang.php +++ b/modules/page/lang/zh-TW.lang.php @@ -13,4 +13,18 @@ $lang->about_page_caching_interval = "單位為分。暫存時間內頁面將輸出臨時儲存的資料。
輸出外部主機訊息或資料時,如消耗資源很大,盡量把暫存時間設大一點。
『0』表示不暫存。"; $lang->about_mcontent = '此頁面為手機瀏覽頁面。如果沒有編輯此頁面,則會將預設頁面改編重新顯示。'; $lang->page_management = '頁面管理'; + + /* add merge opage + page type and article create */ + $lang->page_type = '페이지 타입'; + $lang->click_choice = '선택해 주세요.'; + $lang->page_type_name = array('WIDGET' => '위젯' + ,'ARTICLE' => 'Article' + ,'OUTSIDE' => 'External Page'); + $lang->about_page_type = '페이지 타입을 선택하여 원하는 화면을 구성할 수 있습니다.
  1. 위젯형 : 여러가지 위젯들을 생성하여 화면을 구성합니다.
  2. 문서형 : 제목, 내용, 태그를 갖는 문서를 제작하여 포스팅 형식의 페이지를 작성합니다.
  3. 외부페이지형 : 외부HTML또는 PHP 파일을 XE에서 사용할 수 있습니다.
'; + + $lang->opage_path = "Location of External Document"; + $lang->about_opage = "This module enables to use external html or php files in XE.
It allows absolute or relative path, and if the url starts with 'http://' , it can display the external page of the server."; + $lang->about_opage_path= "Please input the location of external document.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; + $lang->opage_mobile_path = 'Location of External Document for Mobile View'; + $lang->about_opage_mobile_path= "Please input the location of external document for mobile view. If not inputted, it uses the external document specified above.
Both absolute path such as '/path1/path2/sample.php' or relative path such as '../path2/sample.php' can be used.
If you input the path like 'http://url/sample.php', the result will be received and then displayed.
This is current XE's absolute path.
"; ?> diff --git a/modules/page/page.admin.controller.php b/modules/page/page.admin.controller.php index da9dfcf73..3069f8f78 100644 --- a/modules/page/page.admin.controller.php +++ b/modules/page/page.admin.controller.php @@ -43,6 +43,27 @@ $args = $module_info; } } + + switch ($args->page_type){ + case 'WIDGET' : { + unset($args->skin); + unset($args->mskin); + unset($args->opage_path); + unset($args->opage_mpath); + break; + } + case 'ARTICLE' : { + unset($args->page_caching_interval); + unset($args->opage_path); + unset($args->opage_mpath); + break; + } + case 'OUTSIDE' : { + unset($args->skin); + unset($args->mskin); + break; + } + } // Insert/update depending on module_srl if(!$args->module_srl) { $output = $oModuleController->insertModule($args); @@ -205,5 +226,57 @@ $oWidgetController->recompileWidget($content); } + function procPageAdminArticleDocumentInsert(){ + $logged_info = Context::get('logged_info'); + if ($logged_info->is_admin != 'Y')return new Object(-1, 'msg_not_permitted'); + + $obj = Context::getRequestVars(); + $obj->module_srl = $this->module_info->module_srl; + $obj->is_notice = 'N'; + + settype($obj->title, "string"); + if($obj->title == '') $obj->title = cut_str(strip_tags($obj->content),20,'...'); + //그래도 없으면 Untitled + if($obj->title == '') $obj->title = 'Untitled'; + + // document module의 model 객체 생성 + $oDocumentModel = &getModel('document'); + + // document module의 controller 객체 생성 + $oDocumentController = &getController('document'); + + // 이미 존재하는 글인지 체크 + $oDocument = $oDocumentModel->getDocument($obj->document_srl, true); + + $bAnonymous = false; + + // 이미 존재하는 경우 수정 + if($oDocument->isExists() && $oDocument->document_srl == $obj->document_srl) { + $output = $oDocumentController->updateDocument($oDocument, $obj); + $msg_code = 'success_updated'; + // 그렇지 않으면 신규 등록 + } else { + $output = $oDocumentController->insertDocument($obj, $bAnonymous); + $msg_code = 'success_registed'; + $obj->document_srl = $output->get('document_srl'); + + $oModuleController = &getController('module'); + $this->module_info->document_srl = $obj->document_srl; + $oModuleController->updateModule($this->module_info); + + } + + // 오류 발생시 멈춤 + if(!$output->toBool()) return $output; + + // 결과를 리턴 + $this->add('mid', Context::get('mid')); + $this->add('document_srl', $output->get('document_srl')); + + // 성공 메세지 등록 + $this->setMessage($msg_code); + } + + } ?> diff --git a/modules/page/page.admin.view.php b/modules/page/page.admin.view.php index 6c1e619b7..4a44df879 100644 --- a/modules/page/page.admin.view.php +++ b/modules/page/page.admin.view.php @@ -56,7 +56,10 @@ if($s_browser_title) $args->s_browser_title = $s_browser_title; $output = executeQuery('page.getPageList', $args); - moduleModel::syncModuleToSite($output->data); + $oModuleModel = &getModel('module'); + $page_list = $oModuleModel->addModuleExtraVars($output->data); + moduleModel::syncModuleToSite($page_list); + // To write to a template context:: set Context::set('total_count', $output->total_count); Context::set('total_page', $output->total_page); @@ -92,6 +95,16 @@ $mobile_layout_list = $oLayoutModel->getLayoutList(0,"M"); Context::set('mlayout_list', $mobile_layout_list); // Set a template file + + if ($this->module_info->page_type == 'ARTICLE'){ + $oModuleModel = &getModel('module'); + $skin_list = $oModuleModel->getSkins($this->module_path); + Context::set('skin_list',$skin_list); + + $mskin_list = $oModuleModel->getSkins($this->module_path, "m.skins"); + Context::set('mskin_list', $mskin_list); + } + $this->setTemplateFile('page_info'); } @@ -134,6 +147,13 @@ $mobile_layout_list = $oLayoutModel->getLayoutList(0,"M"); Context::set('mlayout_list', $mobile_layout_list); + + $oModuleModel = &getModel('module'); + $skin_list = $oModuleModel->getSkins($this->module_path); + Context::set('skin_list',$skin_list); + + $mskin_list = $oModuleModel->getSkins($this->module_path, "m.skins"); + Context::set('mskin_list', $mskin_list); // Set a template file $this->setTemplateFile('page_insert'); } @@ -189,6 +209,12 @@ function dispPageAdminContentModify() { // Set the module information Context::set('module_info', $this->module_info); + + if ($this->module_info->page_type == 'WIDGET') $this->_setWidgetTypeContentModify(); + else if ($this->module_info->page_type == 'ARTICLE') $this->_setArticleTypeContentModify(); + } + + function _setWidgetTypeContentModify() { // Setting contents $content = Context::get('content'); if(!$content) $content = $this->module_info->content; @@ -203,8 +229,23 @@ Context::set('widget_list', $widget_list); // Set a template file $this->setTemplateFile('page_content_modify'); - } - + } + + function _setArticleTypeContentModify() { + $oDocumentModel = &getModel('document'); + $oDocument = $oDocumentModel->getDocument(0, true); + + if ($this->module_info->document_srl){ + $document_srl = $this->module_info->document_srl; + $oDocument->setDocument($document_srl); + Context::set('document_srl', $document_srl); + } + Context::addJsFilter($this->module_path.'tpl/filter', 'insert_article.xml'); + Context::set('oDocument', $oDocument); + Context::set('mid', $this->module_info->mid); + $this->setTemplateFile('article_content_modify'); + } + /** * @brief Delete page output **/ diff --git a/modules/page/page.class.php b/modules/page/page.class.php index 85030e991..55132db9e 100644 --- a/modules/page/page.class.php +++ b/modules/page/page.class.php @@ -21,6 +21,12 @@ * @brief a method to check if successfully installed **/ function checkUpdate() { + $output = executeQuery('page.pageTypeOpageCheck'); + if ($output->toBool() && $output->data) return true; + + $output = executeQuery('page.pageTypeNullCheck'); + if ($output->toBool() && $output->data) return true; + return false; } @@ -28,6 +34,28 @@ * @brief Execute update **/ function moduleUpdate() { + // opage module instance update + $output = executeQueryArray('page.pageTypeOpageCheck'); + if ($output->toBool() && count($output->data) > 0){ + foreach($output->data as $val){ + $args->module_srl = $val->module_srl; + $args->name = 'page_type'; + $args->value= 'OUTSIDE'; + $in_out = executeQuery('page.insertPageType', $args); + } + $output = executeQuery('page.updateAllOpage'); + } + + // old page module instance update + $output = executeQuery('page.pageTypeNullCheck'); + if ($output->toBool() && $output->data){ + foreach($output->data as $val){ + $args->module_srl = $val->module_srl; + $args->name = 'page_type'; + $args->value= 'WIDGET'; + $in_out = executeQuery('page.insertPageType', $args); + } + } return new Object(0,'success_updated'); } diff --git a/modules/page/page.controller.php b/modules/page/page.controller.php new file mode 100644 index 000000000..88b889481 --- /dev/null +++ b/modules/page/page.controller.php @@ -0,0 +1,102 @@ +]*)>(.*?)<\/title>!is', $content, $buff); + return trim($buff[2]); + } + + /** + * @brief Extract header script + **/ + function getHeadScript($content) { + // remove the title tag + $content = preg_replace('!]*)>(.*?)<\/title>!is','', $content); + // Remove meta tags + $content = preg_replace('!<(\/){0,1}meta([^>]*)>!is','', $content); + // Extract information such as ]*)>!is', $content, $link_buff); + for($i=0;$i!is', $content, $script_buff); + for($i=0;$i]*)>(.*?)<\/body>!is', $content, $body_buff); + $body_script = $body_buff[2]; + // Remove link, style, script, etc. + $body_script = preg_replace('!]*)>!is', '', $body_script); + $body_script = preg_replace('!<(style|script)(.*?)<\/(style|script)>!is', '', $body_script); + return $body_script; + } + + /** + * @brief Change the value of src, href in the content + **/ + function replaceSrc($content, $path) { + $url_info = parse_url($path); + $host = sprintf("%s://%s%s",$url_info['scheme'],$url_info['host'],$url_info['port']?':'.$url_info['port']:''); + $this->host = $host.'/'; + $path = $url_info['path']; + if(substr($path,-1)=='/') $path = substr($path,-1); + $t = explode('/',$path); + $_t = array(); + for($i=0,$c=count($t)-1;$i<$c;$i++) { + $v = trim($t[$i]); + if(!$v) continue; + $_t[] = $v; + } + $path = $host.'/'.implode('/',$_t); + if(substr($path,-1)!='/') $path .= '/'; + $this->path = $path; + $content = preg_replace_callback('/(src=|href=|url\()("|\')?([^"\'\)]+)("|\'\))?/is',array($this,'_replacePath'),$content); + + return $content; + } + + function _replacePath($matches) { + $val = trim($matches[3]); + if(preg_match('/^(http|https|ftp|telnet|mms|mailto)/i',$val)) return $matches[0]; + if(substr($val,0,2)=='./') { + $path = $this->path.substr($val,2); + } elseif(substr($val,0,1)=='/') { + $path = $this->host.substr($val,1); + } else { + $path = $this->path.$val; + } + return sprintf("%s%s%s%s", $matches[1], $matches[2], $path, $matches[4]); + } + + } +?> diff --git a/modules/page/page.view.php b/modules/page/page.view.php index a2ddf0ca6..cb33fffff 100644 --- a/modules/page/page.view.php +++ b/modules/page/page.view.php @@ -10,6 +10,9 @@ var $module_srl = 0; var $list_count = 20; var $page_count = 10; + var $cache_file; + var $interval; + var $opage_path; /** * @brief Initialization @@ -17,6 +20,21 @@ function init() { // Get a template path (page in the administrative template tpl putting together) $this->setTemplatePath($this->module_path.'tpl'); + + switch($this->module_info->page_type) + { + case 'WIDGET' : { + $this->cache_file = sprintf("%sfiles/cache/page/%d.%s.cache.php", _XE_PATH_, $this->module_info->module_srl, Context::getLangType()); + $this->interval = (int)($this->module_info->page_caching_interval); + break; + } + case 'OUTSIDE' : { + $this->cache_file = sprintf("./files/cache/opage/%d.cache.php", $this->module_info->module_srl); + $this->interval = (int)($this->module_info->page_caching_interval); + $this->opage_path = $this->module_info->opage_path; + break; + } + } } /** @@ -25,30 +43,156 @@ function dispPageIndex() { // Variables used in the template Context:: set() if($this->module_srl) Context::set('module_srl',$this->module_srl); - // Specifying the cache file - $cache_file = sprintf("%sfiles/cache/page/%d.%s.cache.php", _XE_PATH_, $this->module_info->module_srl, Context::getLangType()); - $interval = (int)($this->module_info->page_caching_interval); - if($interval>0) { - if(!file_exists($cache_file)) $mtime = 0; - else $mtime = filemtime($cache_file); - if($mtime + $interval*60 > time()) { - $page_content = FileHandler::readFile($cache_file); - $page_content = preg_replace('@<\!--#Meta:@', ' + + + diff --git a/modules/page/tpl/article_content_modify.html b/modules/page/tpl/article_content_modify.html new file mode 100644 index 000000000..bc6a9f8f7 --- /dev/null +++ b/modules/page/tpl/article_content_modify.html @@ -0,0 +1,25 @@ + +
+ + + +
+ +
+ +
{$oDocument->getEditor()}
+ +
+ +

{$lang->about_tag}

+
+
+ + + + + + + +
+
diff --git a/modules/page/tpl/content.html b/modules/page/tpl/content.html index 56fdea24a..5172c97e8 100644 --- a/modules/page/tpl/content.html +++ b/modules/page/tpl/content.html @@ -3,11 +3,15 @@
+ {$lang->cmd_remake_cache} - + + {$lang->cmd_setup} + {$lang->cmd_page_modify} + Mobile diff --git a/modules/page/tpl/filter/insert_article.xml b/modules/page/tpl/filter/insert_article.xml new file mode 100644 index 000000000..7532ecff2 --- /dev/null +++ b/modules/page/tpl/filter/insert_article.xml @@ -0,0 +1,13 @@ + +
+ + + + + + + + + + +
diff --git a/modules/page/tpl/filter/insert_outside.xml b/modules/page/tpl/filter/insert_outside.xml new file mode 100644 index 000000000..bf63e2189 --- /dev/null +++ b/modules/page/tpl/filter/insert_outside.xml @@ -0,0 +1,23 @@ + +
+ + + + + + + + + + + + + + + + + + + + +
diff --git a/modules/page/tpl/header.html b/modules/page/tpl/header.html index d377f1ed4..cb3c9917a 100644 --- a/modules/page/tpl/header.html +++ b/modules/page/tpl/header.html @@ -11,7 +11,7 @@
diff --git a/modules/page/tpl/index.html b/modules/page/tpl/index.html index 6108ae239..e98ee9544 100644 --- a/modules/page/tpl/index.html +++ b/modules/page/tpl/index.html @@ -40,6 +40,7 @@ + {$lang->page_type}
{$lang->mid}
{$lang->browser_title}
{$lang->regdate}
@@ -63,6 +64,7 @@ {$module_category[$val->module_category_srl]->title} + {$val->page_type} {htmlspecialchars($val->mid)} {$val->browser_title} {zdate($val->regdate,"Y-m-d")} diff --git a/modules/page/tpl/js/page_admin.js b/modules/page/tpl/js/page_admin.js index 7568e9599..3514551c5 100644 --- a/modules/page/tpl/js/page_admin.js +++ b/modules/page/tpl/js/page_admin.js @@ -25,6 +25,21 @@ function completeInsertPage(ret_obj) { location.href = url; } +function completeArticleDocumentInserted(ret_obj){ + var error = ret_obj['error']; + var message = ret_obj['message']; + + var mid = ret_obj['mid']; + + alert(message); + + var url = ''; + url = current_url.setQuery('act', 'dispPageIndex').setQuery('mid', mid); + + + location.href = url; +} + /* 내용 저장 후 */ function completeInsertPageContent(ret_obj) { var error = ret_obj['error']; @@ -108,3 +123,4 @@ function doCartSetup(url) { url += "&module_srls="+module_srl.join(','); popopen(url,'modulesSetup'); } + diff --git a/modules/page/tpl/page_info.html b/modules/page/tpl/page_info.html index 9f3fcfafb..99c3a8045 100644 --- a/modules/page/tpl/page_info.html +++ b/modules/page/tpl/page_info.html @@ -6,6 +6,12 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +
{$lang->page_type}
+ {$lang->page_type_name[$module_info->page_type]} +
{$lang->mid}
@@ -64,6 +70,7 @@

{$lang->about_layout}

{$lang->page_caching_interval}
@@ -71,11 +78,54 @@

{$lang->about_page_caching_interval}

{$lang->opage_path}
+ +

{$lang->about_opage_path}{realpath("./")}

+
{$lang->opage_mobile_path}
+ +

{$lang->about_opage_mobile_path}{realpath("./")}

+
{$lang->skin}
+ +

{$lang->about_skin}

+
{$lang->mobile_skin}
+ +

{$lang->about_skin}

+
+ {$lang->cmd_page_modify} - + + {$lang->cmd_list} {$lang->cmd_back} diff --git a/modules/page/tpl/page_insert.html b/modules/page/tpl/page_insert.html index a292f583e..73092fa4d 100644 --- a/modules/page/tpl/page_insert.html +++ b/modules/page/tpl/page_insert.html @@ -1,10 +1,30 @@ + -
+ + + + + + + + + + + + @@ -67,13 +87,49 @@

{$lang->about_layout}

- + + + + + + + + + + + + + + + + +
{$lang->page_type}
{$lang->page_type}
+ +

{$lang->about_page_type}

+
{$lang->page_caching_interval}
{$lang->unit_min}

{$lang->about_page_caching_interval}

{$lang->skin}
+ +

{$lang->about_skin}

+
{$lang->mobile_skin}
+ +

{$lang->about_skin}

+
{$lang->opage_path}
+ +

{$lang->about_opage_path}{realpath("./")}

+
{$lang->opage_mobile_path}
+ +

{$lang->about_opage_mobile_path}{realpath("./")}

+
@@ -82,3 +138,17 @@
+