diff --git a/install/BuildInstallation.php b/install/BuildInstallation.php deleted file mode 100644 index 95aa362961..0000000000 --- a/install/BuildInstallation.php +++ /dev/null @@ -1,86 +0,0 @@ - \ No newline at end of file diff --git a/install/ConfirmMigrationConfig.php b/install/ConfirmMigrationConfig.php deleted file mode 100644 index 0cebb058cb..0000000000 --- a/install/ConfirmMigrationConfig.php +++ /dev/null @@ -1,250 +0,0 @@ -createConfigFile()) { - die("{$installationStrings['ERR_CANNOT_WRITE_CONFIG_FILE']}"); -} -if ($next) { - $_SESSION['authentication_key'] = md5(microtime()); - $_SESSION['config_file_info'] = $configFileInfo; - - require_once 'install/VerifyDBHealth.php'; - - if ($_SESSION[$newDbName.'_'.$dbHostName.'_HealthApproved'] != true || $_SESSION['pre_migration'] != true) { - header('Location:install.php?file=PreMigrationActions.php'); - } else { - $innodbEngineCheck = true; - } - if ($oldDbName == $newDbName && empty($_REQUEST['forceDbCheck'])) { - header('Location:install.php?file=PreMigrationActions.php'); - } -} - -include 'modules/Migration/versions.php'; -?> - - - - - <?php echo $installationStrings['APP_NAME']. ' - ' . $installationStrings['LBL_CONFIG_WIZARD']. ' - ' . $installationStrings['LBL_CONFIRM_SETTINGS']?> - - - - - - - - -
- - - - - - - - -
- <?php echo $installationStrings['LBL_CONFIG_WIZARD']; ?> - - <?php echo $installationStrings['APP_NAME']; ?> -
- - - - -
- -
- - - - -
- - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- -
-
-
-
- -
- -

- -

- - - - - - - - - - - - - - - - - - - - - -
-
-
- -
- -
- - - -
-
- - - - - - - - - - - - - - - - - - - - -
-
-
Admin
-
-
- - -
-
-
- - - - -
-
-
-
- - - - -
- - - - -
- - - - -
- - \ No newline at end of file diff --git a/install/MigrationComplete.php b/install/MigrationComplete.php deleted file mode 100644 index dddc24505d..0000000000 --- a/install/MigrationComplete.php +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - <?php echo $installationStrings['APP_NAME']. ' - ' . $installationStrings['LBL_CONFIG_WIZARD']. ' - ' . $installationStrings['LBL_FINISH']?> - - - - - -
- - - - - - - -
- <?php echo $installationStrings['LBL_CONFIG_WIZARD']; ?> - - <?php echo $installationStrings['APP_NAME']; ?> -
- - - - -
- - - - -
- - - - - -
- - - - - - - - -
- -
-
-
- - - - - -
- -
-
-
    - -
  • install.php.txt.
  • - -
  • .
  • - - - -
  • migrate.php.txt.
  • - -
  • .
  • - - -
  • install.
  • - -
  • .
  • - -
-
-
    -
  • . -
  • . -
  • .
  • -
  • -
  • . - -
  • -
-
-
    -
  • -
  • -
  • -
  • -
-
-
-
- - - - -
-
- - -
-
-
-
-
- - - - - -
- - - - -
- - - - -
- - diff --git a/install/MigrationDbBackup.php b/install/MigrationDbBackup.php deleted file mode 100644 index 11b01bc924..0000000000 --- a/install/MigrationDbBackup.php +++ /dev/null @@ -1,72 +0,0 @@ -backup(); -} else { - $targetName = $_REQUEST['newDatabaseName']; - try { - if (!empty($targetName) && $dbName != $targetName) { - $rootUserName = $_SESSION['migration_info']['root_username']; - $rootPassword = $_SESSION['migration_info']['root_password']; - $destConfig = new DatabaseConfig($hostName, $username, $password, $targetName, 'mysql', $rootUserName, $rootPassword); - $databaseDest = new Database($destConfig, $createDB, true); - $dbBackup = new DatabaseBackup($source, $databaseDest); - $dbBackup->backup(); - $_SESSION['migration_info']['new_dbname'] = $targetName; - $_SESSION['config_file_info']['vt_charset'] = 'UTF-8'; - echo 'true'; - return; - } - echo 'false'; - } catch (DatabaseBackupException $e) { - echo 'false'; - } catch (Exception $e) { - echo 'false'; - } -} -?> \ No newline at end of file diff --git a/install/MigrationProcess.php b/install/MigrationProcess.php deleted file mode 100644 index f29d054d61..0000000000 --- a/install/MigrationProcess.php +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - <?php echo $installationStrings['APP_NAME']. ' - ' . $installationStrings['LBL_CONFIG_WIZARD']. ' - ' . $installationStrings['LBL_MIGRATION']?> - - - - - - - - - -
- - - - - - - -
- <?php echo $installationStrings['LBL_CONFIG_WIZARD']; ?> - - <?php echo $installationStrings['APP_NAME'];?> -
- - - - -
- - - - -
- - - - - - - - - - - -
-
-
- - - - - -
- -
-
- - - - - - -

