OSDN Git Service

nucleus-jp/nucleus-next.git
12 years agoブックマークレット再構成のためのファイルをコミット
sakamocchi [Mon, 30 Apr 2012 17:20:21 +0000 (02:20 +0900)]
ブックマークレット再構成のためのファイルをコミット

管理画面用スキンに含めてしまうか、それとも管理画面用スキンのカスタマイズ例のひとつとするかで判断がわかれるところではあるが、とりあえず管理画面用スキンの亜種としてコミットした。

Skinオブジェクトを用いてスキンを取得、AdminActionsクラスをバックエンドとしてParserクラスにパースをさせてページを出力する。

この用途に使うにあたり、AdminActionsクラスに関して確認すべき必須事項として以下がある。

1.タグが正常に出力されるかどうか
1-1. <%action%>
1-2. <%logtext%>
1-3. <%log_link%>
1-4. <%log_linktitle%>
1-5. <%extrahead%>
1-6. <%init%>
1-7. <%title%>
1-8. <%headmessage%>
1-9. <%passrequestvars%>

2. ブックマークレット用スキンIDの決定方法。コード中では$CONF['DefaultBookmarkletSkin']として参照している。

3. ブックマークレットのポップアップのためのJavaScriptコードの生成方法。可能ならスキン側から決定できるようにするのが好ましい。

12 years agoMERGE: リビジョン1802。変数名の変更。
sakamocchi [Mon, 30 Apr 2012 14:18:10 +0000 (23:18 +0900)]
MERGE: リビジョン1802。変数名の変更。

BaseActionsクラスの派生クラスのインスタンスはこれまで$actionsとなっていたが、ページ要求変数である$actionと混同してしまうため、$handlerとした。そのため、このコミットにより動作が変わることはない。

Revision 1802:
minor change for variable name
using $handler instead of $actions for BaseActions-derived class.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1802

12 years agoMERGE: リビジョン1800。Skinクラスの2メソッドの名前変更
sakamocchi [Mon, 30 Apr 2012 14:06:42 +0000 (23:06 +0900)]
MERGE: リビジョン1800。Skinクラスの2メソッドの名前変更

スキンの内容の取得先をデータベースとファイルから選択できるようにしているが、それをメソッド名に反映した。

Revision 1800:
CHANGE: rename two methods related to retrieve skin contents and related
modification

rename:
Skin::getContents() to Skin::getContentFromDB()
Skin::getFileConten() to
Skin::getContentFromFile()
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1800

12 years agoMERGE: リビジョン1799。bookmarklet.phpでnextactionが動作しないバグの修正
sakamocchi [Mon, 30 Apr 2012 13:20:35 +0000 (22:20 +0900)]
MERGE: リビジョン1799。bookmarklet.phpでnextactionが動作しないバグの修正

再ログインを促された場合、その時に要求したactionがnextactionに引き継がれず、常にアイテム追加となるバグの修正。

Revision 1799:
FIX: bookmarklet.php cannot keep previous action when
loginAndPassThrough().
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1799

12 years agoMerge branch 'skinnable-master' of ssh://shizuki@git.sourceforge.jp/gitroot/nucleus...
shizuki [Mon, 30 Apr 2012 13:49:43 +0000 (22:49 +0900)]
Merge branch 'skinnable-master' of ssh://shizuki@git.sourceforge.jp/gitroot/nucleus-jp/nucleus-next.git into skinnable-master

12 years ago基本画面を表示できるように調整
shizuki [Mon, 30 Apr 2012 13:49:24 +0000 (22:49 +0900)]
基本画面を表示できるように調整
管理ホーム、あなたの設定、あなたのアイテム、あなたのコメント、管理操作履歴、グローバル設定、システム環境、メンバー管理、新規Blog作成、DB保存/復元、プラグイン管理、テンプレート編集、読込/書出、管理エリア用テンプレート編集、管理エリア用読込/書出の各基本画面の表示ができるようになりました。

12 years agoAdminActions::getDefaultSkinTypes()のコメント修正
sakamocchi [Mon, 30 Apr 2012 13:13:48 +0000 (22:13 +0900)]
AdminActions::getDefaultSkinTypes()のコメント修正

12 years agoFIX: AdminActions::parse_bookmarkletadmin()の修正
sakamocchi [Mon, 30 Apr 2012 06:25:13 +0000 (15:25 +0900)]
FIX: AdminActions::parse_bookmarkletadmin()の修正

出力に「javascript:」がないため、ウィンドウがポップアップしない不具合の修正

12 years agoRemove: 不要となったPageFactory::$objAdmin関連の処理を削除
sakamocchi [Mon, 30 Apr 2012 04:50:51 +0000 (13:50 +0900)]
Remove: 不要となったPageFactory::$objAdmin関連の処理を削除

コミット「c5b913c8a854763f1b71ee4a4ab27a00b10a462d」を補足するコミット。

12 years ago管理画面用スキン中の<%adminurl%>でのCSSファイルとjavascriptファイルの読み込みURLを<%skinfile()%>に変更
shizuki [Sun, 29 Apr 2012 15:30:56 +0000 (00:30 +0900)]
管理画面用スキン中の<%adminurl%>でのCSSファイルとjavascriptファイルの読み込みURLを<%skinfile()%>に変更
showlist.phpの実行中にActionsクラスが存在しなかった場合の処理を追加

12 years agoリビジョン1794の変更を管理画面用スキンの同梱ファイルに反映
shizuki [Sun, 29 Apr 2012 15:26:50 +0000 (00:26 +0900)]
リビジョン1794の変更を管理画面用スキンの同梱ファイルに反映

12 years ago管理画面用スキンのaction_classをAdminActionsに修正
shizuki [Sun, 29 Apr 2012 15:25:05 +0000 (00:25 +0900)]
管理画面用スキンのaction_classをAdminActionsに修正
スキンIDの取得をSkin::$idからself::$skin->getID()に修正
AdminActionsクラスの初期化時のBaseActionsクラス初期化処理の修正

12 years agoRemove: 不要となったPageFactory::$objAdminを削除
sakamocchi [Sun, 29 Apr 2012 05:49:37 +0000 (14:49 +0900)]
Remove: 不要となったPageFactory::$objAdminを削除

12 years agoMERGE: リビジョン1796。多言語化処理の観点からstrstr()をi18n::strpos()に変更
sakamocchi [Sun, 29 Apr 2012 05:18:09 +0000 (14:18 +0900)]
MERGE: リビジョン1796。多言語化処理の観点からstrstr()をi18n::strpos()に変更

