[mlimg]
[xlang:en]
== FCKeditor for XOOPS ==

[b]USAGE[/b]
- extract file tree under XOOPS_ROOT_PATH  (XOOPS_ROOT_PATH/common/)
- make directory named fckeditor under uploads (XOOPS_ROOT_PATH/uploads/fckeditor/)
- set permission of the directory 0777 (if your PHP runs as CGI, set 0755 instead)
- to modify configuration, rename  editor/filemanager/connectors/php/config_and_auth.inc.dist.php to config_and_auth.inc.php. then edit the file.


[b]DIFF[/b]

- file tree
all of connectors or uploaders other than php are removed.
and php connector and uploader have been modified radically. (for preventing fatal vulnerability)

- two repositories for images and files
Image files (jpeg,gif,png) will be stored inside DocumentRoot.
Files other than images will be stored outside of DocumentRoot (XOOPS_TRUST_PATH).

- the file name stored in the server is independent from local file name
Image files will be renamed newly.
File names of other than images will be encoded like pukiwiki.

- consider safe_mode
if you want to create folder under safe_mode, you have to make the directory manually via FTP etc.

- permission of uploading
only admin of XOOPS can upload with default config_and_auth.inc.php

- uploading by normal users
If you want to allow normal users can upload image files, modify $fck_uploadable_groups in config_and_auth.inc.php
A normal user can browse only files uploaded by him/herself.
A normal user cannot create a new folder.

- permission of listing files
Admins can get a list of all uploaded files.
Normal users can get a list of files uploaded by him/herself.

- permission of accessing each files
All visitors within guests can access any uploaded files if he/she knows its url.

- permission of removing files
Admins can delete all of uploaded files.
Normal users can delete files uploaded by him/herself within 3600sec. (default)

- resize original/making thumnail
If you want special action about uploaded files, modify config_and_auth.inc.php as you like.
A function fck_resize_by_imagemagick() will be a good sample.
(Resizing original image files inside 480x480 box by ImageMagick Package)


[/xlang:en]
[xlang:ja]
== XOOPS FCKeditor ==

ˡ

֤षXOOPS_ROOT_PATHľˤƤ
XOOPS_ROOT_PATH/common/
Ȥˤʤޤ

Ǥˡʤ餫commonեƤСcommonե
ϤǤʤпcommonեˤʤޤ

ե륢åץɤѤ뤿ˤϡXOOPS_ROOT_PATH/uploads βˡfckeditor ȤեFTPǺäƤΥեΥѡߥåϾ˱ưۤʤޤphpApache⥸塼ȤưƤʤ777CGIǤʤ755Ǥ

ץꥱ󤫤ˡǤFCKeditorλȤOKǤ
HTML+JavaScriptȤѰդǤ

XOOPS⥸塼ǤϡȤꤢpicoбƤޤ

fckxoopsϡeditor/filemanager/connectors/php/config_and_auth.inc.dist.php ˤޤȤޤäƤޤ򥫥ޥݤˤϡconfig_and_auth.inc.php ˥͡षƤԽȡΥС󥢥åפǾ񤭤뤳ȤϤʤʤǤ礦


ꥸʥȤ

ֹ
phpʳΥͥåץϤ٤ƺƤޤ
ޤꥸʥphpΥͥåץˤ礭ȼꡢ¾ˤ⤤꤬äᡢۤܤޤޤľƤޤ

եݴɾ
᡼եDocumentRoot֤ޤʳΥեϡTRUST_PATH֤ޤ

ե̾¸
åץɤݤˡΥե̾ϰݻޤ
ROOT֤륤᡼եˤĤƤϡե̾ޤ
Ƚ䤹뤿ˡդե̾˴ޤƤޤ
ROOT֤뤽¾ΥեˤĤƤϡΥե̾pukiwiki󥳡ɤե̾¸ޤʼºݤˤϡuidˤprefixĤ

safe_modeб
safe_mode¤ǥϥޤ뤳Ȥ򤱤뤿ᡢsafe_modeξϡǥ쥯ȥ뤳Ȥʤ褦ˤƤޤ
safe_modeФξϡFTPuploads/fckeditor/βˡŬեƤ

åץɸ
ꥸʥǤϤ̵¤ˤǤͤäΤǤǤǤϡXOOPS˥󤷤Ƥơġθ¤ʤѤǤޤ󡣤Τθ¿ʬϡconfig_and_auth.inc.php νĤǤ
ǥեȤǤϡִԡפˤåץɤĤƤޤ󡣤ΡִԡפȤϡƥ⥸塼δԡX2ѡˤlegacy⥸塼δ(Cube 2.1)Τ줫̣ޤ

