当サイトで配布しているモジュールから利用する共通関数クラスです。
XOOPS_TRUST_PATH を利用します。必ず trust ディレクトリを用意してお使いください。
CVS から tarball をダウンロードした場合は、解凍したファイルをディレクトリ構造に従いサーバーにアップロードしてください。
XOOPS へ組み込むには、サーバーにアップロード後に HypCommonPreLoad を導入してください。導入方法については、HypCommonPreLoad に XOOPS のバージョン別に記載してあります。
CVS からダウンロードする最新版は解凍後のディレクトリ構造が異なっているため、アップロード作業が煩雑になりますので、ディレクトリ構造を整理した簡単導入パック用意しました。
ただし、バージョンが若干古い場合があります。
サーバーにアップロードする場合は以下のように行ってください。
XOOPS_ROOT_PATH
├─class
│ │ template.php (※ XOOPS 2.0.16aJP のみ必要。アーカイブ中の core_addons/html_2.0.16aJP/class にある)
│ │
│ └─hyp_common
│ │ favicon.php
│ │ gate.php (trust側 gateway への窓口)
│ │ get_execpath.cgi (imagemagick, jpegtran 実行パスの defineファイルを自動生成)
│ │ hyp_preload.conf.php.rename (PreLoadのオリジナル設定用ファイル雛形)
│ │ image_magick.cgi (セーフモード時に使用。実行権限が必要)
│ │ redirect.php (携帯対応レンダー用)
│ │
│ └─cache ( 707 などファイル作成権限を与える)
│
├─images
│ └─emoji (携帯絵文字画像ディレクトリ)
│ ├─e (auディレクトリ [画像ファイル省略])
│ ├─i (docomoディレクトリ [画像ファイル省略])
│ └─s (SoftBankディレクトリ [画像ファイル省略])
│
├─preload (XOOPS Cube 用)
│ HdXoopsTplHook.class.php
│ HypCommonPreLoad.class.php
│
└─themes
└─ktai_default (携帯対応レンダー用)
│ index.html
│ theme.html
│
├─images
│ logo.jpg
│
└─templates
index.htmlXOOPS_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
│
├─mpc
│ │ MobilePictogramConverter.php
│ │
│ ├─Carrier
│ │ │ common.php
│ │ │ ezweb.php
│ │ │ foma.php
│ │ │ softbank.php
│ │ │
│ │ └─map
│ │ e2i_table.php
│ │ e2icon_table.php
│ │ e2s_table.php
│ │ i2e_table.php
│ │ i2s_table.php
│ │ s2e_table.php
│ │ s2i_table.php
│ │
│ └─images
│ default.png
│ error.png
│
├─preload
│ hyp_preload.conf.php.rename (PreLoadのオリジナル設定用ファイル雛形)
│ hyp_preload.php (プリロードの実体)
│
├─rss2html
│ │ hyp_rss2html.php
│ │
│ └─templates
│ └─simple
│ base.html
│ item.html
│
└─ways
gate.php
imgconv.php画像処理には GD を使用しますが、imagemagick, jpegtran がサーバーに導入されている場合、画像サムネイルの作成、画像回転などにそれらを利用することができます。
使用するには、それぞれの実行パスを XOOPS_TRUST_PATH/class/hyp_common/execpath.inc.php に記載する必要があります。このファイルの記載内容例は次のような感じです。
1 2 3 4 5 6 | |
ログイン
アクティブメニュー
Home
xpWiki::Dev
新規ページ作成
最新ページ一覧
全ページ一覧
人気のページ
全コメント一覧
xpWikiフォーラム
スキン選択
ヘルプ
» 関連ページ
» 編集する
» 変更点を見る
» バックアップ一覧
» 添付ファイル一覧
» リンク元一覧
|
"ぽちっ"としてね☆
付箋機能 (xpwiki)
MenuBar (xpwiki)
ブックマーク
サイト内 Wiki
☆ 検索 ☆
オンライン状況
サイト情報
現在ページのQRコード
参照元情報