Revision 1796:
CHANGE: strstr() to i18n::strpos()
For i18n.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1796

12 years agoMERGE: リビジョン1794。xmlhttprequest.jsのencodeURI()をencodeURIComponent()に変更
sakamocchi [Sun, 29 Apr 2012 05:09:22 +0000 (14:09 +0900)]
MERGE: リビジョン1794。xmlhttprequest.jsのencodeURI()をencodeURIComponent()に変更

encodeURI()はURIすべてをx-www-form-urlencodedでエンコードするためのものである。しかしこの箇所ではURIすべてをエンコードする必要がないため、encodeURIComponent()を用いるべきである。

Revision 1794:
CHANGE: replace encodeURI() to encodeURIComponent()
Autodraft implementation utilize encodeURI() to its part of request URI
but it should be encodeURIComponent().

参考:
Standard ECMA-262 (ECMAScript Language Specification 5th Edition)
http://www.ecma-international.org/publications/standards/Ecma-262.htm
15.1.3 URI Handling Function Properties
15.1.3.1 decodeURI(encodeedURI)
15.1.3.2 decodeURIComponent(encodedURIComponent)
15.1.3.3 encodeURI(uri)
15.1.3.4 encodeURIComponent(uriComponent)

Microsoft Developer Network
JavaScript Reference
decodeURI Function (JavaScript)
http://msdn.microsoft.com/en-us/library/ht8a077w(v=vs.94).aspx
decodeURIComponent Function (JavaScript)
http://msdn.microsoft.com/en-us/library/91b80x6x(v=vs.94).aspx
encodeURI Function (JavaScript)
http://msdn.microsoft.com/en-us/library/xh9be5xc(v=vs.94).aspx
encodeURIComponent Function (JavaScript)
http://msdn.microsoft.com/en-us/library/aeh9cef7(v=vs.94).aspx
escape Function (JavaScript)
http://msdn.microsoft.com/en-us/library/9yzah1fh(v=vs.94).aspx
unescape Function (JavaScript)
http://msdn.microsoft.com/en-us/library/dz4x90hk(v=vs.94).aspx

Mozilla Developer Network
JavaScript Reference
decodeURI
https://developer.mozilla.org/ja/JavaScript/Reference/Global_Objects/decodeURI
decodeURIComponent
https://developer.mozilla.org/ja/JavaScript/Reference/Global_Objects/decodeURIComponent
encodeURI
https://developer.mozilla.org/ja/JavaScript/Reference/Global_Objects/encodeURI
encodeURIComponent
https://developer.mozilla.org/ja/JavaScript/Reference/Global_Objects/encodeURIComponent
escape
https://developer.mozilla.org/ja/DOM/window.escape
unescape
https://developer.mozilla.org/ja/DOM/window.unescape

NOTE:
decodeURI/decodeURIComponent/encodeURI/encodeURIComponent are in
specification,
but escape/unescape is defferent for each vendor's implement.
For example, Microsoft defines it as one of Global Object
http://msdn.microsoft.com/en-us/library/52f50e9t(v=vs.94).aspx
But Mozilla define it as one of methods in DOM Window Object
https://developer.mozilla.org/ja/DOM/window

NOTE:
urldecode() already applied to each elements in
$_GET/$_POST/$_REQUEST/$_COOKIE
http://php.net/manual/en/function.urldecode.php
rawurldecode()
http://www.php.net/manual/en/function.rawurldecode.php
urlencode()
http://www.php.net/manual/en/function.rawurlencode.php
rawurldecode()
http://www.php.net/manual/en/function.urldecode.php

12 years agoMERGE: リビジョン1792。Windowsオペレーティングシステムのレジストリを書き換える機能を廃止
sakamocchi [Sun, 29 Apr 2012 05:03:34 +0000 (14:03 +0900)]
MERGE: リビジョン1792。Windowsオペレーティングシステムのレジストリを書き換える機能を廃止

これまで、Microsoft社のWindowsオペレーティングシステムの内部設定を司るレジストリを書き換え、デスクトップ環境の右クリックメニューにNucleusCMSのブックマークレットへのショートカットを追加する機能を提供していた。セキュリティとコードメンテナンスの観点から、これを廃止する。

Revision 1792:
REMOVE: bookmarklet registering to Windows operating system
This function heavily depends on Windows operating system and hard to
maintain for us. There is no alternatives after this commit.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1792

12 years agoMERGE: リビジョン1792の一部。getBookmarklet()の変更。
sakamocchi [Sun, 29 Apr 2012 04:54:57 +0000 (13:54 +0900)]
MERGE: リビジョン1792の一部。getBookmarklet()の変更。

getBookmarklet()で返されるJavaScriptのコード中で、文字列をx-www-urlencodedに従ってエンコードする目的でescape()を使っていた。しかしこれは、JavaScriptの言語仕様であるStandard
ECMA Script-262に定義されているencodeURIComponent()でエンコードされるべきものである。

これにより、コミットf29dc242d5f30a1394ad4174e7c87e12076e9fc2で指摘されたバグを修正する。

Revision 1792:
REMOVE: bookmarklet registering to Windows operating system
This function heavily depends on Windows operating system and hard to
maintain for us. There is no alternatives after this commit.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1792

Standard ECMA-262 (ECMAScript Language Specification 5th Edition)
http://www.ecma-international.org/publications/standards/Ecma-262.htm
15.1.3 URI Handling Function Properties
15.1.3.1 decodeURI(encodeedURI)
15.1.3.2 decodeURIComponent(encodedURIComponent)
15.1.3.3 encodeURI(uri)
15.1.3.4 encodeURIComponent(uriComponent)

Microsoft Developer Network
JavaScript Reference
decodeURI Function (JavaScript)
http://msdn.microsoft.com/en-us/library/ht8a077w(v=vs.94).aspx
decodeURIComponent Function (JavaScript)
http://msdn.microsoft.com/en-us/library/91b80x6x(v=vs.94).aspx
encodeURI Function (JavaScript)
http://msdn.microsoft.com/en-us/library/xh9be5xc(v=vs.94).aspx
encodeURIComponent Function (JavaScript)
http://msdn.microsoft.com/en-us/library/aeh9cef7(v=vs.94).aspx
escape Function (JavaScript)
http://msdn.microsoft.com/en-us/library/9yzah1fh(v=vs.94).aspx
unescape Function (JavaScript)
http://msdn.microsoft.com/en-us/library/dz4x90hk(v=vs.94).aspx

