PEAK XOOPS - Downloads in englishin japanese






Main : Etc. : 



Sort by:  Title () Date () Rating () Popularity ()
Files currently sorted by: Date (New Files Listed First)

Category: Etc.           php5
Download Now! Download Now! FCKeditor on XOOPS Popular Version: 2.5.1-003
Submitted Date:  2009/11/11
Description:
in englishin japanese
== XOOPS用 FCKeditor ==

●利用法

アーカイブを解凍し、XOOPS_ROOT_PATH直下においてください。
XOOPS_ROOT_PATH/common/
という形になります。

すでに、なんらかのcommonファイルを入れていれば、commonフォルダがある
はずですし、なければ新しくcommonフォルダを作る形になります。

ファイルアップロードを利用するためには、XOOPS_ROOT_PATH/uploads の下に、fckeditor というフォルダをFTP等で作ってください。このフォルダのパーミッションは場合に応じて異なりますが、phpがApacheモジュールとして動いているなら777、CGI版なら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サーバの場合は、FTP等でuploads/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ベースにする
- エントリポイントの2ファイル以外は全部TRUST内に追いやる予定
- configをaltsysあたりの設定に持って行く予定

(2009-11-11) 2.5.1-003
- Flashがtrustモードとなっていなかったのを修正 (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-Disposition時にIEのみ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ファイルをまるまる作り直し
- uploadとbrowseが両方とも同じconfigを利用できるように




Downloaded 53513 times  53513  File Size 522.67 KB  Supported Platforms tar.gz|zip|php5  Home Page http://www.peak.ne.jp/
Modify | Report Broken File | Tell a Friend | Comments (4)


Category: Etc.           php5
Download Now! mymenu 1.00 for conventional modules Popular Version: 1.00
Submitted Date:  2008/12/8
Description:
in englishin japanese
旧型モジュール用MyMenu

●要旨

mymenu.phpはモジュールの管理画面すべてにトップメニューをつけ、altsysとの親和性を高めるためのファイルです。
旧型モジュールおよびDuplicatable V2までのモジュール用です。
D3モジュール用のmymenuは別途用意していませんが、適宜、picoあたりからコピーしてください。


●背景

もともとのmymenuは、myblocksadmin・mytplsadminなどと一緒に使い、ブロック管理・テンプレート管理を各モジュール内に持たせるものでした。

現在は、myblocksadminもmytplsadminも開発を終了し、それらの主要ロジックはaltsys内に一つだけ持つ形になっており、mymenuはaltsysへのラッパーとしてのみ働くよう、大きく性質が変化しました。

mymenu-1.0時点では、ブロック・アクセス権限(いわゆるmyblocksadmin)・テンプレート管理(いわゆるmytplsadmin)・言語定数管理・一般設定へのラッパーを持っています。


●使い方:

1) mymenu.php を modules/(dirname)/admin/ にコピーする

2) 管理画面用のファイルを一通り編集し、include('./mymenu.php'); という行を、xoops_cp_header(); の直後に挿入する

3) admin/index.php のcp_header.php読込直後に、altsysへの分岐処理を挿入する

4) admin/index.php の先頭で、modinfo.php の二重読込回避用定数(_MYMENU_CONSTANT_IN_MODINFO)を定義する(最初からmodinfo.phpに二重読込回避策が仕込んであれば不要)

5) language/(lang)/admin.php で、_MD_A_MYMENU_MYTPLSADMIN , _MD_A_MYMENU_MYBLOCKSADMIN , _MD_A_MYMENU_MYLANGADMIN , _MD_A_MYMENU_MYPREFERENCES を定義する(しなくても良い)



管理画面用スクリプトのサンプルスケルトン:

require_once( '../../../include/cp_header.php' ) ;
define( '_MYMENU_CONSTANT_IN_MODINFO' , '(modinfo.phpの最初に定義されている定数)' ) ;

// branch for altsys
if( defined( 'XOOPS_TRUST_PATH' ) && ! empty( $_GET['lib'] ) ) {
	$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
	$mydirpath = dirname( dirname( __FILE__ ) ) ;

	// common libs (eg. altsys)
	$lib = preg_replace( '/[^a-zA-Z0-9_-]/' , '' , $_GET['lib'] ) ;
	$page = preg_replace( '/[^a-zA-Z0-9_-]/' , '' , @$_GET['page'] ) ;
	
	if( file_exists( XOOPS_TRUST_PATH.'/libs/'.$lib.'/'.$page.'.php' ) ) {
		include XOOPS_TRUST_PATH.'/libs/'.$lib.'/'.$page.'.php' ;
	} else if( file_exists( XOOPS_TRUST_PATH.'/libs/'.$lib.'/index.php' ) ) {
		include XOOPS_TRUST_PATH.'/libs/'.$lib.'/index.php' ;
	} else {
		die( 'wrong request' ) ;
	}
	exit ;
}

(DB update section)

xoops_cp_header() ;
include(dirname(__FILE__).'/mymenu.php');

(output section)

xoops_cp_footer() ;


language/(lang)/admin.php のサンプル

