SaveItems($_POST,TRUE);
}
}
$section = $configs[$step];
$module = $mods[$step];
$title = $titles[$step];
$step++;
if($step <= count($configs)+1)
{
$include_file = $pathtoroot.$admin."/install/postconfig.php";
}
else
$state = "theme_sel";
}
if($state=="theme_sel")
{
$objThemes->CreateMissingThemes();
$include_file = $pathtoroot.$admin."/install/theme_select.php";
}
if($state=="theme_set")
{
## get & define Non-Blocking & Blocking versions ##
$blocking_sockets = minimum_php_version("4.3.0")? 0 : 1;
$ado =& inst_GetADODBConnection();
$sql = "UPDATE ".$g_TablePrefix."ConfigurationValues SET VariableValue = '$blocking_sockets' WHERE VariableName='SocketBlockingMode'";
$ado->Execute($sql);
## get & define Non-Blocking & Blocking versions ##
$theme_id = $_POST["theme"];
$pathchar="/";
//$objThemes->SetPrimaryTheme($theme_id);
$t = $objThemes->GetItem($theme_id);
$t->Set("Enabled",1);
$t->Set("PrimaryTheme",1);
$t->Update();
$t->VerifyTemplates();
$include_file = $pathtoroot.$admin."/install/install_finish.php";
$state="finish";
}
if ($state == "adm_login") {
echo "";
}
// init variables
$vars = Array('db_error','restore_error','PassError','DomainError','login_error','inst_error');
foreach($vars as $var_name) ReSetVar($var_name);
switch($state)
{
case "modselect":
$title = "Select Modules";
$help = "Select the In-Portal modules you wish to install. The modules listed to the right ";
$help .="are all modules included in this installation that are licensed to run on this server.
";
break;
case "reinstall":
$title = "Installation Maintenance";
$help = "A Configuration file has been detected on your system and it appears In-Portal is correctly installed. ";
$help .="In order to work with the maintenance functions provided to the left you must provide the Intechnic ";
$help .="Username and Password you used when obtaining the license file residing on the server, or your admin Root password. ";
$help .=" (Use Username 'root' if using your root password)
";
$help .= "To removing your existing database and start with a fresh installation, select the first option ";
$help .= "provided. Note that this operation cannot be undone and no backups are made! Use at your own risk.
";
$help .="If you wish to scrap your current installation and install to a new location, choose the second option. ";
$help .="If this option is selected you will be prompted for new database configuration information.
";
$help .="The Update License Information option is used to update your In-Portal license data. Select this option if you have ";
$help .="modified your licensing status with Intechnic, or you have received new license data via email
";
break;
case "RootPass":
$title = "Set Admin Root Password";
$help = "The Root Password is initially required to access the admin sections of In-Portal. ";
$help .="The root user cannot be used to access the front-end of the system, so it is recommended that you ";
$help .="create additional users with admin privlidges.
";
break;
case "finish":
$title = "Thank You!";
$help ="Thanks for using In-Portal! Be sure to visit www.in-portal.net ";
$help.=" for the latest news, module releases and support.
";
break;
case "license":
$title = "License Configuration";
$help ="A License is required to run In-Portal on a server connected to the Internet. You ";
$help.="can run In-Portal on localhost, non-routable IP addresses, or other computers on your LAN. ";
$help.="If Intechnic has provided you with a license file, upload it here. Otherwise select the first ";
$help.="option to allow Install to download your license for you.
";
$help.="If a valid license has been detected on your server, you can choose the Use Existing License ";
$help.="and continue the installation process
";
break;
case "domain_select":
$title="Select Licensed Domain";
$help ="Select the domain you wish to configure In-Portal for. The Other option ";
$help.=" can be used to configure In-Portal for use on a local domain.
";
$help.="For local domains, enter the hostname or LAN IP Address of the machine running In-Portal.
";
break;
case "db_reconfig":
case "dbinfo":
$title="Database Configuration";
$help = "In-Portal needs to connect to your Database Server. Please provide the database server type*, ";
$help .="host name (normally \"localhost\"), Database user name, and database Password. ";
$help .="These fields are required to connect to the database.
If you would like In-Portal ";
$help .="to use a table prefix, enter it in the field provided. This prefix can be any ";
$help .=" text which can be used in the names of tables on your system. The characters entered in this field ";
$help .=" are placed before the names of the tables used by In-Portal. For example, if you enter \"inp_\"";
$help .=" into the prefix field, the table named Category will be named inp_Category.
";
break;
case "lang_select":
$title="Language Pack Installation";
$help = "Select the language packs you wish to install. Each language pack contains all the phrases ";
$help .="used by the In-Portal administration and the default template set. Note that at least one ";
$help .="pack must be installed.
";
break;
case "lang_default":
$title="Select Default Language";
$help = "Select which language should be considered the \"default\" language. This is the language ";
$help .="used by In-Portal when a language has not been selected by the user. This selection is applicable ";
$help .="to both the administration and front-end.
";
break;
case "lang_install":
$title="Installing Language Packs";
$help = "The language packs you have selected are being installed. You may install more languages at a ";
$help.="later time from the Regional admin section.
";
break;
case "postconfig_1":
$help = "These options define the general operation of In-Portal. Items listed here are ";
$help .="required for In-Portal's operation.
When you have finished, click save to continue.
";
break;
case "postconfig_2":
$help = "User Management configuration options determine how In-Portal manages your user base.
";
$help .="The groups listed to the right are pre-defined by the installation process and may be changed ";
$help .="through the Groups section of admin.
";
break;
case "postconfig_3":
$help = "The options listed here are used to control the category list display functions of In-Portal.
";
break;
case "theme_sel":
$title="Select Default Theme";
$help = "This theme will be used whenever a front-end session is started. ";
$help .="If you intend to upload a new theme and use that as default, you can do so through the ";
$help .="admin at a later date. A default theme is required for session management.
";
break;
case "get_license":
$title="Download License from Intechnic";
$help ="A License is required to run In-Portal on a server connected to the Internet. You ";
$help.="can run In-Portal on localhost, non-routable IP addresses, or other computers on your LAN.
";
$help.="Here as you have selected download license from Intechnic you have to input your username and ";
$help.="password of your In-Business account in order to download all your available licenses.
";
break;
case "download_license":
$title="Download License from Intechnic";
$help ="A License is required to run In-Portal on a server connected to the Internet. You ";
$help.="can run In-Portal on localhost, non-routable IP addresses, or other computers on your LAN.
";
$help.="Please choose the license from the drop down for this site!
";
break;
case "restore_select":
$title="Select Restore File";
$help = "Select the restore file to use to reinstall In-Portal. If your backups are not performed ";
$help .= "in the default location, you can enter the location of the backup directory and click the ";
$help .="Update button.
";
case "restore_run":
$title= "Restore in Progress";
$help = "Restoration of your system is in progress. When the restore has completed, the installation ";
$help .="will continue as normal. Hitting the Cancel button will restart the entire installation process. ";
break;
case "warning":
$title = "Restore in Progress";
$help = "
Please approve that you understand that you are restoring your In-Portal data base from other version of In-Portal.
";
break;
case "update":
$title = "Update In-Portal";
$help = "Select modules from the list, you need to update to the last downloaded version of In-Portal
";
break;
}
$tmp_step = GetVar('next_step', true);
if (!$tmp_step) {
$tmp_step = 1;
}
if ( isset($got_license) && $got_license == 1) {
$tmp_step++;
}
$next_step = $tmp_step + 1;
if ($general_error != '') {
$state = '';
$title = '';
$help = '';
$general_error = $general_error.'
Installation cannot continue!';
}
if ($include_file == '' && $general_error == '' && $state == '') {
$state = '';
$title = '';
$help = '';
$filename = $pathtoroot.$admin."/install/inportal_remove.sql";
RunSQLFile($ado,$filename);
$general_error = 'Unexpected installation error!
Installation has been stopped!';
}
if ($restore_error != '') {
$next_step = 3;
$tmp_step = 2;
}
if ($PassError != '') {
$tmp_step = 4;
$next_step = 5;
}
if ($DomainError != '') {
$tmp_step--;
$next_step = $tmp_step + 1;
}
if ($db_error != '') {
$tmp_step--;
$next_step = $tmp_step + 1;
}
if ($state == "warning") {
$tmp_step--;
$next_step = $tmp_step + 1;
}
?>
Installation
- class="current">Database Configuration
- class="current">Select License
- class="current">Select Domain
- class="current">Set Root Password
- class="current">Select Modules to Install
- class="current">Install Language Packs
- class="current">Post-Install Configuration
- class="current">Finish
- class="current">License Verification
- License Verification
- class="current">Database Configuration
- class="current">Select License
- class="current">Select Domain
- class="current">Set Root Password
- class="current">Select Modules to Install
- class="current">Install Language Packs
- class="current">Post-Install Configuration
- class="current">Finish
- class="current">License Verification
- class="current">Select License
- class="current">Select Domain
- class="current">Set Root Password
- class="current">Select Modules to Install
- class="current">Install Language Packs
- class="current">Post-Install Configuration
- class="current">Finish
- class="current">License Verification
- class="current">Select License
- class="current">Select Domain
- class="current">Finish
- class="current">License Verification
- class="current">Select Backup File
- class="current">Finish
- class="current">License Verification
- class="current">Database Configuration
- class="current">Finish
- class="current">License Verification
- class="current">Select Modules to Upgrade
- class="current">Language Pack Upgrade
- class="current">Finish
|
|
|