Mozilla Developer Network
JavaScript Reference
decodeURI
https://developer.mozilla.org/ja/JavaScript/Reference/Global_Objects/decodeURI
decodeURIComponent
https://developer.mozilla.org/ja/JavaScript/Reference/Global_Objects/decodeURIComponent
encodeURI
https://developer.mozilla.org/ja/JavaScript/Reference/Global_Objects/encodeURI
encodeURIComponent
https://developer.mozilla.org/ja/JavaScript/Reference/Global_Objects/encodeURIComponent
escape
https://developer.mozilla.org/ja/DOM/window.escape
unescape
https://developer.mozilla.org/ja/DOM/window.unescape

NOTE:
decodeURI/decodeURIComponent/encodeURI/encodeURIComponent are in
specification,
but escape/unescape is defferent for each vendor's implement.
For example, Microsoft defines it as one of Global Object
http://msdn.microsoft.com/en-us/library/52f50e9t(v=vs.94).aspx
But Mozilla define it as one of methods in DOM Window Object
https://developer.mozilla.org/ja/DOM/window

NOTE:
urldecode() already applied to each elements in
$_GET/$_POST/$_REQUEST/$_COOKIE
http://php.net/manual/en/function.urldecode.php
rawurldecode()
http://www.php.net/manual/en/function.rawurldecode.php
urlencode()
http://www.php.net/manual/en/function.rawurlencode.php
rawurldecode()
http://www.php.net/manual/en/function.urldecode.php

12 years agoFIX:呼び出し関数名の記述ミスにより、メディアのアップロードが失敗する不具合を修正
reine [Sat, 28 Apr 2012 16:43:43 +0000 (01:43 +0900)]
FIX:呼び出し関数名の記述ミスにより、メディアのアップロードが失敗する不具合を修正
他、1箇所の同記述ミスもあわせて修正

12 years agoMERGE: リビジョン1791。Blog/CommentActionsクラスの差分のマージ
sakamocchi [Sat, 28 Apr 2012 05:53:09 +0000 (14:53 +0900)]
MERGE: リビジョン1791。Blog/CommentActionsクラスの差分のマージ

以下の2つのコミットを上流に反映した際の差分のマージ。
commit: f51cf34038f7394f469ef0c2d2fc8c6eec89f47f
commit: 4c5e7bd7ef24aadd49c80f8755d3914c0d32d6e0

Revision 1791:
fix minor bugs in Blog and CommentActions class

Blog::addTeamMember()
CommentActions::parse_time()

12 years ago前回でコミットした修正中のコメントを訂正
sakamocchi [Sat, 28 Apr 2012 05:19:47 +0000 (14:19 +0900)]
前回でコミットした修正中のコメントを訂正

12 years agoCHANGE/REMOVE: <%text%>タグをスキンのどのコンテクストでも利用可能に。NP_Textの廃止。
sakamocchi [Sat, 28 Apr 2012 05:13:44 +0000 (14:13 +0900)]
CHANGE/REMOVE: <%text%>タグをスキンのどのコンテクストでも利用可能に。NP_Textの廃止。

これまで一部の管理画面用スキンでしか利用することのできなかった<%text%>タグを、スキンのどのコンテクストでも利用可能とするため、BaseActions.php::parse_text()を追加。従来NP_Textプラグインで提供してきた、スキン他言語化のための実装をコアに移し、Skin::includeLocaleFile()を新設。Skin::parse()からこのメソッドを実行することで、現在システムで有効となっているロケールに基づき、スキンの翻訳ファイルがインクルードされるようにした。

これによりNP_Textの全機能がコアにマージされたため、NP_Textを廃止。

12 years agoインストール時に管理画面用スキンをインポート
shizuki [Fri, 27 Apr 2012 01:56:44 +0000 (10:56 +0900)]
インストール時に管理画面用スキンをインポート

12 years agoMerge branch 'skinnable-master' of ssh://shizuki@git.sourceforge.jp/gitroot/nucleus...
shizuki [Thu, 26 Apr 2012 02:11:56 +0000 (11:11 +0900)]
Merge branch 'skinnable-master' of ssh://shizuki@git.sourceforge.jp/gitroot/nucleus-jp/nucleus-next.git into skinnable-master

12 years agotmp
shizuki [Thu, 26 Apr 2012 02:11:38 +0000 (11:11 +0900)]
tmp

12 years agoMERGE: リビジョン1786。翻訳ファイル中のメッセージタグの変更。
sakamocchi [Sun, 22 Apr 2012 11:54:45 +0000 (20:54 +0900)]
MERGE: リビジョン1786。翻訳ファイル中のメッセージタグの変更。

Revision 1786:
CHANGE: replace _MEMBER_DEFLANG to _MEMBER_LOCALE in translation files
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1786

12 years agoMERGE: リビジョン1784。Skin/Actionsクラスに限定してマージ。AdminActionsクラスの修正。
sakamocchi [Sun, 22 Apr 2012 04:43:32 +0000 (13:43 +0900)]
MERGE: リビジョン1784。Skin/Actionsクラスに限定してマージ。AdminActionsクラスの修正。

Skin::getDefaultTypes()とSkin::getAvailableTypes()を追加し関連する修正をした。

Revision 1784:
ADD: Skin::getDefaultTypes() and Skin::getAvailableTypes() instead
of Skin::getFriendlyNames()

For easy understanding, rename some functions related to skin and did
some modifications.

Rename: Actions::getSkinTypeFriendlyNames()
to Actions::getDefaultSkinTypes()

Rename: Actions::$skin_type_friendly_names to
Actions::$default_skin_types
Change: Admin::action_skinedit()
Change: Admin::action_skinedittype()
Change: Admin::action_skinremovetype()
Change: listplug_table_skinlist()

http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1784

12 years agoMerge branch 'skinnable-master' of git.sourceforge.jp:/gitroot/nucleus-jp/nucleus...
sakamocchi [Sat, 21 Apr 2012 16:24:50 +0000 (01:24 +0900)]
Merge branch 'skinnable-master' of git.sourceforge.jp:/gitroot/nucleus-jp/nucleus-next into skinnable-master

12 years agoAdminActionsクラスのコード整理
sakamocchi [Sat, 21 Apr 2012 16:24:36 +0000 (01:24 +0900)]
AdminActionsクラスのコード整理

忘れていたAdminActions::checkCondition()と関係するプライベートメソッドの移植を行った。
AdminActions::$skin_type_friendly_namesの配列チェックを行った。
AdminActionsで利用可能なタグ一覧を整理してコメントとして残した。
skinableXXXを参照していた箇所を修正