Ρޥ桼Υåץɸ
config_and_auth.inc.php  $fck_uploadable_groups ѹСԤǤϤʤ̾Υ桼⥢åץɤǤ褦ˤʤޤξ硢ʬåץɤեʳϡС֥饦Ǹ뤳Ȥޤ󡣥եˤ뿶ʬǤϤʤեprefixˤ뿶ʬǤʤΡޥ桼ϥեκ¤⤢ޤ

եꥹȸ
ԤΥե뤬ꥹɽޤ
̥桼ϡʬåץɤե뤷ꥹɽޤ

ե
󥯤ʤɤǥեURL餫ˤʤäƤΤˤĤƤϡȤ
᤿ƤΥ桼ɤǤޤ

ե
ԤϾƤΥեǽǤ
ʰ٤٤˥ȡǤޤ
̥桼ϡʬåץɤե뤷Ǥޤ
ޤåץɤƤ(ǥեȤǤ3600)ФĤȡʬåץɤեǤʤʤޤ

åץɤ줿Υꥵ/ͥ
⡢config_and_auth.inc.php νĤǡɤΤ褦ˤǤǤޤfck_resize_by_imagemagick() 򻲹ͤˤƤImageMagickȤäơ480x480ȤܥåǼԤ


TODO
֥饦/åץɸ¤κ٤ʼ
μư͡ʥ󥯤Ȳξ˼ưϤ褦ˡġ
Attachman⥸塼ȤϢ


FCKeditor commonȵϿ

(TODO)
- 2.6.3١ˤ
- ȥݥȤΣեʳTRUSTɤͽ
- configaltsys˻äƹԤͽ

(2009-11-11) 2.5.1-003
- Flashtrust⡼ɤȤʤäƤʤäΤ (thx salamander)

(2009-03-19) 2.5.1-002
- SSLͳIEǥɤǤʤȤб

(2008-10-11) 2.5.1-001
- եžΥѥҥߥ (thx jidaikobo)
- ;ʬʥե

(2007-12-26) 2.5.1-000
- ١2.5.1ؤȥåץǡ
- connectors/ Υѥѹ줿Τб (fckconfig.js׽)
- åץǡˡ: common/fckeditor/եƤ饢åץɤ
- fckconfig.js 򥫥ޥƤʤޡ
-- FCKConfig.*BrowserURL  FCKConfig.*UploadURL Υѥ㤦

(2007-12-20) 2.3.2-005
- եǽμ (thx aramaki)
-- ̥桼ϼʬȤΥեǽ (default 3600sec)
- XOOPS_TRUST_PATH/uploads/ ؤΥåץɡžɤμ
-- åץɻĥҤjpeg,gif,pngΤߡXOOPS_UPLOAD_PATHؤȿʬ
-- ꥹȻFile꥽ˤĤƤϡTRUST򸫤褦ˤ
- ե̾¸ܸб (File꥽Τ)
-- ե̾Υ󥳡ɥ롼pukiwikiѥä
-- 󥳡˥ե̾UTF-8ˤƤContent-DispositionIEΤSJIS
- ʤ٤Ŭڤʥ顼Ϥ褦˲
- configեιѹʵСѼԤϥޡɬפ
- Х֥饦Υ꥽ꥹȤJSmartyȤˤ

(2007-12-06) 2.3.2-004
- uid˥ǥ쥯ȥ˿ʬɲáconfig񤭴ơե10Ĥޤ100ļʬǺꡢchmod 777롣(safe_modeбΤ)

(2007-11-18) 2.3.2-003
- åץɤեΥѡߥå644ѹ륳ɤɲ

(2007-09-14) 2.3.2-002
- editor/filemanager/browser/default/frmresourceslist.html 򤤤äƲʤΤΤɽ褦Hack
- ꥵʤɤνɲäǤ褦ˤ
- Ρޥ븢¤ǽȤ
- եϴԤǤ褦ˤ
- Ρޥ븢¤Ǥϼʬåפե֥饦Ǥ褦ˤ

(2006-12-14) 2.3.2-001
- FCKeditor ǿǤΥ/
- FCKeditor/ľ顢editor/ *.js *.xml *.txt ʳ򤹤٤ƺ
- editor/filemanager/browser/default/connectors/ phpʳΥǥ쥯ȥ򤹤٤ƺ (test.html)
- editor/filemanager/upload/ phpʳΥǥ쥯ȥ򤹤٤ƺ (text.html)
- fckconfig.js Խ
var _FileBrowserLanguage	= 'php' ; // ꥸʥasp
var _QuickUploadLanguage	= 'php' ; // ꥸʥasp
- editor/filemanager/browser/default/connectors/php/ ľPHPեޤޤľ
- editor/filemanager/upload/php/ ľPHPեޤޤľ
- uploadbrowseξȤƱconfigѤǤ褦


[/xlang:ja]
