• R/O
  • SSH
  • HTTPS

raproject: 提交


Commit MetaInfo

修訂41 (tree)
時間2011-11-29 16:48:30
作者ossi

Log Message

ossi commit

Change Summary

差異

--- ralite/ra_upgrade/1.171/UpgradeController_1171.php (nonexistent)
+++ ralite/ra_upgrade/1.171/UpgradeController_1171.php (revision 41)
@@ -0,0 +1,26 @@
1+<?php
2+/**
3+ * Research Artisan Lite: Website Access Analyzer
4+ * Copyright (C) 2009 Research Artisan Project
5+ *
6+ * This program is free software; you can redistribute it and/or
7+ * modify it under the terms of the GNU General Public License
8+ * as published by the Free Software Foundation; either version 2
9+ * of the License, or (at your option) any later version.
10+ *
11+ * @copyright Copyright (C) 2009 Research Artisan Project
12+ * @license GNU General Public License (see license.txt)
13+ * @author ossi
14+ */
15+class UpgradeController_1171 extends BaseController {
16+
17+ public function __construct(RaRequest $request, RaSession $session, RaMessage $message, RaResult $result, $controller, $action) {
18+ parent::__construct($request, $session, $message, $result, $controller, $action);
19+ }
20+
21+ public function upgrade() {
22+ return true;
23+ }
24+
25+}
26+?>
--- ralite/ra_core/application/controllers/InstallController.php (revision 40)
+++ ralite/ra_core/application/controllers/InstallController.php (revision 41)
@@ -153,6 +153,9 @@
153153 }
154154
155155 $site = new Site();
156+
157+ $site->destroy();
158+
156159 $site->setValue('sitename', $sitename);
157160 $site->setValue('url', $url);
158161 $site->setValue('pswd', md5($pswd));
@@ -160,6 +163,9 @@
160163
161164 $version = File::replaceCrlf(File::readFile(RA_CORE_DIR. 'version.txt'), '');
162165 $system = new System();
166+
167+ $system->destroy();
168+
163169 $system->setValue('version', $version);
164170 $system->save();
165171
--- ralite/ra_core/version.txt (revision 40)
+++ ralite/ra_core/version.txt (revision 41)
@@ -1 +1 @@
1-1.17
1+1.171
Show on old repository browser