12 years agoMERGE: リビジョン1782。checkCondition()のアクセス修飾子をprotectedに変更。
sakamocchi [Sat, 21 Apr 2012 16:19:43 +0000 (01:19 +0900)]
MERGE: リビジョン1782。checkCondition()のアクセス修飾子をprotectedに変更。

BaseActionsクラスの派生クラスは、if/else/elseif/ifnot/elseifnot/endifの各タグを処理する際checkCondition()を用いる。この際、BaseActionsクラスがこのメソッドを呼ぶため、protectedとする必要がある。なおこのメソッドはダイレクトに用いるようなものではないため、publicは好ましくない。

Revision 1782:
Change: access modifier for checkCondition() in each class is now
protected
checkCondition is called from BaseActions. The access modifier should be
'protected'.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1782

12 years agoMERGE: リビジョン1781。Skinクラスのevalをcall_user_fun()に変更。
sakamocchi [Sat, 21 Apr 2012 14:28:18 +0000 (23:28 +0900)]
MERGE: リビジョン1781。Skinクラスのevalをcall_user_fun()に変更。

れいんさんの提案を実装。
http://sourceforge.jp/projects/nucleus-jp/lists/archive/developers/2012-April/000897.html

Revision 1781:
CHANGE: use call_user_func() instead of eval() to call static method of
other class
changing processing in these two methods:
Skin::getAllowedActionsForType()
Skin::getFriendlyNames()
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1781

12 years agoMERGE: Skinクラスのみリビジョン1778/1779/1780をマージ
sakamocchi [Sat, 21 Apr 2012 11:05:22 +0000 (20:05 +0900)]
MERGE: Skinクラスのみリビジョン1778/1779/1780をマージ

12 years agoMERGE: リビジョン1775のマージ。fileparseスキンタイプを使用可能に
sakamocchi [Sat, 21 Apr 2012 05:32:40 +0000 (14:32 +0900)]
MERGE: リビジョン1775のマージ。fileparseスキンタイプを使用可能に

開発者用ドキュメントのプラグイン
APIを参照すると、InitSkinParse/PreSkinParse/PostSkinParseの各イベントでfileparseスキンタイプをキャッチ可能とあるが、実装はそうなってはいない。
http://japan.nucleuscms.org/nucleus/documentation/devdocs/plugins.html

Skinクラスのインスタンスがファイルの内容をパースできるように修正し、併せてglobalfunctions.phpのparseFile()関数も修正。正しくイベントが発生するようにした。

Revision 1775:
CHANGE: add 'fileparse' skin type to Skin class and modification for
parseFile() in globalfunctions.php
Refering to Plugin API in Nucleus CMS's documentation, fileparse skin
type is generated in events related to parse skin but actually it didn't
happen. This commit enable it.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1775

12 years agoFIX:スキンの編集画面でクエリの末尾に不要なコロンが入っていたのを削除。クエリのフォーマット指定文字と、引数が合致していないため、更新が行えない問題を修正。
reine [Sat, 21 Apr 2012 02:46:10 +0000 (11:46 +0900)]
FIX:スキンの編集画面でクエリの末尾に不要なコロンが入っていたのを削除。クエリのフォーマット指定文字と、引数が合致していないため、更新が行えない問題を修正。

12 years agoMERGE: リビジョン1774のマージ。globalfunctions.phpのselectLanguage()を非推奨に
sakamocchi [Sat, 21 Apr 2012 02:36:27 +0000 (11:36 +0900)]
MERGE: リビジョン1774のマージ。globalfunctions.phpのselectLanguage()を非推奨に

この関数によって他の翻訳ファイルをインクルードすることにより、定数の衝突が発生し、大量の警告が出る。そのためこの関数を廃止目的で非推奨とする。

12 years agoMERGE: リビジョン1770のマージ。Backupクラスのクラス内コールバック型の修正
sakamocchi [Fri, 20 Apr 2012 02:07:43 +0000 (11:07 +0900)]
MERGE: リビジョン1770のマージ。Backupクラスのクラス内コールバック型の修正

以下のコミットでなされた修正を、より汎用的になるよう修正した。
commit: 931abe155be4800c949cd17915958837f617f507
FIX:インスタンスメソッドからクラスメソッドを呼び出す際に'self'を使用していたためバックアップが正常に作成されない問題を修正

PHP5のコールバック型(PHP5.4からはコーラブル型に改称)では、selfキーワードを用いてクラス内メソッドへコールバックすることができない。そのため、__CLASS__を用いることでスクリプトのプリプロセス時にクラス名に置き換え、実行時にはクラス名が参照されるようにした。

12 years agoFIX:コメント取得のクエリに必要なスペースがないために発生するクエリエラーを修正
reine [Wed, 18 Apr 2012 15:23:25 +0000 (00:23 +0900)]
FIX:コメント取得のクエリに必要なスペースがないために発生するクエリエラーを修正

12 years agoMERGE: リビジョン1758〜1766までのマージと。form用テンプレートに使えるタグ種の変更
sakamocchi [Wed, 18 Apr 2012 14:00:31 +0000 (23:00 +0900)]
MERGE: リビジョン1758〜1766までのマージと。form用テンプレートに使えるタグ種の変更

ファイルに差分があるが、masterブランチのコミット「43f9cda5f7bf989fe42d6200f201f44731aa5253」までをマージした。

12 years agoCHANGE: Adminクラスの初期化・実行処理の変更と、それに伴う/nucleus/index.phpの修正。
sakamocchi [Sun, 15 Apr 2012 15:44:27 +0000 (00:44 +0900)]
CHANGE: Adminクラスの初期化・実行処理の変更と、それに伴う/nucleus/index.phpの修正。

PHPはAdmin::__construct()のstatic呼び出しを許可していないため。

削除:
 Admin::__construct()
追加:
 Admin::initialize()
修正:
 Admin::action()

12 years agoMERGE: リビジョン1757のマージ。BaseActionsクラスとその派生クラスを修正。
sakamocchi [Sun, 15 Apr 2012 09:15:24 +0000 (18:15 +0900)]
MERGE: リビジョン1757のマージ。BaseActionsクラスとその派生クラスを修正。

主にアクセス修飾子の変更。リビジョン1756のリバートも兼ねている。

Revision 1757: CHANGE: rearrangement for BaseActions and derived classes
mainly about their access modifiers.

Rename:
 BaseActions::BaseActions() to BaseActions::initialize()

Public:
 BaseActions::getTopIfCondition()

Protected:
 BaseActions::$parser
 BaseActions::$strHighlight
 BaseActions::initialize()

Private:
 BaseActions::addIfCondition()
 BaseActions::addIfExecute()
 BaseActions::getIncludeFileName()
 BaseActions::updateIfExecute()
 BaseActions::updateTopIfCondition()

