diff --git a/install/upgrade1.php b/install/upgrade1.php
deleted file mode 100755
index 162c1de..0000000
--- a/install/upgrade1.php
+++ /dev/null
@@ -1,178 +0,0 @@
-<?php
-/*=====================================================================*\
-|| ###################################################################
-|| # Kalens [#]version[#]
-|| # Copyright 2002-[#]year[#] Iris Studios, Inc.
-|| #
-|| # This program is free software; you can redistribute it and/or modify
-|| # it under the terms of the GNU General Public License as published by
-|| # the Free Software Foundation; version [#]gpl[#] of the License.
-|| #
-|| # This program is distributed in the hope that it will be useful, but
-|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
-|| # more details.
-|| #
-|| # You should have received a copy of the GNU General Public License along
-|| # with this program; if not, write to the Free Software Foundation, Inc.,
-|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-|| ###################################################################
-\*=====================================================================*/
-
-// ######################### REQUIRE BACKEND #########################
-define('TARGETVERSION', '1.0.0 Alpha 2');
-define('RESULTVERSION', '1.0.0 Beta 1');
-
-require_once('./upgrade.php');
-
-$step['p'] = 'upgrade1.php';
-$step['c'] = intval($_REQUEST['step']);
-$step['n'] = $step['c'] + 1;
-$step['t'] = 4;
-
-// -------------------------------------------------------------------
-// -- (0) :: Welcome the user to the system
-// -------------------------------------------------------------------
-if (empty($_REQUEST['step']))
-{
- page_init();
-
- // Sorry, you're at the version!
- if ($kalens->options['systemversion'] != TARGETVERSION)
- {
- error($language['err_upgrade_step_has_been_run']);
- }
-
- $core->page_message($language['title0'], construct_phrase('text8', TARGETVERSION, RESULTVERSION));
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (1) Do any database modifications
-// -------------------------------------------------------------------
-if ($step['c'] == 1)
-{
- page_init();
-
- // Do queries
- $db->query("
- CREATE TABLE `style`
- (
- `styleid` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
- `stylename` VARCHAR(255) NOT NULL,
- PRIMARY KEY (`styleid`)
- )
- TYPE=MyISAM;"
- );
-
- $db->query("DROP TABLE IF EXISTS `template`");
-
- $db->query("
- CREATE TABLE `template`
- (
- `templateid` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
- `styleid` INT(10) NOT NULL,
- `templatename` VARCHAR(255) NOT NULL,
- `template` MEDIUMTEXT NOT NULL,
- `dateline` INT(20) UNSIGNED NOT NULL,
- PRIMARY KEY (`templateid`)
- )
- TYPE=MyISAM"
- );
-
- $db->query("ALTER TABLE `user` ADD `stylechoice` INT(10) UNSIGNED NOT NULL;");
-
- $db->query("ALTER TABLE `user` ADD `canadmin` INT(2) NOT NULL;");
-
- $core->page_message($language['title7'], 'created `style` table<br />dropped old `template` table<br />created `template` table<br />`stylechoice` column added to `user`<br />`canadmin` column added to `user`');
-
- $kalens->debug("Queries: okay");
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (2) Load the language system
-// -------------------------------------------------------------------
-if ($step['c'] == 2)
-{
- page_init();
-
- $xml_file = @file_get_contents('./install/procal_language.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_lang_file']);
- }
-
- require_once('./includes/admin/xml.php');
- upload_phrase_xml($xml_file);
-
- $core->page_message($language['title2'], $language['text2']);
-
- $kalens->debug("Lang: okay");
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (3) Load the settings
-// -------------------------------------------------------------------
-if ($step['c'] == 3)
-{
- page_init();
-
- $xml_file = @file_get_contents('./install/procal_settings.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_setting_file']);
- }
-
- require_once('./includes/admin/xml.php');
- upload_setting_xml($xml_file);
-
- $core->page_message($language['title3'], $language['text3']);
-
- $kalens->debug("Settings: okay");
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (4) Load master style and build default one
-// -------------------------------------------------------------------
-if ($step['c'] == 4)
-{
- page_init();
-
- $xml_file = @file_get_contents('./install/procal_style.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_style_file']);
- }
-
- require_once('./includes/admin/templates.php');
- up$template->fetch_xml($xml_file);
-
- $kalens->debug("Style: loaded");
-
- $core->page_message($language['title4'], $language['text4']);
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (FINAL) Redirect to admin
-// -------------------------------------------------------------------
-if ($step['c'] == $step['t'] + 1)
-{
- calculate_next_move();
-}
-
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
-?>
\ No newline at end of file
diff --git a/install/upgrade2.php b/install/upgrade2.php
deleted file mode 100755
index 861a92d..0000000
--- a/install/upgrade2.php
+++ /dev/null
@@ -1,134 +0,0 @@
-<?php
-/*=====================================================================*\
-|| ###################################################################
-|| # Kalens [#]version[#]
-|| # Copyright 2002-[#]year[#] Iris Studios, Inc.
-|| #
-|| # This program is free software; you can redistribute it and/or modify
-|| # it under the terms of the GNU General Public License as published by
-|| # the Free Software Foundation; version [#]gpl[#] of the License.
-|| #
-|| # This program is distributed in the hope that it will be useful, but
-|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
-|| # more details.
-|| #
-|| # You should have received a copy of the GNU General Public License along
-|| # with this program; if not, write to the Free Software Foundation, Inc.,
-|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-|| ###################################################################
-\*=====================================================================*/
-
-// ######################### REQUIRE BACKEND #########################
-define('TARGETVERSION', '1.0.0 Beta 1');
-define('RESULTVERSION', '1.0.0 Beta 2');
-
-require_once('./upgrade.php');
-
-$step['p'] = 'upgrade2.php';
-$step['c'] = intval($_REQUEST['step']);
-$step['n'] = $step['c'] + 1;
-$step['t'] = 3;
-
-// -------------------------------------------------------------------
-// -- (0) :: Welcome the user to the system
-// -------------------------------------------------------------------
-if (empty($_REQUEST['step']))
-{
- page_init();
-
- // Sorry, you're at the version!
- if ($kalens->options['systemversion'] != TARGETVERSION)
- {
- error($language['err_upgrade_step_has_been_run']);
- }
-
- $core->page_message($language['title0'], construct_phrase('text8', TARGETVERSION, RESULTVERSION));
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (1) Load the language system
-// -------------------------------------------------------------------
-if ($step['c'] == 1)
-{
- page_init();
-
- $xml_file = @file_get_contents('./install/procal_language.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_lang_file']);
- }
-
- require_once('./includes/admin/xml.php');
- upload_phrase_xml($xml_file);
-
- $core->page_message($language['title2'], $language['text2']);
-
- $kalens->debug("Lang: okay");
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (2) Load the settings
-// -------------------------------------------------------------------
-if ($step['c'] == 2)
-{
- page_init();
-
- $xml_file = @file_get_contents('./install/procal_settings.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_setting_file']);
- }
-
- require_once('./includes/admin/xml.php');
- upload_setting_xml($xml_file);
-
- $core->page_message($language['title3'], $language['text3']);
-
- $kalens->debug("Settings: okay");
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (3) Load master style and build default one
-// -------------------------------------------------------------------
-if ($step['c'] == 3)
-{
- page_init();
-
- $xml_file = @file_get_contents('./install/procal_style.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_style_file']);
- }
-
- require_once('./includes/admin/templates.php');
- up$template->fetch_xml($xml_file);
-
- $kalens->debug("Style: loaded");
-
- $core->page_message($language['title4'], $language['text4']);
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (FINAL) Redirect to admin
-// -------------------------------------------------------------------
-if ($step['c'] == $step['t'] + 1)
-{
- calculate_next_move();
-}
-
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
-?>
\ No newline at end of file
diff --git a/install/upgrade3.php b/install/upgrade3.php
deleted file mode 100755
index 2fc05f4..0000000
--- a/install/upgrade3.php
+++ /dev/null
@@ -1,159 +0,0 @@
-<?php
-/*=====================================================================*\
-|| ###################################################################
-|| # Kalens [#]version[#]
-|| # Copyright 2002-[#]year[#] Iris Studios, Inc.
-|| #
-|| # This program is free software; you can redistribute it and/or modify
-|| # it under the terms of the GNU General Public License as published by
-|| # the Free Software Foundation; version [#]gpl[#] of the License.
-|| #
-|| # This program is distributed in the hope that it will be useful, but
-|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
-|| # more details.
-|| #
-|| # You should have received a copy of the GNU General Public License along
-|| # with this program; if not, write to the Free Software Foundation, Inc.,
-|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-|| ###################################################################
-\*=====================================================================*/
-
-// ######################### REQUIRE BACKEND #########################
-define('TARGETVERSION', '1.0.0 Beta 2');
-define('RESULTVERSION', '1.0.0 Release Candidate 1');
-
-require_once('./upgrade.php');
-
-$step['p'] = 'upgrade3.php';
-$step['c'] = intval($_REQUEST['step']);
-$step['n'] = $step['c'] + 1;
-$step['t'] = 4;
-
-// -------------------------------------------------------------------
-// -- (0) :: Welcome the user to the system
-// -------------------------------------------------------------------
-if (empty($_REQUEST['step']))
-{
- page_init();
-
- // Sorry, you're at the version!
- if ($kalens->options['systemversion'] != TARGETVERSION)
- {
- error($language['err_upgrade_step_has_been_run']);
- }
-
- $core->page_message($language['title0'], construct_phrase('text8', TARGETVERSION, RESULTVERSION));
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (1) Do any database modifications
-// -------------------------------------------------------------------
-if ($step['c'] == 1)
-{
- page_init();
-
- $db->query("ALTER TABLE `event` ADD `allday` INT(2) DEFAULT '0' NOT NULL;");
- $db->query("ALTER TABLE `eventstore` ADD `allday` INT(2) DEFAULT '0' NOT NULL;");
-
- $events = $db->query("SELECT * FROM event WHERE type = 1");
- while ($event = $db->fetch_array($events))
- {
- $ids[] = $event['eventid'];
- }
- $db->query("UPDATE event SET allday = 1 WHERE eventid IN (" . implode(', ', $ids) . ")");
- $db->query("UPDATE eventstore SET allday = 1 WHERE groupid IN (" . implode(', ', $ids) . ")");
-
- $core->page_message($language['title7'], '`allday` column added to `event`<br />`allday` column added to `eventstore`<br />updated event all day mark');
-
- $kalens->debug("Queries: okay");
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (2) Load the language system
-// -------------------------------------------------------------------
-if ($step['c'] == 2)
-{
- page_init();
-
- $xml_file = @file_get_contents('./install/procal_language.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_lang_file']);
- }
-
- require_once('./includes/admin/xml.php');
- upload_phrase_xml($xml_file);
-
- $core->page_message($language['title2'], $language['text2']);
-
- $kalens->debug("Lang: okay");
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (3) Load the settings
-// -------------------------------------------------------------------
-if ($step['c'] == 3)
-{
- page_init();
-
- $xml_file = @file_get_contents('./install/procal_settings.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_setting_file']);
- }
-
- require_once('./includes/admin/xml.php');
- upload_setting_xml($xml_file);
-
- $core->page_message($language['title3'], $language['text3']);
-
- $kalens->debug("Settings: okay");
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (4) Load master style and build default one
-// -------------------------------------------------------------------
-if ($step['c'] == 4)
-{
- page_init();
-
- $xml_file = @file_get_contents('./install/procal_style.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_style_file']);
- }
-
- require_once('./includes/admin/templates.php');
- up$template->fetch_xml($xml_file);
-
- $kalens->debug("Style: loaded");
-
- $core->page_message($language['title4'], $language['text4']);
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (FINAL) Redirect to admin
-// -------------------------------------------------------------------
-if ($step['c'] == $step['t'] + 1)
-{
- calculate_next_move();
-}
-
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
-?>
\ No newline at end of file
diff --git a/install/upgrade4.php b/install/upgrade4.php
deleted file mode 100755
index d150e5a..0000000
--- a/install/upgrade4.php
+++ /dev/null
@@ -1,134 +0,0 @@
-<?php
-/*=====================================================================*\
-|| ###################################################################
-|| # Kalens [#]version[#]
-|| # Copyright 2002-[#]year[#] Iris Studios, Inc.
-|| #
-|| # This program is free software; you can redistribute it and/or modify
-|| # it under the terms of the GNU General Public License as published by
-|| # the Free Software Foundation; version [#]gpl[#] of the License.
-|| #
-|| # This program is distributed in the hope that it will be useful, but
-|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
-|| # more details.
-|| #
-|| # You should have received a copy of the GNU General Public License along
-|| # with this program; if not, write to the Free Software Foundation, Inc.,
-|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-|| ###################################################################
-\*=====================================================================*/
-
-// ######################### REQUIRE BACKEND #########################
-define('TARGETVERSION', '1.0.0 Release Candidate 1');
-define('RESULTVERSION', '1.0.0 Release Candidate 2');
-
-require_once('./upgrade.php');
-
-$step['p'] = 'upgrade4.php';
-$step['c'] = intval($_REQUEST['step']);
-$step['n'] = $step['c'] + 1;
-$step['t'] = 3;
-
-// -------------------------------------------------------------------
-// -- (0) :: Welcome the user to the system
-// -------------------------------------------------------------------
-if (empty($_REQUEST['step']))
-{
- page_init();
-
- // Sorry, you're at the version!
- if ($kalens->options['systemversion'] != TARGETVERSION)
- {
- error($language['err_upgrade_step_has_been_run']);
- }
-
- $core->page_message($language['title0'], construct_phrase('text8', TARGETVERSION, RESULTVERSION));
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (1) Load the language system
-// -------------------------------------------------------------------
-if ($step['c'] == 1)
-{
- page_init();
-
- $xml_file = @file_get_contents('./install/procal_language.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_lang_file']);
- }
-
- require_once('./includes/admin/xml.php');
- upload_phrase_xml($xml_file);
-
- $core->page_message($language['title2'], $language['text2']);
-
- $kalens->debug("Lang: okay");
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (2) Load the settings
-// -------------------------------------------------------------------
-if ($step['c'] == 2)
-{
- page_init();
-
- $xml_file = @file_get_contents('./install/procal_settings.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_setting_file']);
- }
-
- require_once('./includes/admin/xml.php');
- upload_setting_xml($xml_file);
-
- $core->page_message($language['title3'], $language['text3']);
-
- $kalens->debug("Settings: okay");
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (3) Load master style and build default one
-// -------------------------------------------------------------------
-if ($step['c'] == 3)
-{
- page_init();
-
- $xml_file = @file_get_contents('./install/procal_style.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_style_file']);
- }
-
- require_once('./includes/admin/templates.php');
- up$template->fetch_xml($xml_file);
-
- $kalens->debug("Style: loaded");
-
- $core->page_message($language['title4'], $language['text4']);
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (FINAL) Redirect to admin
-// -------------------------------------------------------------------
-if ($step['c'] == $step['t'] + 1)
-{
- calculate_next_move();
-}
-
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
-?>
\ No newline at end of file
diff --git a/install/upgrade5.php b/install/upgrade5.php
deleted file mode 100755
index d2783ff..0000000
--- a/install/upgrade5.php
+++ /dev/null
@@ -1,177 +0,0 @@
-<?php
-/*=====================================================================*\
-|| ###################################################################
-|| # Kalens [#]version[#]
-|| # Copyright 2002-[#]year[#] Iris Studios, Inc.
-|| #
-|| # This program is free software; you can redistribute it and/or modify
-|| # it under the terms of the GNU General Public License as published by
-|| # the Free Software Foundation; version [#]gpl[#] of the License.
-|| #
-|| # This program is distributed in the hope that it will be useful, but
-|| # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
-|| # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
-|| # more details.
-|| #
-|| # You should have received a copy of the GNU General Public License along
-|| # with this program; if not, write to the Free Software Foundation, Inc.,
-|| # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
-|| ###################################################################
-\*=====================================================================*/
-
-// ######################### REQUIRE BACKEND #########################
-define('TARGETVERSION', '1.0.0 Release Candidate 2');
-define('RESULTVERSION', '1.0.0 Release Candidate 3');
-
-require_once('./upgrade.php');
-
-$step['p'] = 'upgrade5.php';
-$step['c'] = intval($_REQUEST['step']);
-$step['n'] = $step['c'] + 1;
-$step['t'] = 4;
-
-// -------------------------------------------------------------------
-// -- (0) :: Welcome the user to the system
-// -------------------------------------------------------------------
-if (empty($_REQUEST['step']))
-{
- page_init();
-
- // Sorry, you're at the version!
- if ($kalens->options['systemversion'] != TARGETVERSION)
- {
- error($language['err_upgrade_step_has_been_run']);
- }
-
- $core->page_message($language['title0'], construct_phrase('text8', TARGETVERSION, RESULTVERSION));
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (1) Do any database modifications
-// -------------------------------------------------------------------
-if ($step['c'] == 1)
-{
- page_init();
-
- $db->query("ALTER TABLE `eventstore` ADD `calendarid` INT(10) UNSIGNED NOT NULL");
-
- // Update the event store to have calendarid populated
- $events = $db->query("SELECT * FROM event");
- while ($event = $db->fetch_array($events))
- {
- $updatelist["$event[eventid]"] = $event['calendarid'];
- }
-
- foreach ($updatelist AS $groupid => $calendarid)
- {
- $db->query("UPDATE eventstore SET calendarid = $calendarid WHERE groupid = $groupid");
- }
-
- $db->query("DROP TABLE IF EXISTS phrasegroup"); // why wasn't this removed earlier?
-
- $db->query("DROP TABLE IF EXISTS session");
-
- $core->page_message($language['title7'], 'Added calendarid to eventstore, pouplated eventstore.calendarid, dropped phrasegroup, dropped session.');
-
- $kalens->debug("Queries: okay");
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (2) Load the language system
-// -------------------------------------------------------------------
-if ($step['c'] == 2)
-{
- page_init();
-
- $xml_file = @file_get_contents('./install/procal_language.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_lang_file']);
- }
-
- require_once('./includes/admin/xml.php');
- upload_phrase_xml($xml_file);
-
- $core->page_message($language['title2'], $language['text2']);
-
- $kalens->debug("Lang: okay");
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (3) Load the settings
-// -------------------------------------------------------------------
-if ($step['c'] == 3)
-{
- page_init();
-
- $cpath = $kalens->options['cookiedomain'];
-
- $xml_file = @file_get_contents('./install/procal_settings.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_setting_file']);
- }
-
- require_once('./includes/admin/xml.php');
- upload_setting_xml($xml_file);
-
- $core->page_message($language['title3'], $language['text3']);
-
- $kalens->debug("Settings: okay");
-
- $db->query("UPDATE setting SET value = '$cpath' WHERE varname = 'cookiepath'");
- $db->query("UPDATE setting SET value = '' WHERE varname = 'cookiedomain'");
-
- $kalens->debug("flipped cookie path and setting values");
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (4) Load master style and build default one
-// -------------------------------------------------------------------
-if ($step['c'] == 4)
-{
- page_init();
-
- $xml_file = @file_get_contents('./install/procal_style.xml');
- if (!$xml_file OR $xml_file === false)
- {
- error($language['no_style_file']);
- }
-
- require_once('./includes/admin/templates.php');
- up$template->fetch_xml($xml_file);
-
- $kalens->debug("Style: loaded");
-
- build_default_style(-1);
-
- $kalens->debug("Style: created");
-
- $core->page_message($language['title4'], $language['text4']);
-
- page_close();
-}
-
-// -------------------------------------------------------------------
-// -- (FINAL) Redirect to admin
-// -------------------------------------------------------------------
-if ($step['c'] == $step['t'] + 1)
-{
- calculate_next_move();
-}
-
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
-?>
\ No newline at end of file