1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="ja-JP" xml:lang="ja-JP">
5 <!-- $Id: sqltables.html,v 1.7.2.1 2008-07-26 10:50:26 shizuki Exp $ -->
6 <!-- $NucleusJP: sqltables.html,v 1.7 2007/02/04 06:28:45 kimitake Exp $ -->
7 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
8 <meta http-equiv="Content-Style-Type" content="text/css" />
9 <meta http-equiv="Content-Script-Type" content="text/javascript" />
10 <link rel="index" href="./index.html" />
11 <title>Nucleus - SQL テーブル構造</title>
12 <link rel="stylesheet" type="text/css" href="styles/manual.css" />
13 <style type="text/css">
14 /* auto increment table columns*/
20 text-decoration: underline;
37 /* auto increment table columns*/
45 /* columns/tables to remove in later versions */
71 <a name="top" id="top">SQLテーブル・リファレンス</a>
77 <li>このドキュメントの原文は以下のURLにあります。<br />
78 <a href="http://nucleuscms.org/documentation/devdocs/sqltables.html">http://nucleuscms.org/documentation/devdocs/sqltables.html</a></li>
79 <li>誤訳にお気づきの方は<a href="http://japan.nucleuscms.org/bb/viewforum.php?f=7">NucleusCMS日本語フォーラム</a>までご連絡いただけると助かります。</li>
86 <a href="index.html">開発者向けドキュメントの目次へ戻る</a>
90 このドキュメントはNucleusのデータベース・テーブルのフィールドを解説しています。
93 <p class="note">構造は<strong>Nucleus v3.33~</strong>のものに従っています</p>
95 <h1><a name="toc" id="toc">目次</a></h1>
98 <li><a href="#legend">文書中の色使いについて</a></li>
104 <li><a href="#nucleus_blog">nucleus_blog</a></li>
105 <li><a href="#nucleus_category">nucleus_category</a></li>
106 <li><a href="#nucleus_item">nucleus_item</a></li>
107 <li><a href="#nucleus_comment">nucleus_comment</a></li>
108 <li><a href="#nucleus_member">nucleus_member</a></li>
109 <li><a href="#nucleus_team">nucleus_team</a></li>
115 <li><a href="#nucleus_plugin">nucleus_plugin</a></li>
116 <li><a href="#nucleus_plugin_event">nucleus_plugin_event</a></li>
117 <li><a href="#nucleus_plugin_option">nucleus_plugin_option</a></li>
118 <li><a href="#nucleus_plugin_option_desc">nucleus_plugin_option_desc</a></li>
124 <li><a href="#nucleus_skin">nucleus_skin</a></li>
125 <li><a href="#nucleus_skin_desc">nucleus_skin_desc</a></li>
126 <li><a href="#nucleus_template">nucleus_template</a></li>
127 <li><a href="#nucleus_template_desc">nucleus_template_desc</a></li>
133 <li><a href="#nucleus_actionlog">nucleus_actionlog</a></li>
135 <a href="#nucleus_config">nucleus_config</a>
137 <li><a href="#nucleus_config_options">可能なオプション</a></li>
140 <li><a href="#nucleus_tickets">nucleus_tickets</a></li>
141 <li><a href="#nucleus_activation">nucleus_activation</a></li>
147 <li><a href="#nucleus_karma">nucleus_karma</a></li>
148 <li><a href="#nucleus_ban">nucleus_ban</a></li>
156 <h1><a id="legend" name="legend">色使い</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
158 <p>この文書中では、カラムの型を示すために、文字の修飾を使っています。以下に例を示します:</p>
160 <table summary="色分けの解説"><tr>
161 <td class="primary" style="width:120px">プライマリ</td>
164 <td class="foreign">外部</td>
165 <td>外部キー(クリックすると参照先に飛ぶ)。MySQLは外部キーとの一貫性保持に責任を持たないことに注意</td>
167 <td class="toremove">削除予定</td>
168 <td>同じ機能を提供するプラグインを優先するため、テーブルやカラムは将来のバージョンのNucleusで削除させる可能性が高い</td>
170 <td class="fulltext">フルテキスト</td>
171 <td>カラムにフルテキストのインデックスが付く(検索で使用する)</td>
176 <h1><a id="nucleus_blog" name="nucleus_blog">nucleus_blogテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
178 <table summary="nucleus_blogテーブル"><tr>
179 <th class="column" abbr="カラム名">カラム名</th>
180 <th class="type" abbr="データ型">データ型</th>
181 <th class="default" abbr="既定値">既定値</th>
182 <th class="description" abbr="データの説明">説明</th>
185 <td class="notnull autoinc primary">bnumber</td>
187 <td>(空白)auto_increment</td>
191 <td class="notnull">bname</td>
197 <td class="notnull unique">bshortname</td>
200 <td>Blogの短縮名 (スキン変数 <code><%blog%></code>などで使うものと同じ)</td>
204 <td>varchar(200)</td>
209 <td class="notnull">bcomments</td>
212 <td>コメントを許可する(1=許可, 0=不許可)</td>
215 <td class="notnull">bmaxcomments</td>
218 <td>メインの目次ページでのコメントの最大表示数。既定値(0)は制限なし。インライン・コメントを使わないのならここはいじらないこと</td>
221 <td class="notnull">btimeoffset</td>
222 <td>decimal(3,1)</td>
224 <td>サーバー時刻との時差。アイテムはサーバー時刻にこの値を足した時間でデータベースに保存される</td>
227 <td class="toremove">bnotify</td>
230 <td>通知するメール・アドレス。設定した通知イベント(内容は<code>bnotifytype</code>を参照)が発生した時にこのアドレス宛てにメールで通知される。</td>
234 <td>varchar(100)</td>
239 <td class="toremove">bupdate</td>
242 <td>アイテムが投稿されるたびに変更が必要な更新ファイル。サーバー上の絶対パスで指定する。</td>
245 <td class="notnull foreign"><a href="#nucleus_skin_desc">bdefskin</a></td>
248 <td>このBlogを表示するときに使う標準のスキン</td>
251 <td class="notnull">bpublic</td>
254 <td>メンバーー以外にもコメントを許可するかどうか(1=許可/0=不許可)</td>
257 <td class="notnull toremove">bsendping</td>
260 <td>更新があったときにブログ検索サービスにpingを送る。(1=送る/0=送らない) このオプションは NP_Ping 及びそれに類するプラグインがインストールされている時のみ表示されます。</td>
263 <td class="notnull toremove">bconvertbreaks</td>
266 <td>投稿されたアイテム中の改行を<code><br /></code>に変換するかどうか(1=変換する/0=変換しない)</td>
269 <td class="foreign"><a href="#nucleus_category">bdefcat</a></td>
272 <td>カテゴリー未選択時に自動的に適用されるカテゴリーのカテゴリーID</td>
275 <td class="notnull">bnotifytype</td>
279 どのイベントが起こったときに通知メールを送るか(通知するメール・アドレスは<code>bnotify</code>を参照)。三つの値の組み合わせからなり、掛け合わせることでnoifytypeの値が決まる。
285 既定値 = 新しいコメントと新しいカルマ投票(3×5=15)
289 <td class="notnull">ballowpast</td>
292 <td>過去の日時での投稿を許可する (1=許可/0=不許可)</td>
295 <td class="notnull">bincludesearch</td>
298 <td>他のblogの検索の場合にも検索対象にする(1=対象にする/0=対象にしない)</td>
301 <td class="notnull">breqemail</td>
304 <td>コメントにメールアドレスを要求する(1=要求する/0=要求しない)</td>
307 <td class="notnull">bfuturepost</td>
311 ブログ内に未来の日付の記事が存在するか?(1=存在する/0=存在しない)
312 この値は投稿されたアイテムに応じて自動的に設定されます。
319 <h1><a id="nucleus_category" name="nucleus_category">nucleus_categoryテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
321 <table summary="nucleus_categoryテーブル"><tr>
322 <th class="column" abbr="カラム名">カラム名</th>
323 <th class="type" abbr="データ型">データ型</th>
324 <th class="default" abbr="既定値">既定値</th>
325 <th class="description" abbr="データの説明">説明</th>
327 <td class="notnull autoinc primary">catid</td>
329 <td>(空白)auto_increment</td>
333 <td class="notnull foreign"><a href="#nucleus_blog">cblog</a></td>
336 <td>カテゴリーが所属するBlogのID</td>
346 <td>varchar(200)</td>
352 <h1><a id="nucleus_item" name="nucleus_item">nucleus_itemテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
354 <table summary="nucleus_itemテーブル"><tr>
355 <th class="column" abbr="カラム名">カラム名</th>
356 <th class="type" abbr="データ型">データ型</th>
357 <th class="default" abbr="既定値">既定値</th>
358 <th class="description" abbr="データの説明">説明</th>
360 <td class="notnull autoinc primary">inumber</td>
362 <td>(空白)auto_increment</td>
366 <td class="fulltext">ititle</td>
367 <td>varchar(160)</td>
372 <td class="notnull fulltext">ibody</td>
378 <td class="fulltext">imore</td>
381 <td>追加部分(「続き」部分)</td>
384 <td class="notnull foreign"><a href="#nucleus_blog">iblog</a></td>
387 <td>アイテムが所属するBlogのID</td>
390 <td class="notnull foreign"><a href="#nucleus_member">iauthor</a></td>
393 <td>アイテムの著者のメンバーID</td>
396 <td class="notnull">itime</td>
398 <td>0000-00-00 00:00:00</td>
399 <td>投稿時間(サーバーとの時差を反映したもの)</td>
402 <td class="notnull">iclosed</td>
405 <td>アイテムが閉鎖されたかどうか (1=閉鎖/0=閉鎖していない).閉鎖すると、コメントやカルマ投票を受け付けない</td>
408 <td class="notnull">idraft</td>
411 <td>アイテムはドラフト(下書き状態)かどうか。ドラフトは管理ページでだけ見ることが出来る(1=ドラフト/0=ドラフトでない)</td>
414 <td class="notnull toremove">ikarmapos</td>
420 <td class="notnull toremove">ikarmaneg</td>
426 <td class="foreign"><a href="#nucleus_category">icat</a></td>
429 <td>アイテムが所属するカテゴリーのID</td>
432 <td class="foreign"><a href="#nucleus_category">iposted</a></td>
435 <td>アイテムに設定された投稿時刻を経過しているか?(1=している/0=していない)</td>
441 <h1><a id="nucleus_comment" name="nucleus_comment">nucleus_commentテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
443 <table summary="nucleus_commentテーブル"><tr>
444 <th class="column" abbr="カラム名">カラム名</th>
445 <th class="type" abbr="データ型">データ型</th>
446 <th class="default" abbr="既定値">既定値</th>
447 <th class="description" abbr="データの説明">説明</th>
449 <td class="notnull autoinc primary">cnumber</td>
451 <td>(空白)auto_increment</td>
455 <td class="notnull fulltext">cbody</td>
464 <td>筆者名(メンバーでない場合,メンバーの場合はcmember参照)</td>
468 <td>varchar(100)</td>
470 <td>メール・アドレスあるいはURL(メンバーでない場合,メンバーの場合はcmember参照)</td>
474 <td>varchar(100)</td>
476 <td>メール・アドレス(メンバーでない場合,メンバーの場合はcmember参照)</td>
479 <td class="foreign"><a href="#nucleus_member">cmember</a></td>
482 <td>コメントを書いたメンバーのID(メンバーでない場合は0)</td>
485 <td class="notnull foreign"><a href="#nucleus_item">citem</a></td>
488 <td>コメントが書き込まれたアイテムのID</td>
491 <td class="notnull">ctime</td>
493 <td>0000-00-00 00:00:00</td>
494 <td>コメントを書き込んだ時間</td>
500 <td>コメントを入力したホスト名</td>
503 <td class="notnull">cip</td>
506 <td>コメントを入力したホストのIPアドレス</td>
509 <td class="notnull foreign"><a href="#nucleus_blog">cblog</a></td>
512 <td>コメント書き込まれたアイテムが所属するBlogのID</td>
519 <h1><a id="nucleus_member" name="nucleus_member">nucleus_memberテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
521 <table summary="nucleus_memberテーブル"><tr>
522 <th class="column" abbr="カラム名">カラム名</th>
523 <th class="type" abbr="データ型">データ型</th>
524 <th class="default" abbr="既定値">既定値</th>
525 <th class="description" abbr="データの説明">説明</th>
527 <td class="notnull autoinc primary">mnumber</td>
529 <td>(空白)auto_increment</td>
533 <td class="notnull unique">mname</td>
536 <td>ログインID(表示される名前)</td>
542 <td>フルネーム(ハンドルネーム)</td>
545 <td class="notnull">mpassword</td>
548 <td>パスワード (<a href="http://www.php.net/md5" title="Info about the PHP md5() function">md5</a>で暗号化してある)</td>
558 <td>varchar(100)</td>
564 <td>varchar(100)</td>
566 <td>追加事項(メンバー自身が記述できる)</td>
569 <td class="notnull">madmin</td>
572 <td>Super-admin(最高権限管理者)か (1=super-admin/0=super-adminではない super-adminはすべての権利を持つ。システムに一人はsuper-adminがいる)</td>
575 <td class="notnull">mcanlogin</td>
578 <td>管理エリアへのログインを許可 (1=許可/0=不許可)</td>
584 <td>このキーのコピーがユーザーのクッキーに保存され、ログオンに使う。メンバーがログオンすると、ランダムなcookiekeyが生成され、一方はデータベースに、他方がユーザーのコンピュータに保存される。</td>
587 <td class="notnull">deflang</td>
590 <td>このメンバー用の言語ファイルを指定する</td>
597 <h1><a id="nucleus_team" name="nucleus_team">nucleus_teamテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
599 <p>Blogのチームメンバーごとに、この表にデータがある</p>
601 <table summary="nucleus_teamテーブル"><tr>
602 <th class="column" abbr="カラム名">カラム名</th>
603 <th class="type" abbr="データ型">データ型</th>
604 <th class="default" abbr="既定値">既定値</th>
605 <th class="description" abbr="データの説明">説明</th>
607 <td class="notnull primary foreign"><a href="#nucleus_member">tmember</a></td>
613 <td class="notnull primary foreign"><a href="#nucleus_blog">tblog</a></td>
616 <td>チーム・メンバーになっているBlog</td>
619 <td class="notnull">tadmin</td>
622 <td>Blogの管理者か (0=管理者ではない/1=管理者。各Blogは一人は管理者がいる)</td>
627 <h1><a id="nucleus_plugin" name="nucleus_plugin">nucleus_pluginテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
629 <table summary="nucleus_pluginテーブル"><tr>
630 <th class="column" abbr="カラム名">カラム名</th>
631 <th class="type" abbr="データ型">データ型</th>
632 <th class="default" abbr="既定値">既定値</th>
633 <th class="description" abbr="データの説明">説明</th>
635 <td class="notnull autoinc primary">pid</td>
637 <td>(空白)auto_increment</td>
641 <td class="notnull">pfile</td>
644 <td>拡張子を覗いたプラグインのファイル名(例えば<code>NP_CommentControl</code>)。プラグイン・ディレクトリにファイルがないといけない。</td>
647 <td class="notnull">porder</td>
650 <td>プラグインが呼び出される順番。プラグイン・ページで表示される順番でもある。数字が小さい方がリストの上の方に来る。</td>
654 <h1><a id="nucleus_plugin_event" name="nucleus_plugin_event">nucleus_plugin_eventテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
656 <p>各プラグインが登録するイベントを記録するキャッシュ。リクエストの度にすべてのプラグインを読み込んで,それらが使うイベントを調べる手間を省くために保存している。<a href="plugins.html#events">プラグインのイベントについてはこちらを参照。</a></p>
658 <table summary="nucleus_plugin_eventテーブル"><tr>
659 <th class="column" abbr="カラム名">カラム名</th>
660 <th class="type" abbr="データ型">データ型</th>
661 <th class="default" abbr="既定値">既定値</th>
662 <th class="description" abbr="データの説明">説明</th>
664 <td class="notnull foreign"><a href="#nucleus_plugin">pid</a></td>
673 <td>呼び出されるイベントの名前</td>
677 <h1><a id="nucleus_plugin_option" name="nucleus_plugin_option">nucleus_plugin_optionテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
679 <p>プラグイン・オプションの値を格納する。オプション自体の定義については<a href="#nucleus_plugin_option_desc">nucleus_plugin_option_desc</a>テーブルを参照。</p>
681 <table summary="nucleus_plugin_optionテーブル"><tr>
682 <th class="column" abbr="カラム名">カラム名</th>
683 <th class="type" abbr="データ型">データ型</th>
684 <th class="default" abbr="既定値">既定値</th>
685 <th class="description" abbr="データの説明">説明</th>
688 <td class="notnull autoinc primary foreign"><a href="#nucleus_plugin_option_desc">oid</a></td>
690 <td>(空白)auto_increment</td>
691 <td>オプションのID (<a href="#nucleus_plugin_option_desc">nucleus_plugin_option_desc</a>テーブルを参照)</td>
694 <td class="notnull">ovalue</td>
700 <td class="notnull primary">ocontextid</td>
704 オプションが使われるコンテキストによって意味合いが変わる
706 <li>グローバル・コンテキスト: 使わない</li>
707 <li>Blogコンテキスト: <a href="#nucleus_blog">ブログのID</a></li>
708 <li>カテゴリー・コンテキスト: <a href="#nucleus_category">カテゴリーのID</a></li>
709 <li>メンバー・コンテキスト: <a href="#nucleus_member">メンバーのID</a></li>
716 <h1><a id="nucleus_plugin_option_desc" name="nucleus_plugin_option_desc">nucleus_plugin_option_descテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
718 <p>プラグインがオプションを作るたびにこのテーブル内にデータができる。</p>
720 <table summary="nucleus_plugin_option_descテーブル"><tr>
721 <th class="column" abbr="カラム名">カラム名</th>
722 <th class="type" abbr="データ型">データ型</th>
723 <th class="default" abbr="既定値">既定値</th>
724 <th class="description" abbr="データの説明">説明</th>
726 <td class="notnull autoinc unique">oid</td>
728 <td>(空白)auto_increment</td>
729 <td>オプションのID。<a href="#nucleus_plugin_option">nucleus_plugin_option</a>テーブルで使う</td>
732 <td class="notnull primary foreign"><a href="#nucleus_plugin">opid</a></td>
735 <td>オプションを作ったプラグインのID</td>
738 <td class="notnull primary">oname</td>
744 <td class="notnull primary">ocontext</td>
747 <td>オプションのコンテキスト(<code>グローバル</code>, <code>Blog</code>, <code>カテゴリー</code>,メンバー)</td>
751 <td>varchar(255)</td>
759 <td>オプションの型.<a title="Nucleus Plugin API - Option types" href="plugins.html#options">プラグインの文書を参照</a>.</td>
771 <td>select option型などで使う、その他のデータ</td>
775 <h1><a id="nucleus_skin" name="nucleus_skin">nucleus_skinテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
777 <table summary="nucleus_skinテーブル"><tr>
778 <th class="column" abbr="カラム名">カラム名</th>
779 <th class="type" abbr="データ型">データ型</th>
780 <th class="default" abbr="既定値">既定値</th>
781 <th class="description" abbr="データの説明">説明</th>
783 <td class="notnull primary foreign"><a href="#nucleus_skin_desc">sdesc</a></td>
786 <td>skin_descへの参照</td>
789 <td class="notnull primary">stype</td>
795 <li><code>index</code>(メインの目次ページ)</li>
796 <li><code>item</code>(個別アイテムページ)</li>
797 <li><code>archive</code>(月別アーカイブページ)</li>
798 <li><code>archivelist</code>(月別アーカイブ一覧ページ)</li>
799 <li><code>search</code>(検索ページ)</li>
800 <li><code>error</code>(エラーページ)</li>
801 <li><code>member</code>(メンバー詳細ページ)</li>
802 <li><code>imagepopup</code>(画像ポップアップウィンドウ)</li>
807 <td class="notnull">scontent</td>
814 <h1><a id="nucleus_skin_desc" name="nucleus_skin_desc">nucleus_skin_descテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
816 <table summary="nucleus_skin_descテーブル"><tr>
817 <th class="column" abbr="カラム名">カラム名</th>
818 <th class="type" abbr="データ型">データ型</th>
819 <th class="default" abbr="既定値">既定値</th>
820 <th class="description" abbr="データの説明">説明</th>
822 <td class="notnull autoinc primary">sdnumber</td>
824 <td>(空白)auto_increment</td>
828 <td class="notnull unique">sdname</td>
835 <td>varchar(200)</td>
840 <td class="notnull">sdtype</td>
846 <td class="notnull">sdincmode</td>
850 Includeモード。以下のいずれかを取る
852 <li><code>normal</code>(スキンディレクトリを使用しない)</li>
853 <li><code>skindir</code>(スキンディレクトリを使用する)</li>
858 <td class="notnull">sdincpref</td>
861 <td>ファイルをIncludeするときのプリフィックス</td>
865 <h1><a id="nucleus_template" name="nucleus_template">nucleus_templateテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
867 <table summary="nucleus_templateテーブル"><tr>
868 <th class="column" abbr="カラム名">カラム名</th>
869 <th class="type" abbr="データ型">データ型</th>
870 <th class="default" abbr="既定値">既定値</th>
871 <th class="description" abbr="データの説明">説明</th>
873 <td class="notnull primary foreign"><a href="#nucleus_template_desc">tdesc</a></td>
876 <td>template_descへの参照(nucleus_template_descのテンプレートID)</td>
879 <td class="notnull primary">tpartname</td>
883 テンプレート・パートの名前。以下のいずれかを取る
885 <li>ARCHIVELIST_FOOTER(アーカイブ一覧のフッター)</li>
886 <li>ARCHIVELIST_HEADER(アーカイブ一覧のヘッダー)</li>
887 <li>ARCHIVELIST_LISTITEM(アーカイブ一覧の本体)</li>
888 <li>CATLIST_FOOTER(カテゴリー一覧のフッター)</li>
889 <li>CATLIST_HEADER(カテゴリー一覧のヘッダー)</li>
890 <li>CATLIST_LISTITEM(カテゴリー一覧の本体)</li>
891 <li>COMMENTS_BODY(コメントの本体)</li>
892 <li>COMMENTS_MANY(コメントが2つ以上の時)</li>
893 <li>COMMENTS_NONE(コメントが無い時)</li>
894 <li>COMMENTS_ONE(コメントが1つの時)</li>
895 <li>COMMENTS_TOOMUCH(コメントが多すぎる時)</li>
896 <li>DATE_HEADER(日付のヘッダー)</li>
897 <li>EDITLINK(アイテムを編集するためのリンク)</li>
898 <li>FORMAT_DATE(日付フォーマット)</li>
899 <li>FORMAT_TIME(時刻フォーマット)</li>
900 <li>IMAGE_CODE(インライン画像のコード)</li>
901 <li>ITEM(アイテムの本体)</li>
902 <li>LOCALE(Locale)</li>
903 <li>MEDIA_CODE(メディアオブジェクトへのリンクコード)</li>
904 <li>MORELINK(続きへのリンク)</li>
905 <li>POPUP_CODE(ポップアップ画像へのリンクコード)</li>
906 <li>SEARCH_HIGHLIGHT(ハイライト表示)</li>
907 <li>SEARCH_NOTHINGFOUND(検索で何も見つからなかった場合)</li>
912 <td class="notnull">tcontent</td>
915 <td>テンプレート・パートの内容</td>
920 <h1><a id="nucleus_template_desc" name="nucleus_template_desc">nucleus_template_descテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
922 <table summary="nucleus_template_descテーブル"><tr>
923 <th class="column" abbr="カラム名">カラム名</th>
924 <th class="type" abbr="データ型">データ型</th>
925 <th class="default" abbr="既定値">既定値</th>
926 <th class="description" abbr="データの説明">説明</th>
928 <td class="notnull autoinc primary unique">tdnumber</td>
930 <td>(空白)auto_increment</td>
934 <td class="notnull unique">tdname</td>
941 <td>varchar(200)</td>
947 <h1><a id="nucleus_actionlog" name="nucleus_actionlog">nucleus_actionlogテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
949 <p>ログインやエラーなどのログを記録する</p>
951 <table summary="nucleus_actionlogテーブル"><tr>
952 <th class="column" abbr="カラム名">カラム名</th>
953 <th class="type" abbr="データ型">データ型</th>
954 <th class="default" abbr="既定値">既定値</th>
955 <th class="description" abbr="データの説明">説明</th>
957 <td class="notnull">timestamp</td>
959 <td>0000-00-00 00:00:00</td>
963 <td class="notnull">message</td>
964 <td>varchar(255)</td>
972 <h1><a id="nucleus_config" name="nucleus_config">nucleus_configテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
974 <p>Nucleusは、いくつかのグローバル・オプションを<code>nucleus_config</code>テーブルに記憶する。これは<code>$CONF['OptionName']</code> でアクセスできる。</p>
976 <table summary="nucleus_configテーブル"><tr>
977 <th class="column" abbr="カラム名">カラム名</th>
978 <th class="type" abbr="データ型">データ型</th>
979 <th class="default" abbr="既定値">既定値</th>
980 <th class="description" abbr="データの説明">説明</th>
982 <td class="notnull primary">name</td>
989 <td>varchar(128)</td>
995 <h2><a name="nucleus_config_options" id="nucleus_config_options">使用できるオプション</a></h2>
997 <p>使用できるオプションの一覧を以下に示す。</p>
999 <p>はい/いいえタイプのオプションは1/0 (1=はい/真, 0=いいえ/偽)で示す。</p>
1001 <table summary="使用できるオプション"><tr>
1002 <th class="settings_name" abbr="設定の名前">設定の名前</th>
1003 <th class="settings_default" abbr="既定値">既定値</th>
1004 <th class="settings_description" abbr="データの説明">説明</th>
1006 <td class="foreign"><a href="#nucleus_blog">DefaultBlog</a></td>
1008 <td>デフォルトのBlogのID。Blogが明示的に記されていないときに使うもの</td>
1012 <td>管理者のメール・アドレス</td>
1016 <td>サイトのURL。最後に/が付く必要がある</td>
1020 <td>デフォルトの言語ファイル名。「言語ファイル名.php」ファイルがlanguageディレクトリに必要</td>
1022 <td>SessionCookie</td>
1024 <td>寿命1ヶ月のクッキーの代わりにセッション・クッキーを使うかどうか</td>
1026 <td>AllowMemberCreate</td>
1028 <td>ビジターにアカウント作成を許すかどうか</td>
1030 <td>AllowMemberMail</td>
1032 <td>メンバー間でフォームを使ったメッセージ転送を許すかどうか(メール・アドレスは表示されない)</td>
1040 <td>管理エリアのURL。最後に/が付く必要がある</td>
1042 <td>NewMemberCanLogon</td>
1044 <td>登録されたばかりのユーザーがログインできるかどうか。できないばあい,管理者が「can login」オプションを最初に変更する必要がある</td>
1046 <td class="toremove">DisableSite</td>
1048 <td>サイトが無効状態になっているかどうか。無効状態の場合、管理者だけがアクセスできる。他のすべてのアクセスは<code>DisableSiteURL</code>にリダイレクトされる</td>
1050 <td class="toremove">DisableSiteURL</td>
1052 <td>サイトが無効状態のときにリダイレクトされるURL</td>
1054 <td class="toremove">LastVisit</td>
1056 <td>「最後の訪問」のクッキーを保存するかどうか</td>
1060 <td>メディア・フォルダのURL。最後に/が付く</td>
1062 <td>AllowedTypes</td>
1063 <td>jpg, jpeg, gif, mpg, mpeg, avi, mov, mp3, swf, png</td>
1064 <td>メディア・フォルダにアップロードを許すファイル型</td>
1066 <td>AllowLoginEdit</td>
1068 <td>メンバーにログイン名とパスワードの変更を許すかどうか</td>
1070 <td>AllowUpload</td>
1072 <td>ファイルのアップロードを許すかどうか</td>
1074 <td class="toremove">DisableJsTools</td>
1079 <li>0: 多機能型 (IE)</li>
1080 <li>1: ツールバーを無効にする</li>
1081 <li>2: シンプル型(Gecko)</li>
1087 <td>クッキーをセットするパス</td>
1089 <td>CookiePrefix</td>
1091 <td>クッキーの名称に追加するプレフィクス文字列。複数の Nucleus を同じドメインにインストールする際に便利で、別の Nucleus で同じセッションが適用されることを予防する。</td>
1093 <td>CookieDomain</td>
1095 <td>クッキーをセットするドメイン</td>
1097 <td>CookieSecure</td>
1099 <td>クッキーの通信にHTTPSを使うかどうか</td>
1101 <td>MediaPrefix</td>
1103 <td>アップロードしたファイル名に日付を加えるかどうか</td>
1105 <td>MaxUploadSize</td>
1107 <td>アップロードするファイルの最大値(バイト数)</td>
1109 <td>NonmemberMail</td>
1111 <td>メンバー以外の人にメンバーへのメールを許すかどうか</td>
1115 <td>プラグイン・フォルダのURL。/で終わる必要がある</td>
1117 <td>ProtectMemNames</td>
1119 <td>このオプションが有効だと、ログインしていない人はメンバーと同じ名前でコメントを残せなくなる。こうすることによって、ゲストがメンバーのふりをすることを避けられる</td>
1121 <td class="foreign"><a href="#nucleus_skin_desc">BaseSkin</a></td>
1123 <td>Nucleusに、自動的にスキンが決まらないときに、どのスキンを使うかを指定する。スキンのパートが空だったり、ブログやスキンが洗濯されていない場合に起こる</td>
1127 <td>スキン・フォルダのURL。最後に/が付く必要がある</td>
1131 <td><code>action.php</code>のURL.</td>
1135 <td><code>normal</code>(ノーマル)か<code>pathinfo</code>(FancyURLs)</td>
1137 <td>DatabaseVersion</td>
1139 <td>データベースの構造が更新された最後のNucleusのバージョン番号</td>
1143 <td>デバッグモードを使用するか?(0=使用しない・1=使用する 最高管理者のみ設定可)</td>
1145 <td>DefaultListSize</td>
1147 <td>リスト表示の時のデフォルトの表示数</td>
1151 <h1><a id="nucleus_tickets" name="nucleus_tickets">nucleus_ticketsテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="トップに戻る" /></a></h1>
1153 <p>Nucleus は <code>nucleus_tickets</code> を使用することによりセキュリティ上の問題を予防する。特に、管理エリアにおいて諸設定やデータベースの内容に影響する場合、チケットを必須とする。チケットは管理ページがリクエストされた時とフォームから呼び出された時に発行される。チケットは発行から 1時間後に破棄される。</p>
1155 <table summary="nucleus_ticketsテーブル"><tr>
1156 <th class="column" abbr="カラム名">カラム名</th>
1157 <th class="type" abbr="データ型">データ型</th>
1158 <th class="default" abbr="既定値">既定値</th>
1159 <th class="description" abbr="データの説明">説明</th>
1161 <td class="notnull primary">ticket</td>
1162 <td>varchar(40)</td>
1163 <td>(空白)auto_increment</td>
1164 <td>特定の単一ユーザに割り当てられるユニークなチケット。一般に、チケットは次のような形になる: <code>65303a785423b4d53c7b3e6579766f26</code></td>
1166 <td class="notnull foreign primary"><a href="#nucleus_member">member</a></td>
1169 <td>当該チケットが有効適用されるメンバー。</td>
1171 <td class="notnull">ctime</td>
1173 <td>0000-00-00 00:00:00</td>
1174 <td>チケットの発行日時。チケットの有効期限は 1時間</td>
1179 <h1><a id="nucleus_activation" name="nucleus_activation">nucleus_activationテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" width="15" height="15" alt="トップに戻る" /></a></h1>
1181 <p>新しいメンバーが登録された時点では、そのメンバーアカウントがアクティベートされるまで Nucleus はログインを許可しない。アクティベートのためのリンクを含むメールが送信され、これによってアクティベートすることができる。<code>nucleus_activation</code>テーブルはアクティベートの進捗状況を追跡する。</p>
1183 <table summary="nucleus_activationテーブル"><tr>
1184 <th class="column" abbr="カラム名">カラム名</th>
1185 <th class="type" abbr="データ型">データ型</th>
1186 <th class="default" abbr="既定値">既定値</th>
1187 <th class="description" abbr="データの説明">説明</th>
1189 <td class="notnull primary">vkey</td>
1190 <td>varchar(40)</td>
1192 <td>アクティベートキー。このキーはメンバーのアクティベートコードに渡される。一般的に、キーは次のような形になる: <code>41cf637d4fbeeff954b4ca70b8bde9dd</code></td>
1194 <td class="notnull foreign"><a href="#nucleus_member">vmember</a></td>
1197 <td>アクティベートの必要があるメンバー。</td>
1199 <td class="notnull">vtime</td>
1201 <td>0000-00-00 00:00:00</td>
1202 <td>アクティベートキーが発行された日時。アクティベートキーの有効期間は 2日間である。</td>
1204 <td class="notnull">vtype</td>
1205 <td>varchar(15)</td>
1209 <li><code>forgot</code>: パスワードを忘れたメンバー。</li>
1210 <li><code>register</code>: 新しく登録されたメンバー。</li>
1211 <li><code>addresschange</code>: メールアドレスを変更したメンバー。</li>
1215 <td class="notnull">vextra</td>
1216 <td>varchar(128)</td>
1218 <td>追加的な情報。アクティベート種別が <code>addresschange</code> の場合、ここには <code>oldemailaddress/x</code> として、x には 0 または 1 の値が入る。x は <a href="#nucleus_member">member</a>テーブルにある <code>mcanlogin</code> の値を参照する。(アクティベートが完全に終了するまで、このユーザはログインできない)</td>
1223 <h1><a id="nucleus_karma" name="nucleus_karma">nucleus_karmaテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
1225 <p class="toremove">このテーブルは将来はなくなる可能性が高い。同じ機能を提供するプラグインに譲るためだ。</p>
1227 <p>この表は投票に使われたIPアドレスを記憶しておく。こうすることで一つのIPアドレスからは1票しか入れられなくなる</p>
1229 <table summary="nucleus_karmaテーブル"><tr>
1230 <th class="column" abbr="カラム名">カラム名</th>
1231 <th class="type" abbr="データ型">データ型</th>
1232 <th class="default" abbr="既定値">既定値</th>
1233 <th class="description" abbr="データの説明">説明</th>
1235 <td class="notnull foreign"><a href="#nucleus_item">itemid</a></td>
1241 <td class="notnull">ip</td>
1248 <h1><a id="nucleus_ban" name="nucleus_ban">nucleus_banテーブル</a><a href="#top" class="toplink"><img src="../icon-up.gif" alt="back to top" width="15" height="15" /></a></h1>
1250 <p class="toremove">このテーブルは将来のNucleusではなくなる可能性が高い。同じ機能を提供するプラグインに譲るためだ。</p>
1252 <p>コメントやカルマ投票を禁止するIPアドレスを記憶</p>
1254 <table summary="nucleus_banテーブル"><tr>
1255 <th class="column" abbr="カラム名">カラム名</th>
1256 <th class="type" abbr="データ型">データ型</th>
1257 <th class="default" abbr="既定値">既定値</th>
1258 <th class="description" abbr="データの説明">説明</th>
1260 <td class="notnull">iprange</td>
1261 <td>varchar(15)</td>
1263 <td>IPアドレスの範囲。アドレス単独でもいいし,一部(左から)でもいい。一部の場合は範囲を示す</td>
1266 <td class="notnull">reason</td>
1267 <td>varchar(255)</td>
1269 <td>禁止の理由を示すメッセージ。コメントやカルマ投票を試みたときに表示される</td>
1271 <td class="notnull foreign"><a href="#nucleus_blog">blogid</a></td>
1274 <td>禁止を有効にするBlogのID</td>