ossi commit
@@ -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 | +?> |
@@ -153,6 +153,9 @@ | ||
153 | 153 | } |
154 | 154 | |
155 | 155 | $site = new Site(); |
156 | + | |
157 | + $site->destroy(); | |
158 | + | |
156 | 159 | $site->setValue('sitename', $sitename); |
157 | 160 | $site->setValue('url', $url); |
158 | 161 | $site->setValue('pswd', md5($pswd)); |
@@ -160,6 +163,9 @@ | ||
160 | 163 | |
161 | 164 | $version = File::replaceCrlf(File::readFile(RA_CORE_DIR. 'version.txt'), ''); |
162 | 165 | $system = new System(); |
166 | + | |
167 | + $system->destroy(); | |
168 | + | |
163 | 169 | $system->setValue('version', $version); |
164 | 170 | $system->save(); |
165 | 171 |
@@ -1 +1 @@ | ||
1 | -1.17 | |
1 | +1.171 |