-
-
- -
-
-
- - - - -
- - - - -
- - - - -
- - - - - '; - - require_once 'include/utils/utils.php'; - require_once 'include/logging.php'; - $migrationlog = LoggerManager::getLogger('MIGRATION'); - - if ($_SESSION['authentication_key']==$_REQUEST['auth_key']) { - $completed = Migration_Utils::migrate($_SESSION['migration_info']); - if ($completed) { - echo ""; - } - } -} -?> - - \ No newline at end of file diff --git a/install/PreMigrationActions.php b/install/PreMigrationActions.php deleted file mode 100644 index 15f7787e56..0000000000 --- a/install/PreMigrationActions.php +++ /dev/null @@ -1,304 +0,0 @@ - - - - - - <?php echo $installationStrings['APP_NAME'].' - '.$installationStrings['LBL_CONFIG_WIZARD'].' - '. $installationStrings['LBL_PRE_MIGRATION_TOOLS']?> - - - - - - - - - - -
- - - - - - - -
- <?php echo $installationStrings['LBL_CONFIG_WIZARD']; ?> - - <?php echo $installationStrings['APP_NAME']; ?> -
- - - - -
- - - - -
- - - - - -
- - - - - - - - - - - - - - - - - -
- -
-
-
-
- : -
- . -
-
-   |   -
-
- - - - -
- - - - - - -
- - - - - - - - -
- -
-
- .

-
:
.
-
-
- - - - - - - - -
- -
- ?
- . -

-
:
- . -
-
-
-
-
-
-
- - -
-
-
- - - - -
-
-
- -
-
- - - - -
- - - - -
- - - - -
- - - - \ No newline at end of file diff --git a/install/SetMigrationConfig.php b/install/SetMigrationConfig.php deleted file mode 100644 index e72eb7847b..0000000000 --- a/install/SetMigrationConfig.php +++ /dev/null @@ -1,255 +0,0 @@ - - - - - - - <?php echo $installationStrings['APP_NAME']. ' - ' . $installationStrings['LBL_CONFIG_WIZARD']. ' - ' . $installationStrings['LBL_SYSTEM_CONFIGURATION']?> - - - - - - - - - - - - - -
- - - - - - - -
- <?php echo $installationStrings['LBL_CONFIG_WIZARD']; ?> - - <?php echo $installationStrings['APP_NAME']; ?> -
- - - - -
- - - - -
- - - - - -
- - - - - - - - - - - - -
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- * - - - - - - - -
- * - - -
Admin * - -
Admin - -
* - -
-
-
- - - - -
-
- : -
-
    -
  • .
  • -
  • ?
    -
      -
    1. .
      - : CREATE DATABASE DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
    2. -
    3. .
    4. -
    -
  • -
