• R/O
  • SSH
  • HTTPS

risoluto: Commit


Commit MetaInfo

Revision325 (tree)
Time2012-04-05 17:34:33
Authoryuta_hayakawa

Log Message

upgrade_simpleblog-1_3_0_to_simpleblog-1_4_0用コードに変更
(ToDo:アップグレードテスト)

Change Summary

Incremental Difference

--- trunk/upgrade/simpleblog/LICENSE (revision 324)
+++ trunk/upgrade/simpleblog/LICENSE (revision 325)
@@ -1,6 +1,6 @@
11 The BSD License
22
3-Copyright (c) 2008-2011, Risoluto Developers
3+Copyright (c) 2008-2012, Risoluto Developers
44 All rights reserved.
55
66 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
--- trunk/upgrade/simpleblog/AUTHORS (revision 324)
+++ trunk/upgrade/simpleblog/AUTHORS (revision 325)
@@ -1,10 +1,10 @@
11 [Core Members]
22
3-* Yuta Hayakawa <yuta_hayakawa@users.sourceforge.jp>
3+* Yuta Hayakawa <haya@risoluto.org>
44 - Project Manager
55 - Developer
66
7-* Shohei Wanibuchi<wanibuchi@users.sourceforge.jp>
7+* Shohei Wanibuchi<wanibuchi@risoluto.org>
88 - Developer
99 - Designer
1010
--- trunk/upgrade/simpleblog/sql/upgrade_create.sql (revision 324)
+++ trunk/upgrade/simpleblog/sql/upgrade_create.sql (revision 325)
@@ -0,0 +1,12 @@
1+CREATE TABLE IF NOT EXISTS [[[_PREFIX]]]_t_category
2+(
3+ `ctime` datetime NOT NULL
4+ , `cuser` varchar(255) NOT NULL
5+ , `mtime` datetime NOT NULL
6+ , `muser` varchar(255) NOT NULL
7+ , `category_id` int unsigned NOT NULL
8+ , `category_name` text
9+ , PRIMARY KEY (
10+ `category_id`
11+ )
12+) ENGINE=InnoDB CHARACTER SET utf8;
\ No newline at end of file
--- trunk/upgrade/simpleblog/sql/upgrade_modify.sql (revision 324)
+++ trunk/upgrade/simpleblog/sql/upgrade_modify.sql (revision 325)
@@ -0,0 +1 @@
1+ALTER TABLE [[[_PREFIX]]]_t_blog ADD `category_id` int unsigned DEFAULT 0 AFTER `post_datetime`;
--- trunk/upgrade/simpleblog/sql/upgrade_data.sql (revision 324)
+++ trunk/upgrade/simpleblog/sql/upgrade_data.sql (revision 325)
@@ -0,0 +1,342 @@
1+INSERT INTO `risoluto_t_headerinfo`
2+(
3+ `ctime`
4+ , `cuser`
5+ , `mtime`
6+ , `muser`
7+ , `header_id`
8+ , `act`
9+ , `cage`
10+ , `robot_index`
11+ , `robot_follow`
12+ , `title`
13+ , `description`
14+ , `keywords`
15+ , `author`
16+ , `javascript`
17+ , `css`
18+ , `favicon`
19+) VALUES (
20+ now()
21+ , 'simpleblog.installer'
22+ , now()
23+ , 'simpleblog.installer'
24+ , 62
25+ , 'categorylist'
26+ , '[[[_PREFIX]]]'
27+ , 0
28+ , 0
29+ , 'カテゴリ一覧'
30+ , ''
31+ , ''
32+ , ''
33+ , ''
34+ , './css/common.css'
35+ , './img/favicon.ico'
36+);
37+INSERT INTO `risoluto_t_headerinfo`
38+(
39+ `ctime`
40+ , `cuser`
41+ , `mtime`
42+ , `muser`
43+ , `header_id`
44+ , `act`
45+ , `cage`
46+ , `robot_index`
47+ , `robot_follow`
48+ , `title`
49+ , `description`
50+ , `keywords`
51+ , `author`
52+ , `javascript`
53+ , `css`
54+ , `favicon`
55+) VALUES (
56+ now()
57+ , 'simpleblog.installer'
58+ , now()
59+ , 'simpleblog.installer'
60+ , 63
61+ , 'categoryadd_entry'
62+ , '[[[_PREFIX]]]'
63+ , 0
64+ , 0
65+ , '新規カテゴリ追加(入力)'
66+ , ''
67+ , ''
68+ , ''
69+ , ''
70+ , './css/common.css'
71+ , './img/favicon.ico'
72+);
73+INSERT INTO `risoluto_t_headerinfo`
74+(
75+ `ctime`
76+ , `cuser`
77+ , `mtime`
78+ , `muser`
79+ , `header_id`
80+ , `act`
81+ , `cage`
82+ , `robot_index`
83+ , `robot_follow`
84+ , `title`
85+ , `description`
86+ , `keywords`
87+ , `author`
88+ , `javascript`
89+ , `css`
90+ , `favicon`
91+) VALUES (
92+ now()
93+ , 'simpleblog.installer'
94+ , now()
95+ , 'simpleblog.installer'
96+ , 64
97+ , 'categoryadd_confirm'
98+ , '[[[_PREFIX]]]'
99+ , 0
100+ , 0
101+ , '新規カテゴリ追加(確認)'
102+ , ''
103+ , ''
104+ , ''
105+ , ''
106+ , './css/common.css'
107+ , './img/favicon.ico'
108+);
109+INSERT INTO `risoluto_t_headerinfo`
110+(
111+ `ctime`
112+ , `cuser`
113+ , `mtime`
114+ , `muser`
115+ , `header_id`
116+ , `act`
117+ , `cage`
118+ , `robot_index`
119+ , `robot_follow`
120+ , `title`
121+ , `description`
122+ , `keywords`
123+ , `author`
124+ , `javascript`
125+ , `css`
126+ , `favicon`
127+) VALUES (
128+ now()
129+ , 'simpleblog.installer'
130+ , now()
131+ , 'simpleblog.installer'
132+ , 65
133+ , 'categoryadd_complete'
134+ , '[[[_PREFIX]]]'
135+ , 0
136+ , 0
137+ , '新規カテゴリ追加(完了)'
138+ , ''
139+ , ''
140+ , ''
141+ , ''
142+ , './css/common.css'
143+ , './img/favicon.ico'
144+);
145+INSERT INTO `risoluto_t_headerinfo`
146+(
147+ `ctime`
148+ , `cuser`
149+ , `mtime`
150+ , `muser`
151+ , `header_id`
152+ , `act`
153+ , `cage`
154+ , `robot_index`
155+ , `robot_follow`
156+ , `title`
157+ , `description`
158+ , `keywords`
159+ , `author`
160+ , `javascript`
161+ , `css`
162+ , `favicon`
163+) VALUES (
164+ now()
165+ , 'simpleblog.installer'
166+ , now()
167+ , 'simpleblog.installer'
168+ , 66
169+ , 'categorymod_entry'
170+ , '[[[_PREFIX]]]'
171+ , 0
172+ , 0
173+ , 'カテゴリ情報変更(編集)'
174+ , ''
175+ , ''
176+ , ''
177+ , ''
178+ , './css/common.css'
179+ , './img/favicon.ico'
180+);
181+INSERT INTO `risoluto_t_headerinfo`
182+(
183+ `ctime`
184+ , `cuser`
185+ , `mtime`
186+ , `muser`
187+ , `header_id`
188+ , `act`
189+ , `cage`
190+ , `robot_index`
191+ , `robot_follow`
192+ , `title`
193+ , `description`
194+ , `keywords`
195+ , `author`
196+ , `javascript`
197+ , `css`
198+ , `favicon`
199+) VALUES (
200+ now()
201+ , 'simpleblog.installer'
202+ , now()
203+ , 'simpleblog.installer'
204+ , 67
205+ , 'categorymod_confirm'
206+ , '[[[_PREFIX]]]'
207+ , 0
208+ , 0
209+ , 'カテゴリ情報変更(確認)'
210+ , ''
211+ , ''
212+ , ''
213+ , ''
214+ , './css/common.css'
215+ , './img/favicon.ico'
216+);
217+INSERT INTO `risoluto_t_headerinfo`
218+(
219+ `ctime`
220+ , `cuser`
221+ , `mtime`
222+ , `muser`
223+ , `header_id`
224+ , `act`
225+ , `cage`
226+ , `robot_index`
227+ , `robot_follow`
228+ , `title`
229+ , `description`
230+ , `keywords`
231+ , `author`
232+ , `javascript`
233+ , `css`
234+ , `favicon`
235+) VALUES (
236+ now()
237+ , 'simpleblog.installer'
238+ , now()
239+ , 'simpleblog.installer'
240+ , 68
241+ , 'categorymod_complete'
242+ , '[[[_PREFIX]]]'
243+ , 0
244+ , 0
245+ , 'カテゴリ情報変更(完了)'
246+ , ''
247+ , ''
248+ , ''
249+ , ''
250+ , './css/common.css'
251+ , './img/favicon.ico'
252+);
253+INSERT INTO `risoluto_t_headerinfo`
254+(
255+ `ctime`
256+ , `cuser`
257+ , `mtime`
258+ , `muser`
259+ , `header_id`
260+ , `act`
261+ , `cage`
262+ , `robot_index`
263+ , `robot_follow`
264+ , `title`
265+ , `description`
266+ , `keywords`
267+ , `author`
268+ , `javascript`
269+ , `css`
270+ , `favicon`
271+) VALUES (
272+ now()
273+ , 'simpleblog.installer'
274+ , now()
275+ , 'simpleblog.installer'
276+ , 69
277+ , 'categorydel_confirm'
278+ , '[[[_PREFIX]]]'
279+ , 0
280+ , 0
281+ , 'カテゴリ情報削除(確認)'
282+ , ''
283+ , ''
284+ , ''
285+ , ''
286+ , './css/common.css'
287+ , './img/favicon.ico'
288+);
289+INSERT INTO `risoluto_t_headerinfo`
290+(
291+ `ctime`
292+ , `cuser`
293+ , `mtime`
294+ , `muser`
295+ , `header_id`
296+ , `act`
297+ , `cage`
298+ , `robot_index`
299+ , `robot_follow`
300+ , `title`
301+ , `description`
302+ , `keywords`
303+ , `author`
304+ , `javascript`
305+ , `css`
306+ , `favicon`
307+) VALUES (
308+ now()
309+ , 'simpleblog.installer'
310+ , now()
311+ , 'simpleblog.installer'
312+ , 70
313+ , 'categorydel_complete'
314+ , '[[[_PREFIX]]]'
315+ , 0
316+ , 0
317+ , 'カテゴリ記事削除(完了)'
318+ , ''
319+ , ''
320+ , ''
321+ , ''
322+ , './css/common.css'
323+ , './img/favicon.ico'
324+);
325+
326+/* simpleblog関連テーブル */
327+INSERT INTO `[[[_PREFIX]]]_t_category`
328+(
329+ `ctime`
330+ , `cuser`
331+ , `mtime`
332+ , `muser`
333+ , `category_id`
334+ , `category_name`
335+) VALUES (
336+ now()
337+ , 'simpleblog.installer'
338+ , now()
339+ , 'simpleblog.installer'
340+ , 0
341+ , '未分類'
342+);
\ No newline at end of file
--- trunk/upgrade/simpleblog/page01.php (revision 324)
+++ trunk/upgrade/simpleblog/page01.php (revision 325)
@@ -7,7 +7,7 @@
77 * @package risoluto
88 * @author Risoluto Developers
99 * @license http://opensource.org/licenses/bsd-license.php new BSD license
10- * @copyright (C) 2008-2011 Risoluto Developers / All Rights Reserved.
10+ * @copyright (C) 2008-2012 Risoluto Developers / All Rights Reserved.
1111 */
1212
1313 /**
@@ -91,257 +91,354 @@
9191 // 他にチェック対象があれば、この配列に加えてください。
9292 // path: チェック対象となるパス / stat: あるべき状態(writable: 書込可 / readable: 読込可)
9393 // readableを指定したとき、その対象が書込可の場合はNGとなります
94+ clearstatcache();
95+ $tmp_base = RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' );
9496 $this->checklist = array(
9597 array(
96- 'path' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' )
98+ 'path' => $tmp_base
9799 , 'stat' => 'writable'
98- , 'pass' => true
100+ , 'pass' => false
99101 )
100102 , array(
101- 'path' => RISOLUTO_DOCROOT . '/js/'
103+ 'path' => RISOLUTO_DOCROOT . '/js/' . $this->target . '_ckeditor.js'
102104 , 'stat' => 'writable'
103- , 'pass' => true
105+ , 'pass' => ( !file_exists( $tmp_base . '/file/simpleblog_ckeditor.js' ) ? true : false )
104106 )
105107 , array(
106- 'path' => RISOLUTO_DOCROOT . '/js/simpleblog_ckeditor_config.js'
108+ 'path' => RISOLUTO_CONF . $this->target . '_version'
107109 , 'stat' => 'writable'
108- , 'pass' => true
110+ , 'pass' => ( !file_exists( $tmp_base . '/file/simpleblog_version' ) ? true : false )
109111 )
110112 , array(
111- 'path' => RISOLUTO_CONF . 'simpleblog_version'
113+ 'path' => RISOLUTO_CONF . $this->target . '.ini'
112114 , 'stat' => 'writable'
113- , 'pass' => false
115+ , 'pass' => ( !file_exists( $tmp_base . '/file/simpleblog.ini' ) ? true : false )
114116 )
115117 , array(
116- 'path' => RISOLUTO_CONF . 'simpleblog.ini'
118+ 'path' => RISOLUTO_USERLAND . 'admin/menu/00005_' . $this->target . '.tpl'
117119 , 'stat' => 'writable'
118- , 'pass' => true
120+ , 'pass' => ( !file_exists( $tmp_base . '/file/00005_simpleblog.tpl' ) ? true : false )
119121 )
120122 , array(
121- 'path' => RISOLUTO_USERLAND . 'admin/menu/00005_simpleblog.tpl'
123+ 'path' => RISOLUTO_USERLAND . $this->target . '/AUTHORS'
122124 , 'stat' => 'writable'
123- , 'pass' => true
125+ , 'pass' => ( !file_exists( $tmp_base . '/file/AUTHORS' ) ? true : false )
124126 )
125127 , array(
126- 'path' => RISOLUTO_USERLAND . 'simpleblog/AUTHORS'
128+ 'path' => RISOLUTO_USERLAND . $this->target . '/LICENSE'
127129 , 'stat' => 'writable'
128- , 'pass' => true
130+ , 'pass' => ( !file_exists( $tmp_base . '/file/LICENSE' ) ? true : false )
129131 )
130132 , array(
131- 'path' => RISOLUTO_USERLAND . 'simpleblog/LICENSE'
133+ 'path' => RISOLUTO_USERLAND . $this->target . '/blog_menubar.tpl'
132134 , 'stat' => 'writable'
133- , 'pass' => true
135+ , 'pass' => ( !file_exists( $tmp_base . '/file/blog_menubar.tpl' ) ? true : false )
134136 )
135137 , array(
136- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogadd_complete.php'
138+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogadd_complete.php'
137139 , 'stat' => 'writable'
138- , 'pass' => false
140+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogadd_complete.php' ) ? true : false )
139141 )
140142 , array(
141- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogadd_complete.tpl'
143+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogadd_complete.tpl'
142144 , 'stat' => 'writable'
143- , 'pass' => true
145+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogadd_complete.tpl' ) ? true : false )
144146 )
145147 , array(
146- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogadd_confirm.php'
148+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogadd_confirm.php'
147149 , 'stat' => 'writable'
148- , 'pass' => true
150+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogadd_confirm.php' ) ? true : false )
149151 )
150152 , array(
151- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogadd_confirm.tpl'
153+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogadd_confirm.tpl'
152154 , 'stat' => 'writable'
153- , 'pass' => true
155+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogadd_confirm.tpl' ) ? true : false )
154156 )
155157 , array(
156- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogadd_entry.php'
158+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogadd_entry.php'
157159 , 'stat' => 'writable'
158- , 'pass' => true
160+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogadd_entry.php' ) ? true : false )
159161 )
160162 , array(
161- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogadd_entry.tpl'
163+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogadd_entry.tpl'
162164 , 'stat' => 'writable'
163- , 'pass' => true
165+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogadd_entry.tpl' ) ? true : false )
164166 )
165167 , array(
166- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogcomment.php'
168+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogcomment.php'
167169 , 'stat' => 'writable'
168- , 'pass' => false
170+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogcomment.php' ) ? true : false )
169171 )
170172 , array(
171- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogcomment.tpl'
173+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogcomment.tpl'
172174 , 'stat' => 'writable'
173- , 'pass' => true
175+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogcomment.tpl' ) ? true : false )
174176 )
175177 , array(
176- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogdel_complete.php'
178+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogdel_complete.php'
177179 , 'stat' => 'writable'
178- , 'pass' => false
180+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogdel_complete.php' ) ? true : false )
179181 )
180182 , array(
181- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogdel_complete.tpl'
183+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogdel_complete.tpl'
182184 , 'stat' => 'writable'
183- , 'pass' => true
185+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogdel_complete.tpl' ) ? true : false )
184186 )
185187 , array(
186- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogdel_confirm.php'
188+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogdel_confirm.php'
187189 , 'stat' => 'writable'
188- , 'pass' => false
190+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogdel_confirm.php' ) ? true : false )
189191 )
190192 , array(
191- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogdel_confirm.tpl'
193+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogdel_confirm.tpl'
192194 , 'stat' => 'writable'
193- , 'pass' => true
195+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogdel_confirm.tpl' ) ? true : false )
194196 )
195197 , array(
196- 'path' => RISOLUTO_USERLAND . 'simpleblog/bloglist.php'
198+ 'path' => RISOLUTO_USERLAND . $this->target . '/bloglist.php'
197199 , 'stat' => 'writable'
198- , 'pass' => false
200+ , 'pass' => ( !file_exists( $tmp_base . '/file/bloglist.php' ) ? true : false )
199201 )
200202 , array(
201- 'path' => RISOLUTO_USERLAND . 'simpleblog/bloglist.tpl'
203+ 'path' => RISOLUTO_USERLAND . $this->target . '/bloglist.tpl'
202204 , 'stat' => 'writable'
203- , 'pass' => true
205+ , 'pass' => ( !file_exists( $tmp_base . '/file/bloglist.tpl' ) ? true : false )
204206 )
205207 , array(
206- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogmod_complete.php'
208+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogmod_complete.php'
207209 , 'stat' => 'writable'
208- , 'pass' => false
210+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogmod_complete.php' ) ? true : false )
209211 )
210212 , array(
211- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogmod_complete.tpl'
213+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogmod_complete.tpl'
212214 , 'stat' => 'writable'
213- , 'pass' => true
215+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogmod_complete.tpl' ) ? true : false )
214216 )
215217 , array(
216- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogmod_confirm.php'
218+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogmod_confirm.php'
217219 , 'stat' => 'writable'
218- , 'pass' => true
220+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogmod_confirm.php' ) ? true : false )
219221 )
220222 , array(
221- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogmod_confirm.tpl'
223+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogmod_confirm.tpl'
222224 , 'stat' => 'writable'
223- , 'pass' => true
225+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogmod_confirm.tpl' ) ? true : false )
224226 )
225227 , array(
226- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogmod_entry.php'
228+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogmod_entry.php'
227229 , 'stat' => 'writable'
228- , 'pass' => false
230+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogmod_entry.php' ) ? true : false )
229231 )
230232 , array(
231- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogmod_entry.tpl'
233+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogmod_entry.tpl'
232234 , 'stat' => 'writable'
233- , 'pass' => true
235+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogmod_entry.tpl' ) ? true : false )
234236 )
235237 , array(
236- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogview.php'
238+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogview.php'
237239 , 'stat' => 'writable'
238- , 'pass' => false
240+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogview.php' ) ? true : false )
239241 )
240242 , array(
241- 'path' => RISOLUTO_USERLAND . 'simpleblog/blogview.tpl'
243+ 'path' => RISOLUTO_USERLAND . $this->target . '/blogview.tpl'
242244 , 'stat' => 'writable'
243- , 'pass' => true
245+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogview.tpl' ) ? true : false )
244246 )
245247 , array(
246- 'path' => RISOLUTO_USERLAND . 'simpleblog/comment_add.php'
248+ 'path' => RISOLUTO_USERLAND . $this->target . '/categoryadd_complete.php'
247249 , 'stat' => 'writable'
248- , 'pass' => false
250+ , 'pass' => ( !file_exists( $tmp_base . '/file/categoryadd_complete.php' ) ? true : false )
249251 )
250252 , array(
251- 'path' => RISOLUTO_USERLAND . 'simpleblog/comment_del.php'
253+ 'path' => RISOLUTO_USERLAND . $this->target . '/categoryadd_complete.tpl'
252254 , 'stat' => 'writable'
253- , 'pass' => false
255+ , 'pass' => ( !file_exists( $tmp_base . '/file/categoryadd_complete.tpl' ) ? true : false )
254256 )
255257 , array(
256- 'path' => RISOLUTO_USERLAND . 'simpleblog/comment_ng.php'
258+ 'path' => RISOLUTO_USERLAND . $this->target . '/categoryadd_confirm.php'
257259 , 'stat' => 'writable'
258- , 'pass' => false
260+ , 'pass' => ( !file_exists( $tmp_base . '/file/categoryadd_confirm.php' ) ? true : false )
259261 )
260262 , array(
261- 'path' => RISOLUTO_USERLAND . 'simpleblog/comment_notification.tpl'
263+ 'path' => RISOLUTO_USERLAND . $this->target . '/categoryadd_confirm.tpl'
262264 , 'stat' => 'writable'
263- , 'pass' => true
265+ , 'pass' => ( !file_exists( $tmp_base . '/file/categoryadd_confirm.tpl' ) ? true : false )
264266 )
265267 , array(
266- 'path' => RISOLUTO_USERLAND . 'simpleblog/comment_ok.php'
268+ 'path' => RISOLUTO_USERLAND . $this->target . '/categoryadd_entry.php'
267269 , 'stat' => 'writable'
268- , 'pass' => false
270+ , 'pass' => ( !file_exists( $tmp_base . '/file/categoryadd_entry.php' ) ? true : false )
269271 )
270272 , array(
271- 'path' => RISOLUTO_USERLAND . 'simpleblog/commentlist.php'
273+ 'path' => RISOLUTO_USERLAND . $this->target . '/categoryadd_entry.tpl'
272274 , 'stat' => 'writable'
273- , 'pass' => false
275+ , 'pass' => ( !file_exists( $tmp_base . '/file/categoryadd_entry.tpl' ) ? true : false )
274276 )
275277 , array(
276- 'path' => RISOLUTO_USERLAND . 'simpleblog/commentlist.tpl'
278+ 'path' => RISOLUTO_USERLAND . $this->target . '/categorydel_complete.php'
277279 , 'stat' => 'writable'
278- , 'pass' => true
280+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorydel_complete.php' ) ? true : false )
279281 )
280282 , array(
281- 'path' => RISOLUTO_USERLAND . 'simpleblog/rss.php'
283+ 'path' => RISOLUTO_USERLAND . $this->target . '/categorydel_complete.tpl'
282284 , 'stat' => 'writable'
283- , 'pass' => false
285+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorydel_complete.tpl' ) ? true : false )
284286 )
285287 , array(
286- 'path' => RISOLUTO_USERLAND . 'simpleblog/rss_1.0.tpl'
288+ 'path' => RISOLUTO_USERLAND . $this->target . '/categorydel_confirm.php'
287289 , 'stat' => 'writable'
288- , 'pass' => true
290+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorydel_confirm.php' ) ? true : false )
289291 )
290292 , array(
291- 'path' => RISOLUTO_USERLAND . 'simpleblog/rss_2.0.tpl'
293+ 'path' => RISOLUTO_USERLAND . $this->target . '/categorydel_confirm.tpl'
292294 , 'stat' => 'writable'
293- , 'pass' => true
295+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorydel_confirm.tpl' ) ? true : false )
294296 )
295297 , array(
296- 'path' => RISOLUTO_USERLAND . 'simpleblog/simpleblog_base.inc'
298+ 'path' => RISOLUTO_USERLAND . $this->target . '/categorylist.php'
297299 , 'stat' => 'writable'
298- , 'pass' => true
300+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorylist.php' ) ? true : false )
299301 )
300302 , array(
301- 'path' => RISOLUTO_USERLAND . 'simpleblog/simpleblog_posttweet.php'
303+ 'path' => RISOLUTO_USERLAND . $this->target . '/categorylist.tpl'
302304 , 'stat' => 'writable'
303- , 'pass' => true
305+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorylist.tpl' ) ? true : false )
304306 )
305307 , array(
306- 'path' => RISOLUTO_USERLAND . 'simpleblog/simpleblog_posttweet.tpl'
308+ 'path' => RISOLUTO_USERLAND . $this->target . '/categorymod_complete.php'
307309 , 'stat' => 'writable'
308- , 'pass' => true
310+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorymod_complete.php' ) ? true : false )
309311 )
310312 , array(
311- 'path' => RISOLUTO_USERLAND . 'simpleblog/tb.php'
313+ 'path' => RISOLUTO_USERLAND . $this->target . '/categorymod_complete.tpl'
312314 , 'stat' => 'writable'
313- , 'pass' => false
315+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorymod_complete.tpl' ) ? true : false )
314316 )
315317 , array(
316- 'path' => RISOLUTO_USERLAND . 'simpleblog/trackback_del.php'
318+ 'path' => RISOLUTO_USERLAND . $this->target . '/categorymod_confirm.php'
317319 , 'stat' => 'writable'
318- , 'pass' => false
320+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorymod_confirm.php' ) ? true : false )
319321 )
320322 , array(
321- 'path' => RISOLUTO_USERLAND . 'simpleblog/trackback_ng.php'
323+ 'path' => RISOLUTO_USERLAND . $this->target . '/categorymod_confirm.tpl'
322324 , 'stat' => 'writable'
323- , 'pass' => false
325+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorymod_confirm.tpl' ) ? true : false )
324326 )
325327 , array(
326- 'path' => RISOLUTO_USERLAND . 'simpleblog/trackback_notification.tpl'
328+ 'path' => RISOLUTO_USERLAND . $this->target . '/categorymod_entry.php'
327329 , 'stat' => 'writable'
328- , 'pass' => true
330+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorymod_entry.php' ) ? true : false )
329331 )
330332 , array(
331- 'path' => RISOLUTO_USERLAND . 'simpleblog/trackback_ok.php'
333+ 'path' => RISOLUTO_USERLAND . $this->target . '/categorymod_entry.tpl'
332334 , 'stat' => 'writable'
333- , 'pass' => false
335+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorymod_entry.tpl' ) ? true : false )
334336 )
335337 , array(
336- 'path' => RISOLUTO_USERLAND . 'simpleblog/trackbacklist.php'
338+ 'path' => RISOLUTO_USERLAND . $this->target . '/comment_add.php'
337339 , 'stat' => 'writable'
338- , 'pass' => false
340+ , 'pass' => ( !file_exists( $tmp_base . '/file/comment_add.php' ) ? true : false )
339341 )
340342 , array(
341- 'path' => RISOLUTO_USERLAND . 'simpleblog/trackbacklist.tpl'
343+ 'path' => RISOLUTO_USERLAND . $this->target . '/comment_del.php'
342344 , 'stat' => 'writable'
343- , 'pass' => true
345+ , 'pass' => ( !file_exists( $tmp_base . '/file/comment_del.php' ) ? true : false )
344346 )
347+ , array(
348+ 'path' => RISOLUTO_USERLAND . $this->target . '/comment_ng.php'
349+ , 'stat' => 'writable'
350+ , 'pass' => ( !file_exists( $tmp_base . '/file/comment_ng.php' ) ? true : false )
351+ )
352+ , array(
353+ 'path' => RISOLUTO_USERLAND . $this->target . '/comment_notification.tpl'
354+ , 'stat' => 'writable'
355+ , 'pass' => ( !file_exists( $tmp_base . '/file/comment_notification.tpl' ) ? true : false )
356+ )
357+ , array(
358+ 'path' => RISOLUTO_USERLAND . $this->target . '/comment_ok.php'
359+ , 'stat' => 'writable'
360+ , 'pass' => ( !file_exists( $tmp_base . '/file/comment_ok.php' ) ? true : false )
361+ )
362+ , array(
363+ 'path' => RISOLUTO_USERLAND . $this->target . '/commentlist.php'
364+ , 'stat' => 'writable'
365+ , 'pass' => ( !file_exists( $tmp_base . '/file/commentlist.php' ) ? true : false )
366+ )
367+ , array(
368+ 'path' => RISOLUTO_USERLAND . $this->target . '/commentlist.tpl'
369+ , 'stat' => 'writable'
370+ , 'pass' => ( !file_exists( $tmp_base . '/file/commentlist.tpl' ) ? true : false )
371+ )
372+ , array(
373+ 'path' => RISOLUTO_USERLAND . $this->target . '/rss.php'
374+ , 'stat' => 'writable'
375+ , 'pass' => ( !file_exists( $tmp_base . '/file/rss.php' ) ? true : false )
376+ )
377+ , array(
378+ 'path' => RISOLUTO_USERLAND . $this->target . '/rss_1.0.tpl'
379+ , 'stat' => 'writable'
380+ , 'pass' => ( !file_exists( $tmp_base . '/file/rss_1.0.tpl' ) ? true : false )
381+ )
382+ , array(
383+ 'path' => RISOLUTO_USERLAND . $this->target . '/rss_2.0.tpl'
384+ , 'stat' => 'writable'
385+ , 'pass' => ( !file_exists( $tmp_base . '/file/rss_2.0.tpl' ) ? true : false )
386+ )
387+ , array(
388+ 'path' => RISOLUTO_USERLAND . $this->target . '/rss_2.0_ya.tpl'
389+ , 'stat' => 'writable'
390+ , 'pass' => ( !file_exists( $tmp_base . '/file/rss_2.0_ya.tpl' ) ? true : false )
391+ )
392+ , array(
393+ 'path' => RISOLUTO_USERLAND . $this->target . '/simpleblog_base.inc'
394+ , 'stat' => 'writable'
395+ , 'pass' => ( !file_exists( $tmp_base . '/file/simpleblog_base.inc' ) ? true : false )
396+ )
397+ , array(
398+ 'path' => RISOLUTO_USERLAND . $this->target . '/simpleblog_posttweet.php'
399+ , 'stat' => 'writable'
400+ , 'pass' => ( !file_exists( $tmp_base . '/file/simpleblog_posttweet.php' ) ? true : false )
401+ )
402+ , array(
403+ 'path' => RISOLUTO_USERLAND . $this->target . '/simpleblog_posttweet.tpl'
404+ , 'stat' => 'writable'
405+ , 'pass' => ( !file_exists( $tmp_base . '/file/simpleblog_posttweet.tpl' ) ? true : false )
406+ )
407+ , array(
408+ 'path' => RISOLUTO_USERLAND . $this->target . '/tb.php'
409+ , 'stat' => 'writable'
410+ , 'pass' => ( !file_exists( $tmp_base . '/file/tb.php' ) ? true : false )
411+ )
412+ , array(
413+ 'path' => RISOLUTO_USERLAND . $this->target . '/trackback_del.php'
414+ , 'stat' => 'writable'
415+ , 'pass' => ( !file_exists( $tmp_base . '/file/trackback_del.php' ) ? true : false )
416+ )
417+ , array(
418+ 'path' => RISOLUTO_USERLAND . $this->target . '/trackback_ng.php'
419+ , 'stat' => 'writable'
420+ , 'pass' => ( !file_exists( $tmp_base . '/file/trackback_ng.php' ) ? true : false )
421+ )
422+ , array(
423+ 'path' => RISOLUTO_USERLAND . $this->target . '/trackback_notification.tpl'
424+ , 'stat' => 'writable'
425+ , 'pass' => ( !file_exists( $tmp_base . '/file/trackback_notification.tpl' ) ? true : false )
426+ )
427+ , array(
428+ 'path' => RISOLUTO_USERLAND . $this->target . '/trackback_ok.php'
429+ , 'stat' => 'writable'
430+ , 'pass' => ( !file_exists( $tmp_base . '/file/trackback_ok.php' ) ? true : false )
431+ )
432+ , array(
433+ 'path' => RISOLUTO_USERLAND . $this->target . '/trackbacklist.php'
434+ , 'stat' => 'writable'
435+ , 'pass' => ( !file_exists( $tmp_base . '/file/trackbacklist.php' ) ? true : false )
436+ )
437+ , array(
438+ 'path' => RISOLUTO_USERLAND . $this->target . '/trackbacklist.tpl'
439+ , 'stat' => 'writable'
440+ , 'pass' => ( !file_exists( $tmp_base . '/file/trackbacklist.tpl' ) ? true : false )
441+ )
345442 );
346443
347444 // チェックメソッドを呼び出し、結果を整形
--- trunk/upgrade/simpleblog/target.txt (nonexistent)
+++ trunk/upgrade/simpleblog/target.txt (revision 325)
@@ -0,0 +1 @@
1+simpleblog
\ No newline at end of file
--- trunk/upgrade/simpleblog/page02.php (revision 324)
+++ trunk/upgrade/simpleblog/page02.php (revision 325)
@@ -7,7 +7,7 @@
77 * @package risoluto
88 * @author Risoluto Developers
99 * @license http://opensource.org/licenses/bsd-license.php new BSD license
10- * @copyright (C) 2008-2011 Risoluto Developers / All Rights Reserved.
10+ * @copyright (C) 2008-2012 Risoluto Developers / All Rights Reserved.
1111 */
1212
1313 /**
--- trunk/upgrade/simpleblog/page03.php (revision 324)
+++ trunk/upgrade/simpleblog/page03.php (revision 325)
@@ -7,7 +7,7 @@
77 * @package risoluto
88 * @author Risoluto Developers
99 * @license http://opensource.org/licenses/bsd-license.php new BSD license
10- * @copyright (C) 2008-2011 Risoluto Developers / All Rights Reserved.
10+ * @copyright (C) 2008-2012 Risoluto Developers / All Rights Reserved.
1111 */
1212
1313 /**
--- trunk/upgrade/simpleblog/finish.php (revision 324)
+++ trunk/upgrade/simpleblog/finish.php (revision 325)
@@ -7,7 +7,7 @@
77 * @package risoluto
88 * @author Risoluto Developers
99 * @license http://opensource.org/licenses/bsd-license.php new BSD license
10- * @copyright (C) 2008-2011 Risoluto Developers / All Rights Reserved.
10+ * @copyright (C) 2008-2012 Risoluto Developers / All Rights Reserved.
1111 */
1212
1313 /**
--- trunk/upgrade/simpleblog/page04.php (revision 324)
+++ trunk/upgrade/simpleblog/page04.php (revision 325)
@@ -7,7 +7,7 @@
77 * @package risoluto
88 * @author Risoluto Developers
99 * @license http://opensource.org/licenses/bsd-license.php new BSD license
10- * @copyright (C) 2008-2011 Risoluto Developers / All Rights Reserved.
10+ * @copyright (C) 2008-2012 Risoluto Developers / All Rights Reserved.
1111 */
1212
1313 /**
@@ -101,34 +101,36 @@
101101 // チェック対象となるDSNをセットする
102102 // 他にチェック対象があれば、この配列に加えてください。
103103 // section: セクション名 / key: キー名
104+ clearstatcache();
105+ $tmp_base = RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' );
104106 $this->checklist = array(
105107 array(
106108 'section' => 'DBS'
107109 , 'key' => 'DEFAULT_DSN'
108110 , 'description' => '既存テーブルの削除'
109- , 'path' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/sql/upgrade_drop.sql'
110- , 'pass' => true
111+ , 'path' => $tmp_base . '/sql/upgrade_drop.sql'
112+ , 'pass' => ( !file_exists( $tmp_base . '/sql/upgrade_drop.sql' ) or !filesize( $tmp_base . '/sql/upgrade_drop.sql' ) ? true : false )
111113 )
112114 , array(
113115 'section' => 'DBS'
114116 , 'key' => 'DEFAULT_DSN'
115117 , 'description' => 'テーブルの新規追加'
116- , 'path' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/sql/upgrade_create.sql'
117- , 'pass' => true
118+ , 'path' => $tmp_base . '/sql/upgrade_create.sql'
119+ , 'pass' => ( !file_exists( $tmp_base . '/sql/upgrade_create.sql' ) or !filesize( $tmp_base . '/sql/upgrade_create.sql' ) ? true : false )
118120 )
119121 , array(
120122 'section' => 'DBS'
121123 , 'key' => 'DEFAULT_DSN'
122124 , 'description' => '既存テーブルの変更'
123- , 'path' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/sql/upgrade_modify.sql'
124- , 'pass' => true
125+ , 'path' => $tmp_base . '/sql/upgrade_modify.sql'
126+ , 'pass' => ( !file_exists( $tmp_base . '/sql/upgrade_modify.sql' ) or !filesize( $tmp_base . '/sql/upgrade_modify.sql' ) ? true : false )
125127 )
126128 , array(
127129 'section' => 'DBS'
128130 , 'key' => 'DEFAULT_DSN'
129131 , 'description' => 'データの操作'
130- , 'path' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/sql/upgrade_data.sql'
131- , 'pass' => true
132+ , 'path' => $tmp_base . '/sql/upgrade_data.sql'
133+ , 'pass' => ( !file_exists( $tmp_base . '/sql/upgrade_data.sql' ) or !filesize( $tmp_base . '/sql/upgrade_data.sql' ) ? true : false )
132134 )
133135 );
134136
--- trunk/upgrade/simpleblog/page05.php (revision 324)
+++ trunk/upgrade/simpleblog/page05.php (revision 325)
@@ -7,7 +7,7 @@
77 * @package risoluto
88 * @author Risoluto Developers
99 * @license http://opensource.org/licenses/bsd-license.php new BSD license
10- * @copyright (C) 2008-2011 Risoluto Developers / All Rights Reserved.
10+ * @copyright (C) 2008-2012 Risoluto Developers / All Rights Reserved.
1111 */
1212
1313 /**
@@ -91,307 +91,429 @@
9191 // 他に配置する対象があれば、この配列に加えてください。
9292 // target: 対象ファイル名 / destination: 配置先のパス/パーミッション/オーナ名/グループ名) /
9393 // operation: 操作の内容(copy/move/unlink/mkdir/rmdir)
94+ clearstatcache();
95+ $tmp_base = RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' );
9496 $this->filelist = array(
9597 array(
96- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/simpleblog_ckeditor.js'
97- , 'destination' => RISOLUTO_DOCROOT . '/js/simpleblog_ckeditor.js'
98+ 'target' => $tmp_base . '/file/simpleblog_ckeditor.js'
99+ , 'destination' => RISOLUTO_DOCROOT . '/js/' . $this->target . '_ckeditor.js'
98100 , 'operation' => 'copy'
99- , 'pass' => true
101+ , 'pass' => ( !file_exists( $tmp_base . '/file/simpleblog_ckeditor.js' ) ? true : false )
100102 )
101103 , array(
102- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/simpleblog_version'
103- , 'destination' => RISOLUTO_CONF . 'simpleblog_version'
104+ 'target' => $tmp_base . '/file/simpleblog_version'
105+ , 'destination' => RISOLUTO_CONF . $this->target . '_version'
104106 , 'operation' => 'copy'
105- , 'pass' => false
107+ , 'pass' => ( !file_exists( $tmp_base . '/file/simpleblog_version' ) ? true : false )
106108 )
107109 , array(
108- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/simpleblog.ini'
109- , 'destination' => RISOLUTO_CONF . 'simpleblog.ini'
110+ 'target' => $tmp_base . '/file/simpleblog.ini'
111+ , 'destination' => RISOLUTO_CONF . $this->target . '.ini'
110112 , 'operation' => 'copy'
111- , 'pass' => true
113+ , 'pass' => ( !file_exists( $tmp_base . '/file/simpleblog.ini' ) ? true : false )
112114 )
113115 , array(
114- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/00005_simpleblog.tpl'
115- , 'destination' => RISOLUTO_USERLAND . 'admin/menu/00005_simpleblog.tpl'
116+ 'target' => $tmp_base . '/file/00005_simpleblog.tpl'
117+ , 'destination' => RISOLUTO_USERLAND . 'admin/menu/00005_' . $this->target . '.tpl'
116118 , 'operation' => 'copy'
117- , 'pass' => true
119+ , 'pass' => ( !file_exists( $tmp_base . '/file/00005_simpleblog.tpl' ) ? true : false )
118120 )
119121 , array(
120- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/AUTHORS'
121- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/AUTHORS'
122+ 'target' => $tmp_base . '/file/AUTHORS'
123+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/AUTHORS'
122124 , 'operation' => 'copy'
123- , 'pass' => true
125+ , 'pass' => ( !file_exists( $tmp_base . '/file/AUTHORS' ) ? true : false )
124126 )
125127 , array(
126- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/LICENSE'
127- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/LICENSE'
128+ 'target' => $tmp_base . '/file/LICENSE'
129+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/LICENSE'
128130 , 'operation' => 'copy'
129- , 'pass' => true
131+ , 'pass' => ( !file_exists( $tmp_base . '/file/LICENSE' ) ? true : false )
130132 )
131133 , array(
132- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogadd_complete.php'
133- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogadd_complete.php'
134+ 'target' => $tmp_base . '/file/blog_menubar.tpl'
135+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blog_menubar.tpl'
134136 , 'operation' => 'copy'
135- , 'pass' => false
137+ , 'pass' => ( !file_exists( $tmp_base . '/file/blog_menubar.tpl' ) ? true : false )
136138 )
137139 , array(
138- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogadd_complete.tpl'
139- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogadd_complete.tpl'
140+ 'target' => $tmp_base . '/file/blogadd_complete.php'
141+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogadd_complete.php'
140142 , 'operation' => 'copy'
141- , 'pass' => true
143+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogadd_complete.php' ) ? true : false )
142144 )
143145 , array(
144- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogadd_confirm.php'
145- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogadd_confirm.php'
146+ 'target' => $tmp_base . '/file/blogadd_complete.tpl'
147+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogadd_complete.tpl'
146148 , 'operation' => 'copy'
147- , 'pass' => true
149+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogadd_complete.tpl' ) ? true : false )
148150 )
149151 , array(
150- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogadd_confirm.tpl'
151- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogadd_confirm.tpl'
152+ 'target' => $tmp_base . '/file/blogadd_confirm.php'
153+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogadd_confirm.php'
152154 , 'operation' => 'copy'
153- , 'pass' => true
155+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogadd_confirm.php' ) ? true : false )
154156 )
155157 , array(
156- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogadd_entry.php'
157- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogadd_entry.php'
158+ 'target' => $tmp_base . '/file/blogadd_confirm.tpl'
159+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogadd_confirm.tpl'
158160 , 'operation' => 'copy'
159- , 'pass' => true
161+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogadd_confirm.tpl' ) ? true : false )
160162 )
161163 , array(
162- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogadd_entry.tpl'
163- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogadd_entry.tpl'
164+ 'target' => $tmp_base . '/file/blogadd_entry.php'
165+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogadd_entry.php'
164166 , 'operation' => 'copy'
165- , 'pass' => true
167+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogadd_entry.php' ) ? true : false )
166168 )
167169 , array(
168- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogcomment.php'
169- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogcomment.php'
170+ 'target' => $tmp_base . '/file/blogadd_entry.tpl'
171+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogadd_entry.tpl'
170172 , 'operation' => 'copy'
171- , 'pass' => false
173+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogadd_entry.tpl' ) ? true : false )
172174 )
173175 , array(
174- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogcomment.tpl'
175- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogcomment.tpl'
176+ 'target' => $tmp_base . '/file/blogcomment.php'
177+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogcomment.php'
176178 , 'operation' => 'copy'
177- , 'pass' => true
179+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogcomment.php' ) ? true : false )
178180 )
179181 , array(
180- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogdel_complete.php'
181- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogdel_complete.php'
182+ 'target' => $tmp_base . '/file/blogcomment.tpl'
183+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogcomment.tpl'
182184 , 'operation' => 'copy'
183- , 'pass' => false
185+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogcomment.tpl' ) ? true : false )
184186 )
185187 , array(
186- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogdel_complete.tpl'
187- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogdel_complete.tpl'
188+ 'target' => $tmp_base . '/file/blogdel_complete.php'
189+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogdel_complete.php'
188190 , 'operation' => 'copy'
189- , 'pass' => true
191+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogdel_complete.php' ) ? true : false )
190192 )
191193 , array(
192- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogdel_confirm.php'
193- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogdel_confirm.php'
194+ 'target' => $tmp_base . '/file/blogdel_complete.tpl'
195+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogdel_complete.tpl'
194196 , 'operation' => 'copy'
195- , 'pass' => false
197+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogdel_complete.tpl' ) ? true : false )
196198 )
197199 , array(
198- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogdel_confirm.tpl'
199- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogdel_confirm.tpl'
200+ 'target' => $tmp_base . '/file/blogdel_confirm.php'
201+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogdel_confirm.php'
200202 , 'operation' => 'copy'
201- , 'pass' => true
203+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogdel_confirm.php' ) ? true : false )
202204 )
203205 , array(
204- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/bloglist.php'
205- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/bloglist.php'
206+ 'target' => $tmp_base . '/file/blogdel_confirm.tpl'
207+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogdel_confirm.tpl'
206208 , 'operation' => 'copy'
207- , 'pass' => false
209+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogdel_confirm.tpl' ) ? true : false )
208210 )
209211 , array(
210- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/bloglist.tpl'
211- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/bloglist.tpl'
212+ 'target' => $tmp_base . '/file/bloglist.php'
213+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/bloglist.php'
212214 , 'operation' => 'copy'
213- , 'pass' => true
215+ , 'pass' => ( !file_exists( $tmp_base . '/file/bloglist.php' ) ? true : false )
214216 )
215217 , array(
216- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogmod_complete.php'
217- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogmod_complete.php'
218+ 'target' => $tmp_base . '/file/bloglist.tpl'
219+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/bloglist.tpl'
218220 , 'operation' => 'copy'
219- , 'pass' => false
221+ , 'pass' => ( !file_exists( $tmp_base . '/file/bloglist.tpl' ) ? true : false )
220222 )
221223 , array(
222- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogmod_complete.tpl'
223- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogmod_complete.tpl'
224+ 'target' => $tmp_base . '/file/blogmod_complete.php'
225+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogmod_complete.php'
224226 , 'operation' => 'copy'
225- , 'pass' => true
227+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogmod_complete.php' ) ? true : false )
226228 )
227229 , array(
228- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogmod_confirm.php'
229- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogmod_confirm.php'
230+ 'target' => $tmp_base . '/file/blogmod_complete.tpl'
231+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogmod_complete.tpl'
230232 , 'operation' => 'copy'
231- , 'pass' => true
233+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogmod_complete.tpl' ) ? true : false )
232234 )
233235 , array(
234- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogmod_confirm.tpl'
235- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogmod_confirm.tpl'
236+ 'target' => $tmp_base . '/file/blogmod_confirm.php'
237+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogmod_confirm.php'
236238 , 'operation' => 'copy'
237- , 'pass' => true
239+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogmod_confirm.php' ) ? true : false )
238240 )
239241 , array(
240- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogmod_entry.php'
241- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogmod_entry.php'
242+ 'target' => $tmp_base . '/file/blogmod_confirm.tpl'
243+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogmod_confirm.tpl'
242244 , 'operation' => 'copy'
243- , 'pass' => false
245+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogmod_confirm.tpl' ) ? true : false )
244246 )
245247 , array(
246- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogmod_entry.tpl'
247- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogmod_entry.tpl'
248+ 'target' => $tmp_base . '/file/blogmod_entry.php'
249+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogmod_entry.php'
248250 , 'operation' => 'copy'
249- , 'pass' => true
251+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogmod_entry.php' ) ? true : false )
250252 )
251253 , array(
252- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogview.php'
253- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogview.php'
254+ 'target' => $tmp_base . '/file/blogmod_entry.tpl'
255+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogmod_entry.tpl'
254256 , 'operation' => 'copy'
255- , 'pass' => false
257+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogmod_entry.tpl' ) ? true : false )
256258 )
257259 , array(
258- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogview.tpl'
259- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogview.tpl'
260+ 'target' => $tmp_base . '/file/blogview.php'
261+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogview.php'
260262 , 'operation' => 'copy'
261- , 'pass' => true
263+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogview.php' ) ? true : false )
262264 )
263265 , array(
264- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogview.php'
265- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogview.php'
266+ 'target' => $tmp_base . '/file/blogview.tpl'
267+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogview.tpl'
266268 , 'operation' => 'copy'
267- , 'pass' => true
269+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogview.tpl' ) ? true : false )
268270 )
269271 , array(
270- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/blogview.tpl'
271- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/blogview.tpl'
272+ 'target' => $tmp_base . '/file/blogview.php'
273+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogview.php'
272274 , 'operation' => 'copy'
273- , 'pass' => true
275+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogview.php' ) ? true : false )
274276 )
275277 , array(
276- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/comment_add.php'
277- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/comment_add.php'
278+ 'target' => $tmp_base . '/file/categoryadd_complete.tpl'
279+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categoryadd_complete.tpl'
278280 , 'operation' => 'copy'
279- , 'pass' => false
281+ , 'pass' => ( !file_exists( $tmp_base . '/file/categoryadd_complete.tpl' ) ? true : false )
280282 )
281283 , array(
282- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/comment_del.php'
283- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/comment_del.php'
284+ 'target' => $tmp_base . '/file/categoryadd_complete.php'
285+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categoryadd_complete.php'
284286 , 'operation' => 'copy'
285- , 'pass' => false
287+ , 'pass' => ( !file_exists( $tmp_base . '/file/categoryadd_complete.php' ) ? true : false )
286288 )
287289 , array(
288- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/comment_ng.php'
289- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/comment_ng.php'
290+ 'target' => $tmp_base . '/file/categoryadd_confirm.tpl'
291+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categoryadd_confirm.tpl'
290292 , 'operation' => 'copy'
291- , 'pass' => false
293+ , 'pass' => ( !file_exists( $tmp_base . '/file/categoryadd_confirm.tpl' ) ? true : false )
292294 )
293295 , array(
294- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/comment_notification.tpl'
295- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/comment_notification.tpl'
296+ 'target' => $tmp_base . '/file/categoryadd_confirm.php'
297+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categoryadd_confirm.php'
296298 , 'operation' => 'copy'
297- , 'pass' => true
299+ , 'pass' => ( !file_exists( $tmp_base . '/file/categoryadd_confirm.php' ) ? true : false )
298300 )
299301 , array(
300- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/comment_ok.php'
301- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/comment_ok.php'
302+ 'target' => $tmp_base . '/file/categoryadd_entry.tpl'
303+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categoryadd_entry.tpl'
302304 , 'operation' => 'copy'
303- , 'pass' => false
305+ , 'pass' => ( !file_exists( $tmp_base . '/file/categoryadd_entry.tpl' ) ? true : false )
304306 )
305307 , array(
306- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/commentlist.php'
307- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/commentlist.php'
308+ 'target' => $tmp_base . '/file/categoryadd_entry.php'
309+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categoryadd_entry.php'
308310 , 'operation' => 'copy'
309- , 'pass' => false
311+ , 'pass' => ( !file_exists( $tmp_base . '/file/categoryadd_entry.php' ) ? true : false )
310312 )
311313 , array(
312- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/commentlist.tpl'
313- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/commentlist.tpl'
314+ 'target' => $tmp_base . '/file/categorydel_complete.tpl'
315+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categorydel_complete.tpl'
314316 , 'operation' => 'copy'
315- , 'pass' => true
317+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorydel_complete.tpl' ) ? true : false )
316318 )
317319 , array(
318- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/rss.php'
319- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/rss.php'
320+ 'target' => $tmp_base . '/file/categorydel_complete.php'
321+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categorydel_complete.php'
320322 , 'operation' => 'copy'
321- , 'pass' => false
323+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorydel_complete.php' ) ? true : false )
322324 )
323325 , array(
324- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/rss_1.0.tpl'
325- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/rss_1.0.tpl'
326+ 'target' => $tmp_base . '/file/categorydel_confirm.tpl'
327+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categorydel_confirm.tpl'
326328 , 'operation' => 'copy'
327- , 'pass' => true
329+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorydel_confirm.tpl' ) ? true : false )
328330 )
329331 , array(
330- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/rss_2.0.tpl'
331- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/rss_2.0.tpl'
332+ 'target' => $tmp_base . '/file/categorydel_confirm.php'
333+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categorydel_confirm.php'
332334 , 'operation' => 'copy'
333- , 'pass' => true
335+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorydel_confirm.php' ) ? true : false )
334336 )
335337 , array(
336- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/simpleblog_base.inc'
337- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/simpleblog_base.inc'
338+ 'target' => $tmp_base . '/file/categorylist.tpl'
339+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categorylist.tpl'
338340 , 'operation' => 'copy'
339- , 'pass' => true
341+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorylist.tpl' ) ? true : false )
340342 )
341343 , array(
342- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/simpleblog_posttweet.php'
343- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/simpleblog_posttweet.php'
344+ 'target' => $tmp_base . '/file/categorylist.php'
345+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categorylist.php'
344346 , 'operation' => 'copy'
345- , 'pass' => true
347+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorylist.php' ) ? true : false )
346348 )
347349 , array(
348- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/simpleblog_posttweet.tpl'
349- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/simpleblog_posttweet.tpl'
350+ 'target' => $tmp_base . '/file/categorymod_complete.tpl'
351+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categorymod_complete.tpl'
350352 , 'operation' => 'copy'
351- , 'pass' => true
353+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorymod_complete.tpl' ) ? true : false )
352354 )
353355 , array(
354- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/tb.php'
355- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/tb.php'
356+ 'target' => $tmp_base . '/file/categorymod_complete.php'
357+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categorymod_complete.php'
356358 , 'operation' => 'copy'
357- , 'pass' => false
359+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorymod_complete.php' ) ? true : false )
358360 )
359361 , array(
360- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/trackback_del.php'
361- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/trackback_del.php'
362+ 'target' => $tmp_base . '/file/categorymod_confirm.tpl'
363+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categorymod_confirm.tpl'
362364 , 'operation' => 'copy'
363- , 'pass' => false
365+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorymod_confirm.tpl' ) ? true : false )
364366 )
365367 , array(
366- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/trackback_ng.php'
367- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/trackback_ng.php'
368+ 'target' => $tmp_base . '/file/categorymod_confirm.php'
369+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categorymod_confirm.php'
368370 , 'operation' => 'copy'
369- , 'pass' => false
371+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorymod_confirm.php' ) ? true : false )
370372 )
371373 , array(
372- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/trackback_notification.tpl'
373- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/trackback_notification.tpl'
374+ 'target' => $tmp_base . '/file/categorymod_entry.tpl'
375+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categorymod_entry.tpl'
374376 , 'operation' => 'copy'
375- , 'pass' => true
377+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorymod_entry.tpl' ) ? true : false )
376378 )
377379 , array(
378- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/trackback_ok.php'
379- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/trackback_ok.php'
380+ 'target' => $tmp_base . '/file/categorymod_entry.php'
381+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/categorymod_entry.php'
380382 , 'operation' => 'copy'
381- , 'pass' => false
383+ , 'pass' => ( !file_exists( $tmp_base . '/file/categorymod_entry.php' ) ? true : false )
382384 )
383385 , array(
384- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/trackbacklist.php'
385- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/trackbacklist.php'
386+ 'target' => $tmp_base . '/file/blogview.tpl'
387+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/blogview.tpl'
386388 , 'operation' => 'copy'
387- , 'pass' => false
389+ , 'pass' => ( !file_exists( $tmp_base . '/file/blogview.tpl' ) ? true : false )
388390 )
389391 , array(
390- 'target' => RISOLUTO_USERLAND . $this->obj_sess->sessLoad( 'currentcage' ) . '/file/trackbacklist.tpl'
391- , 'destination' => RISOLUTO_USERLAND . 'simpleblog/trackbacklist.tpl'
392+ 'target' => $tmp_base . '/file/comment_add.php'
393+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/comment_add.php'
392394 , 'operation' => 'copy'
393- , 'pass' => true
395+ , 'pass' => ( !file_exists( $tmp_base . '/file/comment_add.php' ) ? true : false )
394396 )
397+ , array(
398+ 'target' => $tmp_base . '/file/comment_del.php'
399+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/comment_del.php'
400+ , 'operation' => 'copy'
401+ , 'pass' => ( !file_exists( $tmp_base . '/file/comment_del.php' ) ? true : false )
402+ )
403+ , array(
404+ 'target' => $tmp_base . '/file/comment_ng.php'
405+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/comment_ng.php'
406+ , 'operation' => 'copy'
407+ , 'pass' => ( !file_exists( $tmp_base . '/file/comment_ng.php' ) ? true : false )
408+ )
409+ , array(
410+ 'target' => $tmp_base . '/file/comment_notification.tpl'
411+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/comment_notification.tpl'
412+ , 'operation' => 'copy'
413+ , 'pass' => ( !file_exists( $tmp_base . '/file/comment_notification.tpl' ) ? true : false )
414+ )
415+ , array(
416+ 'target' => $tmp_base . '/file/comment_ok.php'
417+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/comment_ok.php'
418+ , 'operation' => 'copy'
419+ , 'pass' => ( !file_exists( $tmp_base . '/file/comment_ok.php' ) ? true : false )
420+ )
421+ , array(
422+ 'target' => $tmp_base . '/file/commentlist.php'
423+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/commentlist.php'
424+ , 'operation' => 'copy'
425+ , 'pass' => ( !file_exists( $tmp_base . '/file/commentlist.php' ) ? true : false )
426+ )
427+ , array(
428+ 'target' => $tmp_base . '/file/commentlist.tpl'
429+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/commentlist.tpl'
430+ , 'operation' => 'copy'
431+ , 'pass' => ( !file_exists( $tmp_base . '/file/commentlist.tpl' ) ? true : false )
432+ )
433+ , array(
434+ 'target' => $tmp_base . '/file/rss.php'
435+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/rss.php'
436+ , 'operation' => 'copy'
437+ , 'pass' => ( !file_exists( $tmp_base . '/file/rss.php' ) ? true : false )
438+ )
439+ , array(
440+ 'target' => $tmp_base . '/file/rss_1.0.tpl'
441+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/rss_1.0.tpl'
442+ , 'operation' => 'copy'
443+ , 'pass' => ( !file_exists( $tmp_base . '/file/rss_1.0.tpl' ) ? true : false )
444+ )
445+ , array(
446+ 'target' => $tmp_base . '/file/rss_2.0.tpl'
447+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/rss_2.0.tpl'
448+ , 'operation' => 'copy'
449+ , 'pass' => ( !file_exists( $tmp_base . '/file/rss_2.0.tpl' ) ? true : false )
450+ )
451+ , array(
452+ 'target' => $tmp_base . '/file/rss_2.0_ya.tpl'
453+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/rss_2.0_ya.tpl'
454+ , 'operation' => 'copy'
455+ , 'pass' => ( !file_exists( $tmp_base . '/file/rss_2.0_ya.tpl' ) ? true : false )
456+ )
457+ , array(
458+ 'target' => $tmp_base . '/file/simpleblog_base.inc'
459+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/simpleblog_base.inc'
460+ , 'operation' => 'copy'
461+ , 'pass' => ( !file_exists( $tmp_base . '/file/simpleblog_base.inc' ) ? true : false )
462+ )
463+ , array(
464+ 'target' => $tmp_base . '/file/simpleblog_posttweet.php'
465+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/simpleblog_posttweet.php'
466+ , 'operation' => 'copy'
467+ , 'pass' => ( !file_exists( $tmp_base . '/file/simpleblog_posttweet.php' ) ? true : false )
468+ )
469+ , array(
470+ 'target' => $tmp_base . '/file/simpleblog_posttweet.tpl'
471+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/simpleblog_posttweet.tpl'
472+ , 'operation' => 'copy'
473+ , 'pass' => ( !file_exists( $tmp_base . '/file/simpleblog_posttweet.tpl' ) ? true : false )
474+ )
475+ , array(
476+ 'target' => $tmp_base . '/file/tb.php'
477+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/tb.php'
478+ , 'operation' => 'copy'
479+ , 'pass' => ( !file_exists( $tmp_base . '/file/tb.php' ) ? true : false )
480+ )
481+ , array(
482+ 'target' => $tmp_base . '/file/trackback_del.php'
483+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/trackback_del.php'
484+ , 'operation' => 'copy'
485+ , 'pass' => ( !file_exists( $tmp_base . '/file/trackback_del.php' ) ? true : false )
486+ )
487+ , array(
488+ 'target' => $tmp_base . '/file/trackback_ng.php'
489+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/trackback_ng.php'
490+ , 'operation' => 'copy'
491+ , 'pass' => ( !file_exists( $tmp_base . '/file/trackback_ng.php' ) ? true : false )
492+ )
493+ , array(
494+ 'target' => $tmp_base . '/file/trackback_notification.tpl'
495+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/trackback_notification.tpl'
496+ , 'operation' => 'copy'
497+ , 'pass' => ( !file_exists( $tmp_base . '/file/trackback_notification.tpl' ) ? true : false )
498+ )
499+ , array(
500+ 'target' => $tmp_base . '/file/trackback_ok.php'
501+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/trackback_ok.php'
502+ , 'operation' => 'copy'
503+ , 'pass' => ( !file_exists( $tmp_base . '/file/trackback_ok.php' ) ? true : false )
504+ )
505+ , array(
506+ 'target' => $tmp_base . '/file/trackbacklist.php'
507+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/trackbacklist.php'
508+ , 'operation' => 'copy'
509+ , 'pass' => ( !file_exists( $tmp_base . '/file/trackbacklist.php' ) ? true : false )
510+ )
511+ , array(
512+ 'target' => $tmp_base . '/file/trackbacklist.tpl'
513+ , 'destination' => RISOLUTO_USERLAND . $this->target . '/trackbacklist.tpl'
514+ , 'operation' => 'copy'
515+ , 'pass' => ( !file_exists( $tmp_base . '/file/trackbacklist.tpl' ) ? true : false )
516+ )
395517 );
396518
397519 // 処理を行う
--- trunk/upgrade/simpleblog/page06.php (revision 324)
+++ trunk/upgrade/simpleblog/page06.php (revision 325)
@@ -7,7 +7,7 @@
77 * @package risoluto
88 * @author Risoluto Developers
99 * @license http://opensource.org/licenses/bsd-license.php new BSD license
10- * @copyright (C) 2008-2011 Risoluto Developers / All Rights Reserved.
10+ * @copyright (C) 2008-2012 Risoluto Developers / All Rights Reserved.
1111 */
1212
1313 /**
--- trunk/upgrade/simpleblog/upgrade.php (revision 324)
+++ trunk/upgrade/simpleblog/upgrade.php (revision 325)
@@ -7,7 +7,7 @@
77 * @package risoluto
88 * @author Risoluto Developers
99 * @license http://opensource.org/licenses/bsd-license.php new BSD license
10- * @copyright (C) 2008-2011 Risoluto Developers / All Rights Reserved.
10+ * @copyright (C) 2008-2012 Risoluto Developers / All Rights Reserved.
1111 */
1212
1313 /**
@@ -65,7 +65,7 @@
6565 public function model()
6666 {
6767 // ディレクトリ名からバージョン情報を取得する
68- $this->versioninfo = explode( '_to_', str_replace( 'upgrade/', '', $this->obj_sess->sessLoad( 'currentcage' ) ) );
68+ $this->versioninfo = explode( '_to_', str_replace( 'upgrade' . DIRECTORY_SEPARATOR, '', $this->obj_sess->sessLoad( 'currentcage' ) ) );
6969 return true;
7070 } // end of function:model()
7171
@@ -91,6 +91,8 @@
9191 $this->smarty->assign ( 'fromVer', $this->versioninfo[0] );
9292 $this->smarty->assign ( 'toVer', $this->versioninfo[1] );
9393
94+ $this->smarty->assign ( 'target', $this->target );
95+
9496 // 表示
9597 $this->smarty->display( 'upgrade.tpl' );
9698
Show on old repository browser