12 years agoADD: AdminActionsクラスにSkinクラスから呼び出されるメソッド・メンバーを追加
sakamocchi [Sun, 15 Apr 2012 07:45:21 +0000 (16:45 +0900)]
ADD: AdminActionsクラスにSkinクラスから呼び出されるメソッド・メンバーを追加

以下の4メンバー/メソッドはSkinsクラスでの初期化に必要。

AdminActions::$skin
AdminActions::$parser
AdminActions::setSkin()
AdminActions::setParser()

12 years agoMERGE: リビジョン1756のマージ。Actions::$parserの追加。
sakamocchi [Sun, 15 Apr 2012 07:38:13 +0000 (16:38 +0900)]
MERGE: リビジョン1756のマージ。Actions::$parserの追加。

Actions::setParser()が追加するメンバーを明示した。

Revision 1756: ADD: Actions::$parser
Actions::setParser() utilize it.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1756

12 years agoCHANGE: AdminActions::$parserの廃止とそれに伴う修正
sakamocchi [Sun, 15 Apr 2012 07:10:33 +0000 (16:10 +0900)]
CHANGE: AdminActions::$parserの廃止とそれに伴う修正

以下を削除。
AdminActions::$parser
AdminActions::setParser()

12 years agoCHANGE: AdminActions::$skinの廃止とそれに伴う修正
sakamocchi [Sun, 15 Apr 2012 06:39:02 +0000 (15:39 +0900)]
CHANGE: AdminActions::$skinの廃止とそれに伴う修正

以下を削除。
AdminActions::$skin
AdminActions::setSkin()
AdminActions::parse_adminparsedinclude()
AdminActions::parse_adminstylesheets()

12 years agoCHANGE: AdminActions::$objAdminの廃止とそれに伴う修正
sakamocchi [Sun, 15 Apr 2012 06:24:59 +0000 (15:24 +0900)]
CHANGE: AdminActions::$objAdminの廃止とそれに伴う修正

Adminクラスを静的に再定義したことを受けての修正

12 years agoAdminクラスのプライベートメンバーのアクセス修飾子を変更。
sakamocchi [Sun, 15 Apr 2012 05:50:17 +0000 (14:50 +0900)]
Adminクラスのプライベートメンバーのアクセス修飾子を変更。

以下をstaticにした。
Admin::$xml_version_info
Admin::$formal_public_identifier
Admin::$system_identifier
Admin::$xhtml_namespace

12 years agoAdminクラスのコード整理。
sakamocchi [Sun, 15 Apr 2012 05:44:31 +0000 (14:44 +0900)]
Adminクラスのコード整理。

全メソッドを完了。いくつかのメソッドの名前を書き換えたほか、Admin::parse()をコメントアウトした。Skin::parse()を代わりに用いるため。

12 years agoAdminクラスのコード整理。ほぼ半分が終了。
sakamocchi [Sun, 15 Apr 2012 03:39:56 +0000 (12:39 +0900)]
Adminクラスのコード整理。ほぼ半分が終了。

12 years agoCHANGE: Adminクラスのメンバー及びメソッドをstaticに。
sakamocchi [Sun, 15 Apr 2012 01:51:06 +0000 (10:51 +0900)]
CHANGE: Adminクラスのメンバー及びメソッドをstaticに。

Adminクラスのインスタンスは一回のスクリプト実行において複数ある必要がない。そのため、i18nクラスと同様の静的クラスとして再定義した。

あわせてアクセス修飾子を追加。プラグイン周りのメソッドはpublicアクセスにする必要があるが、さしあたりprivateにしてある。この問題に関してはスキン/テンプレートシステムで構成可能な管理画面が軌道に乗り次第対応したい。

12 years agoMERGE: リビジョン1755のマージ。SkinクラスでActionsクラス以外のバックエンドクラスを利用可能に。
sakamocchi [Sun, 15 Apr 2012 01:33:34 +0000 (10:33 +0900)]
MERGE: リビジョン1755のマージ。SkinクラスでActionsクラス以外のバックエンドクラスを利用可能に。

管理画面をスキン/テンプレートシステムで構成する基盤として、Actionsクラスに関係するコードをSkinクラスからActionsクラスに移動し、関連する修正を行った。これにより、SkinクラスはActionsクラス以外のバックエンドクラスを利用可能となった。

新しいAdminクラスはこれに合わせて順次書きなおされる必要がある。

Revision 1755: CHANGE: modification to allow Skin class to utilize the
others than Actions class

Moving some codes related to Actions class into Actions class and add
some members and methods.
Actions::$default_actions
Actions::getDefinedActions()
Actions::$skin_type_friendly_names
Actions::getSkinTypeFriendlyNames()

Then adding some arguments to Skin::__construct() and
Skin::getFriendlyNames() to indicate an backend class and an event
identifier.

Add $template['friendly_names'] in Admin::action_skinoverview() and pass
it into listplug_table_skinlist() to display skin types.

http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1755

12 years agoMERGE: リビジョン1752のマージ。sql_close()を非推奨関数に。
sakamocchi [Sat, 14 Apr 2012 05:39:58 +0000 (14:39 +0900)]
MERGE: リビジョン1752のマージ。sql_close()を非推奨関数に。

メンテナンスを軽減するため、全く同じことを行うsql_disconnect()を使うように修正。

Revision 1752: CHANGE: sql_close() is deprecated. use sql_disconnect()
instead of this.
There are two ways to close SQL connection. Integration of them are good
to reduce the cost for maintaining.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1752

12 years agoREVERT: sendContentType()に対する修正
sakamocchi [Fri, 13 Apr 2012 15:43:12 +0000 (00:43 +0900)]
REVERT: sendContentType()に対する修正

以下のコミットでなされた修正を戻した。

コンテントタイプ送出時のキャラクタセット設定の修正
commit: ab03fbc2ea6d526a3f7697f49833654c34921839

sendContentType()で出力されるHTTP1.1のCONTENT-TYPEヘッダのcharsetフィールドに含まれる文字符号化方式と、<%charset%>や_CHARSETで出力される文字符号化方式の間に齟齬が起こることが理由。

これに関しては、以下の議論も踏まえてよりよい実装を考えていく必要がある。

Nucleus CMS 4.0の携帯端末対応についてご相談
http://japan.nucleuscms.org/bb/viewtopic.php?f=1&t=5250

