CUSTOM functions
提供: GeeklogJpWiki
Geeklog共通ライブラリ⇒ COM_functions |DB_functions |plugin_functions |CUSTOM_functions |ADMIN_functions |CMT_functions |SEC_functions |USER_functions |MBYTE_functions |PNB_functions |SESS_functions |STORY_functions |SYND_functions |TRB_functions |WS_functions
lib_custom.php
「はじめに」 本体機能に対してカスタマイズを行なうために、プログラムの内部から呼び出されます。 あらかじめ名前と引数は、決められています。
|
関数名 |
引数 |
機能 |
|---|---|---|
| CUSTOM_runScheduledTask | 内部CRONで呼び出されるすべてのコードをincludeする。 | |
| CUSTOM_loginErrorHandler | $msg='' | ログインエラーを処理する。 |
| CUSTOM_templateSetVars | $templatename, &$template | ヘッダやフッタに独自のテンプレート変数を追加する |
| CUSTOM_userCreate | $uid | |
| CUSTOM_userDelete | $uid | |
| CUSTOM_userDisplay | $uid | |
| CUSTOM_userEdit | $uid | |
| CUSTOM_userSave | $uid | |
| CUSTOM_userForm | $msg = '' | |
| CUSTOM_userCheck | $username, $email='' | ユーザー情報の新規作成・編集の際に全ての必要な情報が入力されているかをチェック。 |
| CUSTOM_showBlocks | $showblocks | ブロックのリストを返す |
| CUSTOM_mail | $to, $subject, $message, $from = '', $html = false, $priority = 0 | |
| CUSTOM_menuEntries | カスタムメニューを表示する | |
| CUSTOM_handleError | $errno, $errstr, $errfile, $errline, $errcontext | |
| phpblock_showrights | ユーザーの権利を表示 |
custom/custom_cellular.php
日本語版独自のカスタム関数
|
関数名 |
引数 |
機能 |
|---|---|---|
| CUSTOM_refresh | $url | |
| CUSTOM_MOBILE_getBlock | $bid | ブロックの取得 |
| CUSTOM_MOBILE_getBlocks | $side = 'left' | ブロック一覧の取得 |
| CUSTOM_MOBILE_is_cellular | ユーザエージェントからケータイかどうか判定する | |
| CUSTOM_MOBILE_is_3g | ユーザエージェントから3G端末かどうか判定する | |
| CUSTOM_MOBILE_debug | デバッグメッセージをerror.logに出力する | |
| CUSTOM_MOBILE_load_ip | ケータイ用セッションから接続時のIPアドレスを読み出す | |
| CUSTOM_MOBILE_remove_session | ケータイ用セッションを削除する(ログアウト時) | |
| CUSTOM_MOBILE_save_session | $sessid, $remote_ip | GeeklogのセッションIDとIPアドレスをケータイ用のセッションに保存する |
| CUSTOM_MOBILE_load_session | ケータイ用セッションからGeeklogのセッションIDを読み出す | |
| CUSTOM_MOBILE_is_table_enabled | テーブルが使える端末か判定する | |
| CUSTOM_MOBILE_blockMenu | ブロックメニューの表示 |