2 /*=====================================================================*\
3 || ###################################################################
4 || # Bugdar [#]version[#]
5 || # Copyright ©2002-[#]year[#] Blue Static
7 || # This program is free software; you can redistribute it and/or modify
8 || # it under the terms of the GNU General Public License as published by
9 || # the Free Software Foundation; version [#]gpl[#] of the License.
11 || # This program is distributed in the hope that it will be useful, but
12 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 || # You should have received a copy of the GNU General Public License along
17 || # with this program; if not, write to the Free Software Foundation, Inc.,
18 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 || ###################################################################
20 \*=====================================================================*/
22 define('STOP_MARK', 2);
23 define('ACTIVE_SITE', 'upgrade5.php');
25 require_once('./global.php');
26 require_once('./includes/functions_datastore.php');
30 // ###################################################################
32 if ($bugsys->in
['mark'] == 0)
35 <h1
>Welcome to Bugdar
</h1
>
37 <p
>This upgrade will take from Bugdar
1.1.0 Release Candidate
1 to Bugdar
1.1.0 (final).</p
>
39 <p
>Not much has to be done
, we just have a quick rename
and version number change
.</p
>
41 <p
>To begin the process
, please click the button below
.</p
>
45 // ###################################################################
47 if ($bugsys->in
['mark'] == 1)
50 <h1
>Rename Automatic Actions
</h1
>
52 <p
>Simply
for aesthetic
's sake, we've ranamed
"Automatic Actions" to
"Automations." This does all the necessary database changes to make that rename work internally
.</p
>
55 $db->query("ALTER TABLE " . TABLE_PREFIX
. "autoaction RENAME " . TABLE_PREFIX
. "automation");
56 echo "Renaming datbase table<br />\n";
58 $db->query("DELETE FROM " . TABLE_PREFIX
. "datastore WHERE title = 'autoaction'");
59 echo "Clearing old datastore information<br />\n";
62 echo "Rebuilding the automations cahce<br />\n";
64 $topic = $db->query_first("SELECT * FROM " . TABLE_PREFIX
. "fieldhelp WHERE keystring = 'newreply'");
65 if (md5($topic['body']) == '7e1154340454ca6d8f8ba47aab057c23')
67 $topic = $db->query("UPDATE " . TABLE_PREFIX
. "fieldhelp SET body = 'Here you can specify additional comments. If you do not change any fields, this will merely attach a comment.
69 The \"Automation\" drop-down next to this box (which may be hidden) will allow you to perform a common task. These administrator-defined tasks can change any of the bug fields automatically and then add an automatic reply. If you change a field that will be altered by the action, the action\'s change will take precedence. Also, if you enter a comment and the action specifies a comment, the automatic comment will be attached to yours.' WHERE keystring = 'newreply'");
70 echo "Updating user help topic on new replies<br />\n";
74 echo "<strong>ALERT:</strong> You have modified your user help topic for <em>newreply</em> which means that the help item was not updated for the renaming of 'Automatic Action' to 'Automation'<br />\n";
78 // ###################################################################
80 if ($bugsys->in
['mark'] == 2)
83 <h1
>Version Number Change
</h1
>
85 <p
>This step finishes the upgrade by inreasing your version number
.</p
>
89 require_once('./includes/settings.php');
91 $db->query("UPDATE " . TABLE_PREFIX
. "setting SET value = '1.1.0' WHERE varname = 'trackerversion'");
102 // ###################################################################
106 /*=====================================================================*\
107 || ###################################################################
110 || ###################################################################
111 \*=====================================================================*/