12 years agoMERGE: リビジョン1743のマージ。$CONFの初期化に関する変更。
sakamocchi [Fri, 13 Apr 2012 15:29:02 +0000 (00:29 +0900)]
MERGE: リビジョン1743のマージ。$CONFの初期化に関する変更。

commit: 0d3b84f6e8fd4cd4769268a30db8f13fd6ded5dc
CHANGE:グローバル変数$CONFが初期化されていない場合に初期化を行うように変更
FIX:checkVarsに渡す変数名に$が含まれていたので削除

globalfunctions.phpにおいて、プラグインからinclude()された場合、$CONFが必ずしも初期化されているわけではなかった。これにより$CONF['debug']で警告が出力されていた。システム全体からすると初期化されていない変数をそのまま評価するのは予期せぬトラブルの原因となるため、必ず初期化されるように変更した。

Revision 1743: ADD: confirm to initialize $CONF in the beginning of
globalfunctions.php
And fix minor bugs related to a argument for checkVars()
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1743

12 years agoMERGE: リビジョン1746/1751のマージ。i18n::explode()の廃止とコメント修正。
sakamocchi [Fri, 13 Apr 2012 15:18:32 +0000 (00:18 +0900)]
MERGE: リビジョン1746/1751のマージ。i18n::explode()の廃止とコメント修正。

explode()はpreg_split()に置き換えるのが望ましかったが、パターンをPCREに従って書きなおすために必要な作業時間の確保が難しかったため、これまでは単純置換可能なi18n::explode()を使っていた。リビジョン1737と1744でpreg_split()への置き換えが完了したため、晴れて廃止する。

REMOVE: i18n::explode()
With revision 1737 and 1744, there is no i18n::explode(). We SHOULD use
preg_split() for creating array from string with delimiter to avoid
splitting within multibyte character.

Revision 1737: just replacing i18n::explode() to preg_replace and change
its expression according to PCRE.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1737

Revision 1744: replace i18n::explode() to preg_split() in showlist.php
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1744

12 years agoMERGE: リビジョン1750のマージ。./nucleus/libs/sql/mysql.phpのコード整理。
sakamocchi [Fri, 13 Apr 2012 14:45:19 +0000 (23:45 +0900)]
MERGE: リビジョン1750のマージ。./nucleus/libs/sql/mysql.phpのコード整理。

上流/master/skinnable-masterの差分を埋めるためにコミット。

Revision 1750: code clean-up for ./nucleus/libs/sql/mysql.php
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1750

12 years agoMERGE: リビジョン1749のマージ。プラグインの翻訳がインストール時に展開されるバグ修正。
sakamocchi [Fri, 13 Apr 2012 14:21:02 +0000 (23:21 +0900)]
MERGE: リビジョン1749のマージ。プラグインの翻訳がインストール時に展開されるバグ修正。

プラグインオプションにおいてシングルクォーテーションで囲まなかった定数は、インストール時に展開され、データベースに登録される。これでは運用の途中でのロケール変更に対応できない。定数そのままの名前をデータベースに登録することで、コアスクリプトは表示の際にそれを展開し、翻訳メッセージを適用するようになっている。
これはまた、上流/master/skinnnable-masterの差分を埋めるためのコミットでもある。

Revision 1749: FIX: translation message in plugin option wasexpanded
during its installation
Translation message in plugin option should be registered as bare
constant message. Then they're expanded by core scripts when displayed.
And thiis commit includes code clean-up.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1749

12 years agoMERGE: リビジョン1748のマージ。./nucleus/index.phpの修正。
sakamocchi [Fri, 13 Apr 2012 13:32:58 +0000 (22:32 +0900)]
MERGE: リビジョン1748のマージ。./nucleus/index.phpの修正。

上流/master/skinnable-masterの差分を埋めるためにコミット

Revision 1748: CHANGE: replace error message in ./nucleus/install.php
Replacing Error message for existing ./install/index.php and
./install/install.sql to existing ./install/index.php. And code
cleaning-up.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1748

12 years agoMERGE: リビジョン1747のマージ。./install/index.phpの修正。
sakamocchi [Fri, 13 Apr 2012 13:11:52 +0000 (22:11 +0900)]
MERGE: リビジョン1747のマージ。./install/index.phpの修正。

上流/master/skinnable-masterの差分を埋めるためにコミット。

Revision 1747: minor updates for install/index.php
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1747

12 years ago管理画面用スキンの呼び出しタイプ及びスキン変数の一部修正
shizuki [Fri, 13 Apr 2012 09:00:55 +0000 (18:00 +0900)]
管理画面用スキンの呼び出しタイプ及びスキン変数の一部修正
Admin::batchMoveSelectDestinationとAdmin::batchMoveCategorySelectDestinationの呼び出しタイプを修正
スキン変数<%batchmovetype%>に渡す値の設定
スキンタイプ「batchmovecat」で使用できるスキン変数を設定
Admin::action_batchteamから呼び出されるスキンタイプを修正

12 years agoPageFactoryクラスから不要ソースを除去。
sakamocchi [Thu, 12 Apr 2012 15:47:25 +0000 (00:47 +0900)]
PageFactoryクラスから不要ソースを除去。

この作業結果報告に従い不要コードを除去。並びにリビジョン1742の修正を反映。
http://sourceforge.jp/projects/nucleus-jp/lists/archive/developers/2012-April/000840.html

12 years ago管理画面用スキン変数のヘルプのリンク生成部分を変更
shizuki [Thu, 12 Apr 2012 02:33:55 +0000 (11:33 +0900)]
管理画面用スキン変数のヘルプのリンク生成部分を変更
同梱プラグインのコードクリーンアップ
NP_SecurityEnforcerのバグ修正

12 years agoスタートアップエラーの文字化けを解消するコードを追加
shizuki [Thu, 12 Apr 2012 01:42:01 +0000 (10:42 +0900)]
スタートアップエラーの文字化けを解消するコードを追加
ついでに/nucleus/index.phpと/nucleus/sql/mysql.phpのコードをクリーンアップ

12 years agoMerge branch 'master' into skinnable-master
sakamocchi [Wed, 11 Apr 2012 18:16:45 +0000 (03:16 +0900)]
Merge branch 'master' into skinnable-master

12 years agoMERGE: リビジョン1741のマージ。ItemActionsのコード整理とCommentActionsのコメント補完。
sakamocchi [Wed, 11 Apr 2012 18:16:14 +0000 (03:16 +0900)]
MERGE: リビジョン1741のマージ。ItemActionsのコード整理とCommentActionsのコメント補完。

Revision 1741: code clean-up for ItemActions class, adding more comments
in CommentActions class
 add new private member ItemActions::$defined_actions and move some