// altsys
define('_MD_A_MYMENU_MYTPLSADMIN','テンプレート管理');
define('_MD_A_MYMENU_MYBLOCKSADMIN','アクセス権限');
define('_MD_A_MYMENU_MYLANGADMIN','言語定数管理');
define('_MD_A_MYMENU_MYPREFERENCES','一般設定');



お試しあれ!




CHANGELOG:

2008-12-08 1.00 modified altsys friendly radically
2007-03-22 0.20 added page title for breadcrumbs of "admin in theme"
2006-12-18 0.19 modified compatibility environment without XOOPS_TRUST_PATH
2006-10-31 0.18 modified compatibility with Cube 2.1
modified altsys friendly
2006-05-03 0.17 updated gticket2
2006-02-10 0.16 fixed compatibility problem with XoopsCube2.1alpha (thx nobunobu)
2005-11-13 0.15 modified the compatibility with PHP 5.0.5
modified some files from CR+LF into LF
fixed some Notices in saving preferences (0.15a)
2005-06-09 0.14 modified 'area' in preference.inc.php
2005-05-25 0.13 modified XoopsGTicket supports 'area' and 'referer'
2005-02-22 0.12 fixed a typo of HTML tag
2005-02-21 0.11 disable checking IP
modified not to display top menu against ORETEKI
modified HTML of menu
2005-01-13 0.10 modified ticket system (limit stubs max 10)
fixed the highlight and the link to configs
2005-01-04 0.08 modified the usage of XoopsForm (thx okuhiki)
2004-12-30 0.07 modified using $_SERVER instead of $_ENV (thx Marijuana)
2004-12-16 0.06 eliminated unsed codes from preferences.inc.php for the security
2004-12-10 0.05 modified ticket system
2004-12-06 0.04 modified ticket system
2004-12-05 0.03 modified ticket system
2004-12-03 0.02 modified to use $_GET or $_POST instead of $HTTP_*_VARS (mari)
added admin_refcheck() for security (mari)
added ticket system for security (mari)
eliminated foreach() extraction from $_POST (mari)
fixed a place to include language files (thx marcan)
2004-06-15 0.01 the first release



COPYRIGHT:

I do not insist on the right of these codes, and don't guarantee.


Downloaded 14610 times  14610  File Size 3.51 KB  Supported Platforms zip|php5  Home Page http://www.peak.ne.jp/
Modify | Report Broken File | Tell a Friend | Comments (0)


Category: Etc.          
Download Now! Hodajuku Distribution Installer/Updater (CGI) Popular Version: 0.01
Submitted Date:  2008/10/22
Description:

Downloaded 2978 times  2978  File Size 5.47 KB  Supported Platforms zip  Home Page 
Modify | Report Broken File | Tell a Friend | Comments (1)


Category: Etc.     x22     xc21   php5
Download Now! Theme - newbase0db Popular Version: 1.01
Submitted Date:  2008/2/25
Description:
A special theme for dbtheme module.
You have to install dbtheme also.

- auto breadcrumbs
- css template (colors, widths etc.)
- flexible liquid design

This theme is based on full_flex_1 made by hodaka.
http://www.kuri3.net/

Downloaded 4305 times  4305  File Size 14.16 KB  Supported Platforms zip|php5|x22|xc21  Home Page http://www.peak.ne.jp/
Modify | Report Broken File | Tell a Friend | Comments (0)


Category: Etc.         xc21   php5
Download Now! xmobile plugin for pico Popular Version: 1.40
Submitted Date:  2007/8/9
Description:
==== xmobile plugin for pico ====

Extract the archive and copy the file into modules/xmobile/plugins/

This plugin needs pico >= 1.40


Downloaded 3704 times  3704  File Size 575 bytes  Supported Platforms zip|php5|xc21  Home Page http://www.peak.ne.jp/
Modify | Report Broken File | Tell a Friend | Comments (0)


Category: Etc.          
Download Now! Download Now! common/lib Popular Version: 1.00
Submitted Date:  2007/6/30
Description:
A JavaScript library including ...

- prototype.js
- script.aculo.us

Place it like this.

XOOPS_ROOT_PATH
   - class
   - kernel
   - (etc)

   - common
      - lib




Downloaded 9785 times  9785  File Size 53.95 KB  Supported Platforms tar.gz|zip  Home Page http://www.peak.ne.jp/
Modify | Report Broken File | Tell a Friend | Comments (0)


Category: Etc.          
Download Now! Xoops Language Checker Popular Version: 2.20
Submitted Date:  2007/5/4
Description:
in englishin japanese

XOOPSの言語ファイルを管理するためのツールです。CLI版PHPが必須です。

v2.0 から、Duplicatable仕様(D1およびD2)の言語ファイルにも対応しました。
v2.1 では、D3仕様の言語ファイルにも対応しました。
v2.2 では、japaneseutf を japanese から更新する機能もつけました。(決めうちの汚いコードですが)

このツールでDuplicatableモジュールの言語ファイルを管理するためには、その言語ファイルの構造を以下のようなスケルトンにして下さい。