-
-
-
- - - -
-
- -
-
- - - - -
- - - - -
- - - - -
- - - - - - - \ No newline at end of file diff --git a/install/migratefromvtigercrm.php b/install/migratefromvtigercrm.php deleted file mode 100644 index 8b4fa08163..0000000000 --- a/install/migratefromvtigercrm.php +++ /dev/null @@ -1,161 +0,0 @@ -query("SET SESSION sql_mode = ''"); -$adb->query('CREATE TABLE IF NOT EXISTS vtiger_crmobject ( - crmid int(19), - cbuuid char(40), - deleted tinyint(1), - setype varchar(100), - smownerid int(19), - modifiedtime datetime, - PRIMARY KEY (crmid), - INDEX (cbuuid), - INDEX (deleted), - INDEX (setype) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8'); - -// mandatory coreBOS DB changes -$result = $adb->pquery('show columns from com_vtiger_workflowtasks like ?', array('executionorder')); -if (!($adb->num_rows($result))) { - $adb->query('ALTER TABLE com_vtiger_workflowtasks ADD executionorder INT(10)', array()); - $adb->query('ALTER TABLE `com_vtiger_workflowtasks` ADD INDEX(`executionorder`)'); -} -$result = $adb->pquery("show columns from com_vtiger_workflows like ?", array('schminuteinterval')); -if (!($adb->num_rows($result))) { - $adb->query("ALTER TABLE com_vtiger_workflows ADD schminuteinterval VARCHAR(200)", array()); -} -$adb->query("CREATE TABLE IF NOT EXISTS com_vtiger_workflow_tasktypes ( - id int(11) NOT NULL, - tasktypename varchar(255) NOT NULL, - label varchar(255), - classname varchar(255), - classpath varchar(255), - templatepath varchar(255), - modules text(500), - sourcemodule varchar(255) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8", array()); -$result = $adb->pquery("show columns from com_vtiger_workflows like ?", array('schtypeid')); -if (!($adb->num_rows($result))) { - $adb->query("ALTER TABLE com_vtiger_workflows ADD schtypeid INT(10)"); -} -$result = $adb->pquery("show columns from com_vtiger_workflows like ?", array('schtime')); -if (!($adb->num_rows($result))) { - $adb->query("ALTER TABLE com_vtiger_workflows ADD schtime TIME"); -} else { - $adb->query('ALTER TABLE com_vtiger_workflows CHANGE schtime schtime TIME NULL DEFAULT NULL'); -} -$result = $adb->pquery("show columns from com_vtiger_workflows like ?", array('schdayofmonth')); -if (!($adb->num_rows($result))) { - $adb->query("ALTER TABLE com_vtiger_workflows ADD schdayofmonth VARCHAR(200)"); -} -$result = $adb->pquery("show columns from com_vtiger_workflows like ?", array('schdayofweek')); -if (!($adb->num_rows($result))) { - $adb->query("ALTER TABLE com_vtiger_workflows ADD schdayofweek VARCHAR(200)"); -} -$result = $adb->pquery("show columns from com_vtiger_workflows like ?", array('schannualdates')); -if (!($adb->num_rows($result))) { - $adb->query("ALTER TABLE com_vtiger_workflows ADD schannualdates VARCHAR(200)"); -} -$result = $adb->pquery("show columns from com_vtiger_workflows like ?", array('nexttrigger_time')); -if (!($adb->num_rows($result))) { - $adb->query("ALTER TABLE com_vtiger_workflows ADD nexttrigger_time DATETIME"); -} -$result = $adb->pquery("show columns from com_vtiger_workflows like ?", array('purpose')); -if (!($adb->num_rows($result))) { - $adb->query("ALTER TABLE `com_vtiger_workflows` ADD `purpose` TEXT NULL;"); -} -$result = $adb->pquery('show columns from com_vtiger_workflows like ?', array('relatemodule')); -if (!($adb->num_rows($result))) { - $adb->query('ALTER TABLE `com_vtiger_workflows` ADD `relatemodule` varchar(100) default NULL;'); -} -$result = $adb->pquery('show columns from com_vtiger_workflows like ?', array('options')); -if (!($adb->num_rows($result))) { - $adb->query('ALTER TABLE com_vtiger_workflows ADD options VARCHAR(100)'); -} -$result = $adb->pquery('show columns from com_vtiger_workflows like ?', array('cbquestion')); -if (!($adb->num_rows($result))) { - $adb->query('ALTER TABLE com_vtiger_workflows ADD cbquestion INT(11)'); -} -$result = $adb->pquery('show columns from com_vtiger_workflows like ?', array('recordset')); -if (!($adb->num_rows($result))) { - $adb->query('ALTER TABLE com_vtiger_workflows ADD recordset INT(11)'); -} -$result = $adb->pquery('show columns from com_vtiger_workflows like ?', array('onerecord')); -if (!($adb->num_rows($result))) { - $adb->query('ALTER TABLE com_vtiger_workflows ADD onerecord INT(11)'); -} -$taskTypes = array(); -$defaultModules = array('include' => array(), 'exclude'=>array()); -$createToDoModules = array('include' => array("Leads","Accounts","Potentials","Contacts","HelpDesk","Campaigns","Quotes","PurchaseOrder","SalesOrder","Invoice"), 'exclude'=>array("Calendar", "FAQ", "Events")); -$createEventModules = array('include' => array("Leads","Accounts","Potentials","Contacts","HelpDesk","Campaigns"), 'exclude'=>array("Calendar", "FAQ", "Events")); - -$taskTypes[] = array("name"=>"VTEmailTask", "label"=>"Send Mail", "classname"=>"VTEmailTask", "classpath"=>"modules/com_vtiger_workflow/tasks/VTEmailTask.inc", "templatepath"=>"com_vtiger_workflow/taskforms/VTEmailTask.tpl", "modules"=>$defaultModules, "sourcemodule"=>''); -$taskTypes[] = array("name"=>"VTEntityMethodTask", "label"=>"Invoke Custom Function", "classname"=>"VTEntityMethodTask", "classpath"=>"modules/com_vtiger_workflow/tasks/VTEntityMethodTask.inc", "templatepath"=>"com_vtiger_workflow/taskforms/VTEntityMethodTask.tpl", "modules"=>$defaultModules, "sourcemodule"=>''); -$taskTypes[] = array("name"=>"VTCreateTodoTask", "label"=>"Create Todo", "classname"=>"VTCreateTodoTask", "classpath"=>"modules/com_vtiger_workflow/tasks/VTCreateTodoTask.inc", "templatepath"=>"com_vtiger_workflow/taskforms/VTCreateTodoTask.tpl", "modules"=>$createToDoModules, "sourcemodule"=>''); -$taskTypes[] = array("name"=>"VTUpdateFieldsTask", "label"=>"Update Fields", "classname"=>"VTUpdateFieldsTask", "classpath"=>"modules/com_vtiger_workflow/tasks/VTUpdateFieldsTask.inc", "templatepath"=>"com_vtiger_workflow/taskforms/VTUpdateFieldsTask.tpl", "modules"=>$defaultModules, "sourcemodule"=>''); -$taskTypes[] = array("name"=>"VTCreateEntityTask", "label"=>"Create Entity", "classname"=>"VTCreateEntityTask", "classpath"=>"modules/com_vtiger_workflow/tasks/VTCreateEntityTask.inc", "templatepath"=>"com_vtiger_workflow/taskforms/VTCreateEntityTask.tpl", "modules"=>$defaultModules, "sourcemodule"=>''); -$taskTypes[] = array("name"=>"VTSMSTask", "label"=>"SMS Task", "classname"=>"VTSMSTask", "classpath"=>"modules/com_vtiger_workflow/tasks/VTSMSTask.inc", "templatepath"=>"com_vtiger_workflow/taskforms/VTSMSTask.tpl", "modules"=>$defaultModules, "sourcemodule"=>'SMSNotifier'); - -foreach ($taskTypes as $taskType) { - VTTaskType::registerTaskType($taskType); -} - -$adb->query('ALTER TABLE `vtiger_currency_info` ADD `currency_position` CHAR(4) NOT NULL;'); -$adb->query("UPDATE `vtiger_currency_info` SET `currency_position` = '$1.0';"); -$adb->query("UPDATE `vtiger_currency_info` SET `currency_position` = '1.0$' where currency_name='Euro';"); -$adb->query("ALTER TABLE vtiger_profile2field ADD summary enum('T', 'H','B', 'N') DEFAULT 'B' NOT NULL"); - -$adb->query('CREATE TABLE `cb_settings` ( - `setting_key` varchar(200) NOT NULL, - `setting_value` varchar(1000) NOT NULL, - PRIMARY KEY (`setting_key`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8'); - -$adb->query('ALTER TABLE `vtiger_email_access` CHANGE `accesstime` `accesstime` TIME NULL DEFAULT NULL'); -$adb->query('ALTER TABLE `vtiger_users` CHANGE `date_entered` `date_entered` DATETIME NOT NULL'); -$adb->query('ALTER TABLE `vtiger_users` CHANGE `date_modified` `date_modified` TIMESTAMP on update CURRENT_TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP;'); -$adb->query('ALTER TABLE `vtiger_import_maps` CHANGE `date_entered` `date_entered` DATETIME NOT NULL'); -$adb->query('ALTER TABLE `vtiger_import_maps` CHANGE `date_modified` `date_modified` TIMESTAMP on update CURRENT_TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP;'); -$adb->query('ALTER TABLE `vtiger_loginhistory` CHANGE `login_time` `login_time` TIMESTAMP NULL DEFAULT NULL;'); -$adb->query('ALTER TABLE `vtiger_loginhistory` CHANGE `logout_time` `logout_time` TIMESTAMP NULL DEFAULT NULL'); -$adb->query("UPDATE `vtiger_users` set date_modified=date_entered"); -$adb->query("UPDATE `vtiger_import_maps` set date_modified=date_entered"); -$adb->query("UPDATE `vtiger_loginhistory` set login_time=null where login_time='0000-00-00 00:00:00'"); -$adb->query("UPDATE `vtiger_loginhistory` set logout_time=null where logout_time='0000-00-00 00:00:00'"); -$adb->query("UPDATE `vtiger_crmentity` set modifiedtime=createdtime where modifiedtime='0000-00-00 00:00:00'"); -// - -$the_file = 'CheckSystem.php'; -Common_Install_Wizard_Utils::checkFileAccessForInclusion("install/".$the_file); -$_REQUEST['filename'] = 'SetMigrationConfig.php'; -$_REQUEST['file'] = 'CheckSystem.php'; -$_REQUEST['migrate'] = 'true'; - -include 'install/'.$the_file; -?>