codes from ItemActions::getDefinedActions()
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1741

12 years agoFIX:XAMPP上でも正常に動作するようにskinnableAdminのコードを部分的にマージ
reine [Wed, 11 Apr 2012 12:49:47 +0000 (21:49 +0900)]
FIX:XAMPP上でも正常に動作するようにskinnableAdminのコードを部分的にマージ
CHANGE:ディレクトリパスの処理方法を変更
CHANGE:データベース接続情報のパスワードに空文字を許可
CHANGE:skinie.phpのincludeタイミングを変更
CHANGE:installCustomPlugsとinstallCustomSkinsのシグネチャを統一

12 years agoCHANGE:管理領域アクセス時にinstallフォルダの存在をチェックするように修正
reine [Wed, 11 Apr 2012 12:39:13 +0000 (21:39 +0900)]
CHANGE:管理領域アクセス時にinstallフォルダの存在をチェックするように修正

12 years agoFIX:プラグインの管理画面参照時に$CONF変数が未初期化のために発生するWarningに対処
reine [Wed, 11 Apr 2012 12:37:33 +0000 (21:37 +0900)]
FIX:プラグインの管理画面参照時に$CONF変数が未初期化のために発生するWarningに対処

12 years agoFIX:nucleus/libs/TEMPLATE.php クエリ生成コードのバグ修正
reine [Wed, 11 Apr 2012 11:27:19 +0000 (20:27 +0900)]
FIX:nucleus/libs/TEMPLATE.php クエリ生成コードのバグ修正

12 years agoMerge branch 'skinnable-master' of ssh://shizuki@git.sourceforge.jp/gitroot/nucleus...
shizuki [Wed, 11 Apr 2012 10:23:41 +0000 (19:23 +0900)]
Merge branch 'skinnable-master' of ssh://shizuki@git.sourceforge.jp/gitroot/nucleus-jp/nucleus-next.git into skinnable-master

12 years agoMerge branch 'skinnable-master' of git.sourceforge.jp:/gitroot/nucleus-jp/nucleus...
sakamocchi [Wed, 11 Apr 2012 10:21:28 +0000 (19:21 +0900)]
Merge branch 'skinnable-master' of git.sourceforge.jp:/gitroot/nucleus-jp/nucleus-next into skinnable-master

12 years ago日本語(EUC)と英語の翻訳ファイルにskinableの翻訳語を追加
shizuki [Wed, 11 Apr 2012 10:18:51 +0000 (19:18 +0900)]
日本語(EUC)と英語の翻訳ファイルにskinableの翻訳語を追加

12 years agoMerge remote branch 'nucleus-next/master' into skinnable-master
sakamocchi [Wed, 11 Apr 2012 10:15:21 +0000 (19:15 +0900)]
Merge remote branch 'nucleus-next/master' into skinnable-master

12 years agoMERGE: リビジョン1739のマージ。CommentActionsクラスのコード整理。
sakamocchi [Wed, 11 Apr 2012 10:10:27 +0000 (19:10 +0900)]
MERGE: リビジョン1739のマージ。CommentActionsクラスのコード整理。

コード整理のほか、プライベートなメンバーCommentActions::$defined_actionsを追加。CommentActions::getDefinedActions()からコードを移動した。

Revision 1739: code clean-up for CommentActions class
add new private member CommentActions::$defined_actions and move some
codes from CommentActions::getDefinedActions()
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1739

12 years agoアイテム投稿・編集画面用テンプレートを削除
shizuki [Wed, 11 Apr 2012 08:33:15 +0000 (17:33 +0900)]
アイテム投稿・編集画面用テンプレートを削除

12 years agoMerge remote branch 'origin/master' into skinnable-master
sakamocchi [Tue, 10 Apr 2012 23:38:11 +0000 (08:38 +0900)]
Merge remote branch 'origin/master' into skinnable-master

12 years agoFIX:条件判定の否定演算子が二重に記述されていたためmemberテーブルの値が不正に書き換えられてしまう不具合を修正
reine [Tue, 10 Apr 2012 15:06:05 +0000 (00:06 +0900)]
FIX:条件判定の否定演算子が二重に記述されていたためmemberテーブルの値が不正に書き換えられてしまう不具合を修正

12 years agoFIX:条件判定の否定演算子が二重に記述されていたためmemberテーブルの値が不正に書き換えられてしまう不具合を修正
reine [Tue, 10 Apr 2012 14:58:48 +0000 (23:58 +0900)]
FIX:条件判定の否定演算子が二重に記述されていたためmemberテーブルの値が不正に書き換えられてしまう不具合を修正

12 years agoMerge branch 'master' into skinnable-master
sakamocchi [Tue, 10 Apr 2012 14:47:35 +0000 (23:47 +0900)]
Merge branch 'master' into skinnable-master

12 years agoMERGE: リビジョン1737のマージ。i18n::explode()をpreg_splitに置き換え
sakamocchi [Tue, 10 Apr 2012 14:46:26 +0000 (23:46 +0900)]
MERGE: リビジョン1737のマージ。i18n::explode()をpreg_splitに置き換え

併せてパターンマッチ文字列をPCREに従い書き換えた。

Revision 1737: just replacing i18n::explode() to preg_replace and change
its expression according to PCRE.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1737

12 years agoMerge branch 'master' into skinnable-master
sakamocchi [Tue, 10 Apr 2012 12:40:33 +0000 (21:40 +0900)]
Merge branch 'master' into skinnable-master

12 years agoMERGE: リビジョン1736のマージ。BodyActionsクラスのコード整理。
sakamocchi [Tue, 10 Apr 2012 12:40:14 +0000 (21:40 +0900)]
MERGE: リビジョン1736のマージ。BodyActionsクラスのコード整理。

コード整理の他、以下の変更を行った。

以下のメソッドはechoせずに値を返すようにした。
BodyActions::createImageCode()
BodyActions::createMediaCode()
BodyActions::createPopupCode()

以下のメソッドは上の返り値をechoするようにした。
BodyActions::parse_image()
BodyActions::parse_media()
BodyActions::parse_popup()

Revision 1736: code clean-up for BodyActions class
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1736

12 years agoMerge branch 'master' into skinnable-master
sakamocchi [Mon, 9 Apr 2012 23:11:20 +0000 (08:11 +0900)]
Merge branch 'master' into skinnable-master

12 years agoMERGE: リビジョン1735のマージ。Skin/TemplateクラスのSQL文バグ修正。
sakamocchi [Mon, 9 Apr 2012 23:10:51 +0000 (08:10 +0900)]
MERGE: リビジョン1735のマージ。Skin/TemplateクラスのSQL文バグ修正。

