#nopagecomment
#navi(../)
* HypCommonFunc (えっちわいぴー・こもん・ふぁんく) [#d88d609f]
当サイトで配布しているモジュールから利用する共通関数クラスです。
XOOPS_TRUST_PATH を利用します。必ず trust ディレクトリを用意してお使いください。
[[CVS から tarball をダウンロード:http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/hypweb/XOOPS_TRUST/class/hyp_common.tar.gz?view=tar]]した場合は、解凍したファイルを[[ディレクトリ構造>#vb6c77d3]]に従いサーバーにアップロードしてください。
XOOPS へ組み込むには、サーバーにアップロード後に HypCommonPreLoad を導入してください。導入方法については、HypCommonPreLoad に XOOPS のバージョン別に記載してあります。
** 最新版ダウンロード [#w419dfba]
-最新版は[[CVS:http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/hypweb/XOOPS_TRUST/class/hyp_common/]]より取得してください。
--[[hypwebCVS:XOOPS_TRUST/class/hyp_common]]
---[[ダウンロード(tarball):http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/hypweb/XOOPS_TRUST/class/hyp_common.tar.gz?view=tar]]
*** [[最近のCVS更新履歴:http://hypweb.net/cvs2cl/hyp_common.txt]] [#e0720112]
-http://hypweb.net/cvs2cl/hyp_common.txt
*** ディレクトリ構造 [#vb6c77d3]
- CVS から tarball をダウンロードした場合は、解凍後に次のようにサーバーにアップロードしてください。
-- XOOPS 2.0.16a JP の場合
--- hyp_common/core_addons/html_2.0.16aJP ディレクトリの中身を &font(Blue){html側}; ''XOOPS_ROOT_PATH'' へ。
-- XOOPS Cube Legacy の場合
--- hyp_common/core_addons/html_2.0.16aJP ディレクトリの中身を削除。
-- hyp_common/html ディレクトリの中身を &font(Blue){html側}; ''XOOPS_ROOT_PATH'' へ。
-- hyp_common/core_addons/xoops_trust_path ディレクトリの中身を &font(Red){trust側}; ''XOOPS_TRUST_PATH'' へ。
-- その他の hyp_common ディレクトリ以下を &font(Red){trust側}; ''XOOPS_TRUST_PATH/class'' ディレクトリ へ。
- XOOPS_TRUST_PATH/cache ディレクトリがなければ作成して、パーミッションを 707 などにして、ファイル作成権限を与えてください。
- XOOPS_TRUST_PATH/class/hyp_common/favicon/cache ディレクトリのパーミッションを 707 などにして、ファイル作成権限を与えてください。
- ini/http_request.ini.dist は、http通信をする Hyp_HTTP_Request クラスの設定ファイルの雛形です。プロキシ設定などサーバー固有の設定をしたい場合は、"ini/http_request.ini" として設定保存してください。&br;設定書式は、ini 形式です。
**** XOOPS_ROOT_PATH [#m4c1152a]
#code(pre,nonumber){{
XOOPS_ROOT_PATH
├─class
│ └─hyp_common
│ favicon.php
│ get_execpath.cgi (imagemagick, jpegtran 実行パスの defineファイルを自動生成)
│ hyp_preload.conf.php.rename (PreLoadのオリジナル設定用ファイル雛形)
│ image_magick.cgi (セーフモード時に使用。実行権限が必要)
│ redirect.php (携帯対応レンダー用)
│
├─preload (XOOPS Cube 用)
│ HdXoopsTplHook.class.php
│ HypCommonPreLoad.class.php
│
└─themes
└─ktai_default (携帯対応レンダー用)
│ index.html
│ theme.html
│
├─images
│ logo.jpg
│
└─templates
index.html
}}
**** XOOPS_TRUST_PATH [#g5ca38e5]
#code(pre,nonumber){{
XOOPS_TRUST_PATH
├─libs
│ └─smartyplugins
│ │ resource.db.php
│ │
│ └─x2
│ resource.db.php
├─cache ( 707 などファイル作成権限を与える)
└─class
└─hyp_common
│ get_execpath.cgi
│ hyp_common_func.php
│ hyp_get_engine.php
│ hyp_kakasi.php
│ hyp_search_engines.dat (参照元サーチエンジンの定義)
│ hyp_simplexml.php
│ image_magick.cgi
│ mac_ext.dat (Mac用機種依存文字データ)
│ mac_ext_utf8.dat ( 〃 UTF-8)
│ spamsites.dat (スパムサイトデータ)
│ spamwords.dat (スパム語句データ)
│ version.php (バージョン情報)
│ win_ext.dat (Win用機種依存文字データ)
│ win_ext_utf8.dat ( 〃 UTF-8)
│
├─favicon
│ │ conf.php.rename
│ │ favicon.php
│ │ group.def.hosts
│ │ group.hosts.rename
│ │
│ ├─cache ( 707 などファイル作成権限を与える)
│ │ readme
│ │
│ └─images
│ default.png
│ error.png
│ link_break.png
│ world_go.png
│
├─hsamazon
│ │ hyp_simple_amazon.php
│ │
│ ├─res
│ │ ├─CA
│ │ │ SerachIndexes
│ │ │
│ │ ├─DE
│ │ │ SerachIndexes
│ │ │
│ │ ├─FR
│ │ │ SerachIndexes
│ │ │
│ │ ├─JP
│ │ │ SerachIndexes
│ │ │
│ │ ├─UK
│ │ │ SerachIndexes
│ │ │
│ │ └─US
│ │ SerachIndexes
│ │
│ └─templates
│ default
│ h5
│ t3p
│ w5
│ w5_2
│ w5_2_new
│ w5_2_np
│
├─hyppinger
│ hyppinger.php
│
├─idna
│ idna_convert.class.php
│
├─ini
│ http_request.ini.dist
│
├─ktairender
│ │ hyp_ktai_render.php
│ │
│ ├─ipranges
│ │ au.ip
│ │ docomo.ip
│ │ softbank.ip
│ │
│ └─templates
│ │ _TemplateTagsForXoopsTheme.html
│ │
│ └─default
│ body.html
│ footer.html
│ header.html
│
├─mbemulator
│ convert.table
│ convert_kana.table
│ history.html
│ lower.table
│ mb-emulator.ini
│ mb-emulator.php
│ sjistouni.table
│ unitosjis.table
│ upper.table
│
├─preload
│ hyp_preload.conf.php.rename (PreLoadのオリジナル設定用ファイル雛形)
│ hyp_preload.php (プリロードの実体)
│
└─rss2html
│ hyp_rss2html.php
│
└─templates
└─simple
base.html
item.html
}}
** 画像処理に imagemagick, jpegtran を使用する場合 [#z695a3e7]
画像処理には GD を使用しますが、imagemagick, jpegtran がサーバーに導入されている場合、画像サムネイルの作成、画像回転などにそれらを利用することができます。
使用するには、それぞれの実行パスを XOOPS_TRUST_PATH/class/hyp_common/execpath.inc.php に記載する必要があります。このファイルの記載内容例は次のような感じです。
#code(php){{
<?php
define('HYP_IMAGEMAGICK_PATH', '/usr/bin/');
define('HYP_JPEGTRAN_PATH', '/usr/bin/');
// 以下の設定は、サーバーのPHPがセーフモードの場合に使用されます。
define('HYP_IMAGE_MAGICK_URL', 'http://(XOOPSルート)/class/hyp_common/image_magick.cgi');
?>
}}
- Linux 環境で、CGIがFTPオーナー権限で動作するサーバーの場合、XOOPS_ROOT_PATH/class/hyp_common/get_execpath.cgi に実行権限を与えて、ブラウザからこのファイルにアクセスすることにより、このファイルを自動生成することができます。
- get_execpath.cgi が上手く動作しない場合は、手元で上記ファイルを作成して、サーバーにアップロードしてください。
- PHP がセーフモードで、XOOPS_ROOT_PATH/class/hyp_common/image_magick.cgi を使用する場合は、このcgi に実行権限を与えてください。
#navi(../)
- keyword/HypCommonFunc のバックアップ一覧[6]
- keyword/HypCommonFunc のバックアップソース(No. All)
- 1: 2007-05-30 (水) 13:59:22[7] nao-pon[8]
- 2: 2007-06-21 (木) 17:24:34[9] nao-pon[8]
- 3: 2007-06-21 (木) 17:40:21[10] nao-pon[8]
- 4: 2007-11-23 (金) 10:29:25[11] nao-pon[8]
- 5: 2007-11-23 (金) 10:29:25[12] nao-pon[8]
- 6: 2008-04-22 (火) 09:18:43[13] nao-pon[8]
- 7: 2008-04-22 (火) 09:18:43[14] nao-pon[8]
- 8: 2008-05-17 (土) 00:55:38[15] nao-pon[8]
- 9: 2008-07-17 (木) 10:40:02 nao-pon[8]
- 10: 2008-07-20 (日) 16:29:56[16] nao-pon[8]
- 11: 2008-07-30 (水) 00:06:57[17] nao-pon[8]
- 12: 2008-08-01 (金) 08:37:12[18] nao-pon[8]
- 13: 2008-08-01 (金) 17:57:56[19] nao-pon[8]
- 14: 2008-08-06 (水) 10:12:15[20] nao-pon[8]
- 15: 2008-08-08 (金) 08:40:55[21] nao-pon[8]
- 16: 2008-08-15 (金) 16:22:06[22] nao-pon[8]
- 17: 2008-08-18 (月) 09:02:27[23] nao-pon[8]
- 18: 2008-08-20 (水) 21:52:15[24] nao-pon[8]
- 19: 2008-08-22 (金) 20:58:54[25] nao-pon[8]
- 20: 2008-08-30 (土) 16:04:15[26] nao-pon[8]
- 21: 2008-09-03 (水) 19:30:51[27] nao-pon[8]
- 22: 2008-09-16 (火) 15:10:51[28] nao-pon[8]
- 23: 2008-09-17 (水) 19:22:02[29] nao-pon[8]
- 24: 2008-09-18 (木) 09:06:06[30] nao-pon[8]
- 25: 2008-09-21 (日) 10:40:08[31] nao-pon[8]
- 26: 2008-09-25 (木) 10:21:47[32] nao-pon[8]
- 27: 2008-09-26 (金) 17:46:43[33] nao-pon[8]
- 28: 2008-10-02 (木) 21:00:40[34] nao-pon[8]
- 29: 2008-10-11 (土) 14:05:03[35] nao-pon[8]
- 30: 2008-10-11 (土) 14:05:13[36] nao-pon[8]
- 31: 2008-11-17 (月) 13:24:49[37] nao-pon[8]
- 32: 2008-11-28 (金) 00:34:35[38] nao-pon[8]
- 33: 2008-12-15 (月) 09:16:01[39] nao-pon[8]
- 34: 2009-01-04 (日) 22:24:44[40] nao-pon[8]
- 35: 2009-01-11 (日) 23:07:19[41] nao-pon[8]
- 36: 2009-01-15 (木) 13:09:52[42] nao-pon[8]
- 37: 2009-01-25 (日) 10:09:25[43] nao-pon[8]
- 38: 2009-02-01 (日) 17:16:22[44] nao-pon[8]
- 39: 2009-02-02 (月) 14:52:58[45] nao-pon[8]
- 40: 2009-02-11 (水) 20:06:20[46] nao-pon[8]
- 41: 2009-02-22 (日) 11:22:09[47] nao-pon[8]
- 42: 2009-03-02 (月) 20:49:53[48] nao-pon[8]
- 43: 2009-03-11 (水) 22:29:22[49] 通りすがりさん(nao-pon)[8]
- 44: 2009-03-20 (金) 15:49:03[50] nao-pon[8]
- 45: 2009-03-25 (水) 10:02:32[51] nao-pon[8]
- 46: 2009-04-11 (土) 22:10:35[52] nao-pon[8]
- 47: 2009-04-16 (木) 23:53:10[53] nao-pon[8]
- 48: 2009-05-25 (月) 22:37:50[54] nao-pon[8]
- 49: 2009-05-28 (木) 21:13:34[55] nao-pon[8]
- 50: 2009-06-27 (土) 23:02:24[56] nao-pon[8]
- 51: 2009-06-27 (土) 23:02:24[57] nao-pon[8]
- 52: 2009-09-01 (火) 20:18:56[58] nao-pon[8]
- 53: 2009-10-11 (日) 11:06:09[59] nao-pon[8]
- 54: 2009-10-11 (日) 11:12:01[60] nao-pon[8]
- 55: 2009-10-22 (木) 19:51:49[61] nao-pon[8]
- 56: 2009-11-17 (火) 21:55:55[62] nao-pon[8]
- Attached file: HypCommonFunc_20091117.tar.gz, Attached file: HypCommonFunc_20091117.zip
- 57: 2010-01-09 (土) 00:16:50[63] nao-pon[8]
- Attached file: HypCommonFunc_20100108.tar.gz, Attached file: HypCommonFunc_20100108.zip
- 58: 2010-01-09 (土) 21:50:10[64] nao-pon[8]
- Attached file: HypCommonFunc_20100109.zip, Attached file: HypCommonFunc_20100109.tar.gz
- 59: 2010-03-06 (土) 17:50:28[65] nao-pon[8]
- Attached file: HypCommonFunc_20100306.tar.gz, Attached file: HypCommonFunc_20100306.zip
- 60: 2010-05-04 (火) 15:54:57[66] nao-pon[8]
- Attached file: HypCommonFunc_20100503.tar.gz, Attached file: HypCommonFunc_20100503.zip
- 61: 2010-05-10 (月) 20:49:36[67] nao-pon[8]
- Attached file: HypCommonFunc_20100510.tar.gz, Attached file: HypCommonFunc_20100510.zip
- 62: 2010-05-20 (木) 17:31:25[68] nao-pon[8]
- Attached file: HypCommonFunc_20100520.tar.gz, Attached file: HypCommonFunc_20100520.zip, HypCommonFunc 20100520 をリリース
- 63: 2010-06-05 (土) 09:51:22[69] nao-pon[8]
- Attached file: HypCommonFunc_20100604.tar.gz, Attached file: HypCommonFunc_20100604.zip, HypCommonFunc Ver.20100604 wo, HypCommonFunc Ver.20100604 をリリースしました。
- 64: 2010-06-23 (水) 17:23:44[70] nao-pon[8]
- Attached file: HypCommonFunc_20100623.zip, Attached file: HypCommonFunc_20100623.tar.gz, HypCommonFunc 20100623 をリリース
- 65: 2010-06-25 (金) 17:07:23[71] nao-pon[8]
- Attached file: HypCommonFunc_20100625.tar.gz, Attached file: HypCommonFunc_20100625.zip, HypCommonFunc 20100625 をリリース
- 66: 2010-07-25 (日) 16:19:41[72] nao-pon[8]
- Attached file: HypCommonFunc_20100725.tar.gz, Attached file: HypCommonFunc_20100725.zip, HypCommonFunc_20100725 リリース
- 67: 2011-06-02 (木) 17:24:38[73] nao-pon[8]
- Attached file: theme.html, Attached file: smart.css, Attached file: HypCommonFunc_20110601.zip, Attached file: HypCommonFunc_20110601.tar.gz, HypCommonFunc_20110601 をリリース
- 68: 2011-07-26 (火) 13:56:40[74] nao-pon[8]
- Attached file: HypCommonFunc_20110726.zip, Attached file: HypCommonFunc_20110726.tar.gz, HypCommonFunc Version 20110726 をアップ
- 69: 2011-08-10 (水) 21:59:49[75] nao-pon[8]
- Attached file: HypCommonFunc_20110810.tar.gz, Attached file: HypCommonFunc_20110810.zip, HypCommonFunc Ver. 20110810 をアップ
- 70: 2011-08-26 (金) 14:19:31[76] nao-pon[8]
- Attached file: HypCommonFunc_20110826.zip, Attached file: HypCommonFunc_20110826.tar.gz, HypCommonFunc_20110826 リリース
- 71: 2011-09-04 (日) 22:46:06[77] nao-pon[8]
- Attached file: HypCommonFunc_20110904.tar.gz, Attached file: HypCommonFunc_20110904.zip, HypCommonFunc Ver. 20110904 をアップ
- 72: 2011-09-09 (金) 21:53:17[78] nao-pon[8]
- Attached file: HypCommonFunc_20110909.tar.gz, Attached file: HypCommonFunc_20110909.zip, HypCommonFunc Ver. 20110909 をアップ
- 73: 2011-09-17 (土) 16:57:27[79] nao-pon[8]
- Attached file: HypCommonFunc_20110917.tar.gz, Attached file: HypCommonFunc_20110917.zip, HypCommonFunc Ver. 20110917 をリリース
- 74: 2011-09-26 (月) 22:06:29[80] nao-pon[8]
- Attached file: HypCommonFunc_20110926.tar.gz, Attached file: HypCommonFunc_20110926.zip, HypCommonFunc Ver. 20110926 をリリース
- 75: 2011-11-02 (水) 20:52:27[81] nao-pon[8]
- Attached file: HypCommonFunc_20111102.tar.gz, Attached file: HypCommonFunc_20111102.zip, HypCommonFunc Ver. 20111102 をリリース
- 76: 2011-11-18 (金) 22:55:20[82] nao-pon[8]
- Attached file: HypCommonFunc_20111118.tar.gz, Attached file: HypCommonFunc_20111118.zip, HypCommonFunc Ver. 20111118 をリリース
- 77: 2011-11-22 (火) 23:54:25[83] nao-pon[8]
- Attached file: HypCommonFunc_20111122.zip, Attached file: HypCommonFunc_20111122.tar.gz, HypCommonFunc Ver. 20111122 をリリース, Deleted an attach file: HypCommonFunc_20111122.tar.gz at 2011-11-22 (火) 22:38:34, Deleted an attach file: HypCommonFunc_20111122.zip at 2011-11-22 (火) 22:38:50, パッケージングに不備がありましたので修正しています。
- 78: 2011-11-24 (木) 00:05:50[84] nao-pon[8]
- Attached file: googleAdsense.php, Attached file: googleAdsense.php.zip, googleAdsense.php.zip (新しい広告コードに対応 2011/11/24)
- 79: 2011-12-13 (火) 18:05:14[85] nao-pon[8]
- HypCommonFunc_20111213 リリース
- 80: 2011-12-14 (水) 09:05:59[86] nao-pon[8]
- HypCommonFunc_20111214 リリース, 呼称の変更 へっちわいぴー -> はいぱー at 2011-12-15 (木) 08:28:14
- 81: 2011-12-19 (月) 21:55:32[87] nao-pon[8]
- HypCommonFunc Ver. 20111218 をリリース
- 82: 2012-01-01 (日) 01:19:44[88] nao-pon[8]
- 謹賀新年。初荷 HypCommonFunc Ver. 20120101 をリリース。
- 83: 2012-01-15 (日) 23:01:23[89] nao-pon[8]
- HypCommonFunc Ver. 20120115 をリリース
- 84: 2012-01-31 (火) 17:12:25[90] nao-pon[8]
- HypCommonFunc_20120130 リリース
- 85: 2012-04-01 (日) 10:50:34[91] nao-pon[8]
- HypCommonFunc Ver. 20120331 をリリース
- 86: 2012-04-18 (水) 13:06:59[92] nao-pon[8]
- HypCommonFunc_20120418 リリース
- 87: 2012-06-08 (金) 10:44:10[93] nao-pon[8]
- HypCommonFunc_20120608 リリース
- 88: 2012-06-15 (金) 11:44:16[94] nao-pon[8]
- HypCommonFunc_20120615 リリース
- 89: 2012-06-18 (月) 15:37:13[95] nao-pon[8]
- HypCommonFunc_20120618 リリース (今回から HypXoopsTplHook.class.php が必要なくなりました)
- 90: 2012-06-19 (火) 17:07:15[96] nao-pon[8]
- HypCommonFunc_20120619 リリース
- 91: 2012-06-30 (土) 10:51:41[97] nao-pon[8]
- HypCommonFunc Ver. 20120630 をリリース
- 92: 2012-10-22 (月) 19:46:00[98] nao-pon[8]
- HypCommonFunc Ver. 20121022 をリリース
- 93: 2012-12-11 (火) 08:59:43[99] nao-pon[8]
- HypCommonFunc_20121210 リリース
- 94: 2013-02-09 (土) 00:08:21[100] nao-pon[8]
- HypCommonFunc Ver. 20130208 をリリース
- 95: 2013-02-16 (土) 16:29:51[101] nao-pon[8]
- HypCommonFunc Ver. 20130216 をリリース
- 96: 2013-02-18 (月) 00:15:57[102] nao-pon[8]
- HypCommonFunc Ver. 20130218 をリリース
- 97: 2013-05-21 (火) 16:27:46[103] nao-pon[8]
- HypCommonFunc 20130509 リリース
- 98: 2013-05-30 (木) 23:51:29[104] nao-pon[8]
- HypCommonFunc Ver. 20130530.1 をリリース
- 99: 2013-06-01 (土) 14:43:11[105] nao-pon[8]
- HypCommonFunc 20130601, hypconf 1.07 をリリース
- 100: 2013-06-02 (日) 13:51:39[106] nao-pon[8]
- 101: 2013-06-04 (火) 19:32:09[107] nao-pon[8]
- HypCommonFunc Ver. 20130604 をリリース
- 102: 2013-06-09 (日) 16:58:41[108] nao-pon[8]
- HypCommonFunc Ver. 20130609をリリース
- 103: 2013-06-10 (月) 17:41:15[109] nao-pon[8]
- HypCommonFunc 20130610 リリース
- 104: 2013-06-24 (月) 20:19:50[110] nao-pon[8]
- HypCommonFunc Ver. 20130624をリリース
- 105: 2013-07-02 (火) 09:25:22[111] nao-pon[8]
- HypCommonFunc 20130702 リリース
- 106: 2013-08-11 (日) 12:25:55[112] nao-pon[8]
- HypCommonFunc Ver. 20130811 をリリース, [Fusen:1] test
- 107: 2013-08-16 (金) 22:17:49[113] nao-pon[8]
- HypCommonFunc Ver. 20130816 をリリース
- 108: 2014-02-05 (水) 17:24:49[114] nao-pon[8]
- HypCommonFunc 20140205 リリース
- 109: 2014-03-19 (水) 21:11:52[115] nao-pon[8]
- HypCommonFunc 20130319 リリース
- 110: 2014-03-25 (火) 09:23:07[116] nao-pon[8]
- HypCommonFunc 20140324 リリース
- 111: 2014-04-01 (火) 21:21:03[117] nao-pon[8]
- HypCommonFunc 20130401 リリース
- 112: 2014-10-24 (金) 21:50:07[118] nao-pon[8]
- HypCommonFunc 20141024 リリース
- 113: 2014-12-31 (水) 23:22:44[119] nao-pon[8]
- HypCommonFunc 2014231 リリース
- 114: 2015-04-04 (土) 14:42:31[120] nao-pon[8]
- HypCommonFunc 20150404 リリース
- 現: 2017-10-26 (木) 16:49:06[121] nao-pon[8]
- HypCommonFunc version 20171026 リリース