• R/O
  • SSH
  • HTTPS

epitta-bbs: Commit


Commit MetaInfo

Revision37 (tree)
Time2012-02-02 23:29:09
Authorwajett

Log Message

2012/02/02 管理系など。

Change Summary

Incremental Difference

--- app/app_controller.php (revision 36)
+++ app/app_controller.php (revision 37)
@@ -153,8 +153,9 @@
153153 'bdcfm' =>array( 'act'=>'AdminBoard', 'func'=>'deleteComfirm' ),
154154 'bddlt' =>array( 'act'=>'AdminBoard', 'func'=>'delete' ),
155155
156- 'acs' =>array( 'act'=>'AdminAccess', 'func'=>'access' ),
157-
156+ /*
157+ 'acsmnu' =>array( 'act'=>'AdminAccess', 'func'=>'accessMenu' ),
158+ */
158159 );
159160
160161 //
--- SetUpTools/create_sql.php (revision 36)
+++ SetUpTools/create_sql.php (revision 37)
@@ -5,8 +5,6 @@
55 id TEXT PRIMARY KEY,
66 name TEXT NOT NULL UNIQUE,
77 remarks TEXT,
8- adminpass TEXT NOT NULL DEFAULT 'pass',
9- id_keyword TEXT NOT NULL DEFAULT 'idkey',
108 topurl TEXT,
119 homepage TEXT,
1210
@@ -34,12 +32,13 @@
3432 new_days INTEGER NOT NULL DEFAULT 3,
3533
3634 clipfile INTEGER NOT NULL DEFAULT 1,
37- clipfile_types TEXT DEFAULT 'jpeg,gif,png,txt,zip',
35+ clipfile_types TEXT DEFAULT 'jpg,jpeg,gif,png,txt,zip',
3836 clipfile_maxsize INTEGER NOT NULL DEFAULT 300,
3937 icon_on INTEGER NOT NULL DEFAULT 1,
4038 icons TEXT DEFAULT '',
4139 ftcolor_on INTEGER NOT NULL DEFAULT 1,
4240 ftcolors TEXT DEFAULT 'black, red, blue, #008000',
41+ ticket_limit INTEGER NOT NULL DEFAULT 7200,
4342 captcha_on INTEGER NOT NULL DEFAULT 0,
4443 keyword_on INTEGER NOT NULL DEFAULT 0,
4544 keyword_q TEXT DEFAULT 'エピッタをひらがな4文字で入力してください。',
@@ -47,37 +46,24 @@
4746
4847 writecert_code INTEGER NOT NULL DEFAULT 0,
4948 readcert_code INTEGER NOT NULL DEFAULT 0,
50-
5149 mail_server TEXT DEFAULT '',
5250 mailto_admin INTEGER NOT NULL DEFAULT 0,
5351
54-
55-
5652 vw_title TEXT DEFAULT 'Epitta',
57- vw_forcrowler TEXT DEFAULT 'INDEX,NOFOLLOW',
58- vw_searchkey TEXT DEFAULT 'Epitta BB,掲示板',
53+ vw_robots TEXT DEFAULT 'index,nofollow',
54+ vw_keywords TEXT DEFAULT 'Epitta BB,掲示板',
5955 vw_description TEXT DEFAULT 'Epitta BBはPHPで作成されたWEB掲示板です。',
6056 vw_header TEXT DEFAULT '<H2>I''m Epitta BB</h2>',
6157 vw_footer TEXT DEFAULT '',
6258
63- vw_full_width INTEGER DEFAULT 900,
64- vw_bg_color TEXT DEFAULT '#ffffff',
65- vw_bgimage TEXT DEFAULT '',
66- vw_ft_size INTEGER DEFAULT 13,
67- vw_ft_color TEXT DEFAULT '#666666',
68- vw_lk_color TEXT DEFAULT 'bule',
69- vw_lkv_color TEXT DEFAULT 'purple',
70- vw_lka_color TEXT DEFAULT 'red',
71- vw_lkh_color TEXT DEFAULT 'green',
59+ created TEXT,
60+ modified TEXT
7261
73- created_at TEXT,
74- modified_at TEXT
75-
7662 );
7763
7864
7965 #テスト
80-INSERT INTO epitta_boards ( id, name, tree_max, plain_max, clipfile, created_at )
66+INSERT INTO epitta_boards ( id, name, tree_max, plain_max, clipfile, created )
8167 VALUES ( 'default', 'def_ab12', 3, 3, 2, '2011-06-01 00:00:00' );
8268
8369
@@ -110,9 +96,9 @@
11096 remarks TEXT,
11197 status_code INTEGER NOT NULL DEFAULT 1,
11298
113- tree_updated_at TEXT DEFAULT NULL,
114- created_at TEXT,
115- modified_at TEXT
99+ tree_updated TEXT DEFAULT NULL,
100+ created TEXT,
101+ modified TEXT
116102
117103 );
118104
--- epitta_admin.php (revision 36)
+++ epitta_admin.php (revision 37)
@@ -23,7 +23,8 @@
2323
2424
2525 //管理者用
26-define('ADMINIDTF', '1234ABCD'); //管理者ログイン用マスターパスワード (重要)
26+define('ADMINIDTF', '1234ABCD'); //管理者ログイン用マスターパスワード (重要)
27+define('ADMINSSN', 'epitta');
2728 define('BACKPATH', './epitta.php');
2829
2930
--- views/admin/menu.php (revision 36)
+++ views/admin/menu.php (revision 37)
@@ -27,16 +27,23 @@
2727
2828 foreach ( $boards as $brd ) {
2929
30- $myContent .= "<tr>";
31- $myContent .= "<td>{$brd['id']}</td>";
32- $myContent .= "<td>{$brd['name']}</td>";
33- $myContent .= "<td>{$brd['vw_title']}</td>";
34-
35- $myContent .= "<td>{$brd['created']}</td>";
36- $myContent .= "<td width=\"200\" align=\"center\">記事管理 アクセス解析<br />掲示板設定 掲示板削除</td>";
37-
38- $myContent .= "</tr>";
39-
30+$myContent .=<<< HTML
31+ <tr>
32+ <td>{$brd['id']}</td>
33+ <td>{$brd['name']}</td>
34+ <td>{$brd['vw_title']}</td>
35+ <td>{$brd['created']}</td>
36+
37+ <td width="200">
38+ <div style="margin-left:20px;">
39+ <a href="{$baseSet['script']}?act=artlst">記事管理</a> 
40+ <br />
41+ <a href="{$baseSet['script']}?act=artlst">掲示板設定</a> <a href="{$baseSet['script']}?act=artlst">掲示板削除</a>
42+ </div>
43+ </td>
44+ </tr>
45+HTML;
46+
4047 }
4148
4249 }
Show on old repository browser