Revision 1735: minor bug fixes for Skin/Template class
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1735

12 years agolistplug_table_skinlist()とlistplug_table_adminskinlist()のスペシャルスキンパーツ分岐の条件を変更
sakamocchi [Mon, 9 Apr 2012 16:13:16 +0000 (01:13 +0900)]
listplug_table_skinlist()とlistplug_table_adminskinlist()のスペシャルスキンパーツ分岐の条件を変更

より妥当な条件に変更した

12 years agoMerge branch 'master' into skinnable-master
sakamocchi [Mon, 9 Apr 2012 14:54:15 +0000 (23:54 +0900)]
Merge branch 'master' into skinnable-master

12 years agoMERGE: リビジョン1734のマージ。Actionsクラスから不要行を削除。
sakamocchi [Mon, 9 Apr 2012 14:51:35 +0000 (23:51 +0900)]
MERGE: リビジョン1734のマージ。Actionsクラスから不要行を削除。

Revision 1734: remove extra lines added in revision 1723.
My commit includes unneeded lines from my working repository.
Revision 1723: Code cleanup for Actions class
This inclludes adding access modifiers and comments for each methods.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1723

12 years agoPAGEFACTORY.phpとskinableFACTORY.phpを統合
shizuki [Mon, 9 Apr 2012 14:05:06 +0000 (23:05 +0900)]
PAGEFACTORY.phpとskinableFACTORY.phpを統合
154行目以降は使用していない

12 years agoskinableENCAPSULATE.phpとENCAPSULATE.phpを統合
shizuki [Mon, 9 Apr 2012 11:11:48 +0000 (20:11 +0900)]
skinableENCAPSULATE.phpとENCAPSULATE.phpを統合

12 years agoskinableADMIN.phpとADMIN.phpを統合
shizuki [Mon, 9 Apr 2012 10:51:04 +0000 (19:51 +0900)]
skinableADMIN.phpとADMIN.phpを統合
スキンファイルのディレクトリは後で修正

12 years agoバグの修正。$friendly_namesの配列からスペシャルスキンパーツを判定する条件を変更。
sakamocchi [Sun, 8 Apr 2012 23:16:47 +0000 (08:16 +0900)]
バグの修正。$friendly_namesの配列からスペシャルスキンパーツを判定する条件を変更。

$friendly_nameの配列はスペシャルスキンパーツではない場合、バリューを小文字で再構成したキーを持つ。スペシャルスキンパーツを判定するには、バリューを小文字にしてキーと比較する必要がある。

12 years agoMerge branch 'master' into skinnable-master
sakamocchi [Sun, 8 Apr 2012 17:11:49 +0000 (02:11 +0900)]
Merge branch 'master' into skinnable-master

12 years agoMERGE: リビジョン1733のマージ。リビジョン1731の修正。
sakamocchi [Sun, 8 Apr 2012 17:11:05 +0000 (02:11 +0900)]
MERGE: リビジョン1733のマージ。リビジョン1731の修正。

sprintf()のフォーマットの修正。datetimeに対して%dを指定していたが、正確には%s。このミスによりチケットが常に不正と判定されるバグが起こっていた。

Revision 1733: just fix my typo in previous revision.
A format of sprintf() for datetime was %d, correctly %s...
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1733

12 years ago前回のコミットの修正。より適切な条件に変更。
sakamocchi [Sun, 8 Apr 2012 16:51:56 +0000 (01:51 +0900)]
前回のコミットの修正。より適切な条件に変更。

12 years agoFIX: Skinクラスにおける、Actionsクラスのinclude条件を適切なものに変更
sakamocchi [Sun, 8 Apr 2012 16:39:29 +0000 (01:39 +0900)]
FIX: Skinクラスにおける、Actionsクラスのinclude条件を適切なものに変更

元々の条件では期待通りインクルードされない場合があった。

12 years agoFIX: Skin::getFriendryName()と関係する箇所のコードを修正。Skin::$adminの廃止。
sakamocchi [Sun, 8 Apr 2012 16:03:04 +0000 (01:03 +0900)]
FIX: Skin::getFriendryName()と関係する箇所のコードを修正。Skin::$adminの廃止。

Skin::getFriendryName()はstatic呼び出し専用のパブリックメソッドにも関わらず、内部ではインスタンス経由でオブジェクトのメンバーにアクセスしていた。この点を修正し、listplug_table_skinlist()はaction_skinoverview()で作られた$template経由でfriendly_names配列を受け取るようにした。listplug_table_adminskinlist()とそれを参照するメソッドも同様に実装するのが好ましい。

また、Skin::$adminを廃止し、Skin::$action_classとSkin::$event_identifierを新設。Actions/AdminActionsと同様の構造を持つアクションクラスのインスタンスをコンストラクタの引数に渡すようにした。

12 years agoMerge branch 'master' into skinnable-master
sakamocchi [Sun, 8 Apr 2012 15:31:30 +0000 (00:31 +0900)]
Merge branch 'master' into skinnable-master

12 years agoMERGE: リビジョン1732のマージ。PluginAdminクラスのコード整理。
sakamocchi [Sun, 8 Apr 2012 15:28:42 +0000 (00:28 +0900)]
MERGE: リビジョン1732のマージ。PluginAdminクラスのコード整理。

Revision 1732: code clean-up for PluginAdmin class
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1732

12 years agoMERGE: リビジョン1731のマージ。Managerクラスのコード整理。
sakamocchi [Sun, 8 Apr 2012 15:28:11 +0000 (00:28 +0900)]
MERGE: リビジョン1731のマージ。Managerクラスのコード整理。

Revision 1731: code clean-up for Manager class
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1731

12 years agoADMIN.phpにskinableADMIN.phpを統合
shizuki [Sun, 8 Apr 2012 14:05:24 +0000 (23:05 +0900)]
ADMIN.phpにskinableADMIN.phpを統合
  1/2完(action_skinieoverviewマデ)
  showlist.php内のSkin::getFriendryName呼び出し部分をAdminActions呼び出しに修正
  日本語言語ファイルにskinableAdminの文字列を追加

12 years agoskinableクラスを呼び出していた部分を修正
shizuki [Sat, 7 Apr 2012 14:46:26 +0000 (23:46 +0900)]
skinableクラスを呼び出していた部分を修正

12 years agoskinableShowlist.phpをshowlist.phpに統合
shizuki [Sat, 7 Apr 2012 14:39:12 +0000 (23:39 +0900)]
skinableShowlist.phpをshowlist.phpに統合