(D1 および D2)

if( defined( 'FOR_XOOPS_LANG_CHECKER' ) || ! defined( '(YOUR MODULE)_MB_LOADED' ) ) {
	define( '(YOUR MODULE)_MD_LOADED' , 1 ) ;

	define( "_MD_..." , "..." ) ;
	define( "_MD_..." , "..." ) ;
	define( "_MD_..." , "..." ) ;
}


In version 2.1, D3 module can be managed.

(D3モジュールの modinfo.php と blocks_each.php)

if( defined( 'FOR_XOOPS_LANG_CHECKER' ) ) $mydirname = 'd3forum' ;
$constpref = '_MI_' . strtoupper( $mydirname ) ;

if( defined( 'FOR_XOOPS_LANG_CHECKER' ) || ! defined( $constpref.'_LOADED' ) ) {

	define( $constpref.'_LOADED' , 1 ) ;

	define($constpref."_...","...");
	define($constpref."_...","...");
	define($constpref."_...","...");
}

※D3モジュール用言語ファイルのうち、main.php admin.php blocks_common.php の3つは、単なるdefine()文の羅列だけでOKです。


使い方(Unix用):

解凍して出来たファイル3つを、実行パスの通る同じ場所に置きます。
3ファイルともに実行属性があることを確認して下さい。

あとは、モジュールのディレクトリで、xoops_lang_check.php を実行すればOKです。


使用例)

$ xoops_lang_check.php --help
使い方を表示します。

$ xoops_lang_check.php . english japanese
カレントディレクトリの下にあるlanguageファイルの中から、english を基準にして、japanese の言語ファイルに足りないものをリストアップします。
(ローカライズ担当者にとっての利用方法)

$ xoops_lang_check.php . japanese english
上の逆です。japanese を基準にして、english の言語ファイルに足りないものをリストアップします。
(母国語が英語以外のモジュール作者が、英語ファイルを作るための利用方法)

$ xoops_lang_check.php . english
カレントディレクトリの下にあるlanguageファイルの中から、english を基準にして、english以外のすべての言語ファイルに足りないものをリストアップします。
(すべての言語ファイルを管理したいモジュール作者用)

$ xoops_lang_check.php
一つ上と同じです。

$ xoops_lang_check.php --patch . english japanese
カレントディレクトリの下にあるlanguageファイルの中から、english を基準にして、japanese の言語ファイルに足りないものを、そのファイルに書き込みます。
(より楽をしたいローカライズ担当者にとっての利用方法)

$ xoops_lang_check.php --patch . english
カレントディレクトリの下にあるlanguageファイルの中から、english を基準にして、english以外のすべての言語ファイルについて、足りないものをそのファイルに書込ます。
(すべての言語ファイルを、より厳密に管理したいモジュール作者用)


Downloaded 10297 times  10297  File Size 2.26 KB  Supported Platforms tar.gz  Home Page http://www.peak.ne.jp/
Modify | Report Broken File | Tell a Friend | Comments (1)


Category: Etc.     x22     xc21   php5
Download Now! Theme - newbase0 Popular Version: 1.00
Submitted Date:  2007/4/3
Description:
A sample theme demonstrating some features.

- auto breadcrumbs
- css template (colors, widths etc.)
- flexible liquid design

This theme is based on full_flex_1 made by hodaka.
http://www.kuri3.net/

Downloaded 4067 times  4067  File Size 14.16 KB  Supported Platforms zip|php5|x22|xc21  Home Page http://www.peak.ne.jp/
Modify | Report Broken File | Tell a Friend | Comments (0)


Category: Etc.          
Download Now! KIHON2 as a sample theme can layout center parts Popular Version: 1.04
Submitted Date:  2006/5/9
Description:
in englishin japanese
OCEAN-NETで配付されているkihon1をベースとしたサンプルテーマです。

このテーマの最大の意味合いは、テーマ中央部分の順番を、並び順だけで完全にコントロール出来る点です。

コントロールの意味については、下のGIFをご覧ください。

なお、このロジックは、各ブロックにweightがアサインしてある必要があるため、本家版2.0.13や2.0.9.2などでは、動きません。本家版では、2.2.0以降、JP版では、2.0.10JP以降のバージョンでなら完全動作するはずです。



-------------
(2006-5-9) modified for some warnings and redirect message hack

Downloaded 10092 times  10092  File Size 6.81 KB  Supported Platforms zip  Home Page http://www.oceannet.jp/
Modify | Report Broken File | Tell a Friend | Comments (4)


Category: Etc. ore     x22      
Download Now! Sample Smilies Package Popular Version: 1.0
Submitted Date:  2006/4/5
Description:
A sample of Smilies Package.
Upload this zip file to smilies manager of AVAMAN.

Note: %3A will be traslated into ':' by uploading.


Downloaded 7665 times  7665  File Size 3.90 KB  Supported Platforms zip|x22|ore  Home Page http://www.peak.ne.jp/
Modify | Report Broken File | Tell a Friend | Comments (0)


(1) 2 »
Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!