Location: PHPKode > projects > Warp.cms - php/mysql content management > warp_121/install/install_warp.php
<?php

// [warp.cms installation module v.1.2.1]
// xantis.warp.cms - version 1.2
// (c) 2002 xantis - all rights reserved
// this code is registered and protected by international copyrights laws


//####### Register Globals !

extract($HTTP_ENV_VARS);
extract($HTTP_GET_VARS);
extract($HTTP_POST_VARS);
extract($HTTP_COOKIE_VARS);
extract($HTTP_SERVER_VARS);

//#########################


//################################################## RUNTIME


//---------------------------------------- PHP [important settings]

//max execution time of php (default 30) [300 recommended]
ini_set(max_execution_time, '300');

//ignore the user aborts and continue till end [must be 1]
ini_set (ignore_user_abort, '1');

// magic quotes runtime in HTML docs, SQL results (0=OFF ; 1=ON) [must be 0]
ini_set (magic_quotes_runtime, '0');

// magic quotes GPC in HTML docs, SQL results (0=OFF ; 1=ON) [must be 1]
ini_set (magic_quotes_gpc, '1');

//variables order (E=environment, G=get, P=post, C=cookie, S=server) [must be EGPCS]
ini_set (variables_order, 'EGPCS');

//register arg with GET (0=OFF ; 1=ON) [must be 1]
ini_set (register_argc_argv, '1');

//register globals (0=OFF ; 1=ON) [recommended 0]
ini_set (register_globals, '0');

//y2k compliance (0=OFF ; 1=ON) [recommended 0]
ini_set (y2k_compliance, '0');

//allow opening remote files (0=OFF ; 1=ON) [must be 1]
ini_set (allow_url_fopen, '1');

//----------------------------------------


//###################################################################


function i_install_show_header () {

	echo ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n");
	echo ("<!--:: xantis.warp.cms :: Xantis Warp - Content Management Server - v.1.2 :: ".date("Y-m-d")." :: ".date("H:i:s")." :: -->\n");
	echo ("<html>\n");
	echo ("<head>\n");
	echo ("<title>:: warp.cms v.1.2.1 - Installation ::</title>\n");
	echo ("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n");
	echo ("<meta http-equiv=\"expires\" content=\"1\">\n");
	echo ("<meta http-equiv=\"pragma\" content=\"no-cache\">\n");
	echo ("<meta http-equiv=\"cache-control\" content=\"private\">\n");
	echo ("</head>\n");
	echo ("<body bgcolor=\"#D8DDBF\" text=\"#000000\" link=\"#000000\" vlink=\"#000000\" alink=\"#000000\" leftmargin=\"10\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n");
	echo ("<!-- start page content -->\n\n");
	echo ('<br>');

} //end function



//###################################################################



function i_install_show_footer () {

	echo ("\n\n<!-- end page content -->\n");
	echo ("</body>\n</html>\n");

} //end function



//###################################################################


function i_mysql_install_connect ($dbhost, $loginname, $loginpass) {

	global $dbx_warp_id_mysql_link;

	//---------------------------------------- MySQL
	//connect or die
	$dbx_warp_id_mysql_link = @mysql_connect($dbhost, $loginname, $loginpass)
	or die ('<font color="#FF0000"><b>[Database Server: Connection ERROR !]</b></font>');

} //end function

function i_mysql_install_select_db ($dbname) {

	global $dbx_warp_id_mysql_link;

	//select or die
	@mysql_select_db ($dbname, $dbx_warp_id_mysql_link)
	or die ('<font color="#FF0000"><b>[Database Server: Cannot Select Database : '.$dbname.' !]</b></font>');
	//-----------------------------------

} //end function


//###################################################################


function i_xmysql_warp_wrx ($queryval) {

	global $xmy_wr_ok_msg, $xmy_wr_aff_msg;

	// def query vars
	//$queryval = "UPDATE tablename SET field='value' WHERE (id_field='val1')";
	//$queryval = "INSERT INTO tablename (desiredfield1, desiredfield2) VALUES ('val1', 'val2')";
	//$queryval = "DELETE FROM tablename WHERE (id_field='val1')";

	// do query
	$result = @mysql_query($queryval);
	$xmy_wr_ok_msg = '';
	$xmy_wr_aff_msg = '';


	//check mysql error
	if (@mysql_errno() == 0) {
		$xmy_wr_ok_msg = 'okmysqlwriteoperation';
		$xmy_wr_aff_msg = @mysql_affected_rows();
	} //end if
	else {
		$xresult = @mysql_error();
		echo ('<br><font color="#FF0000"><b>[MySQL ERROR : '.htmlspecialchars($xresult).']</b></font>');
		echo ('<br><font color="#FF0000">MySQL Query : '.htmlspecialchars($queryval).'</font>');
		die('');
	} //end else


	@mysql_free_result ($result);

} //end function



//###################################################################



function i_warp_setup_mysql ($xinst_http_addr, $xinst_https_addr, $xinst_https_port, $xinst_mail_srv, $xinst_email_adm, $xinst_email_offx) {

	global	$xmy_wr_aff_msg ;


	echo ('<br>');
	echo ('<br>');
	echo ('----------------------------------------------------------------------------------------------------------------------');
	echo ('<br>');
	echo ('<b>&gt;@ Installing the warp.cms SQL under MySQL ... </b>');
	echo ('<br>');


	//######## sql file installation

	echo ('&gt;:: Opening sql installation file `warp_cms_mysql_install.sql` ... ');
	$i_install_sql_cx_fd = fopen ('warp_cms_mysql_install.sql', "r") or die ('<font color="#FF0000"><b>[ERROR]</b></font>');
	echo ('<b>[Done]</b>');
	echo ('<br>');

	echo ('&gt;:: Reading sql installation file `warp_cms_mysql_install.sql` ... ');
	$i_install_sql_cx_content = fread ($i_install_sql_cx_fd, filesize ('warp_cms_mysql_install.sql'))  or die ('<font color="#FF0000"><b>[ERROR]</b></font>');
	echo ('<b>[Done]</b>');
	echo ('<br>');

	echo ('&gt;:: Validating sql installation file `warp_cms_mysql_install.sql` ... ');
	if ( (stristr($i_install_sql_cx_content, '[@hide@address.com@hide@address.com@hide@address.com@hide@address.com@hide@address.com@')) AND (stristr($i_install_sql_cx_content, '%w%a%r%p%.%c%m%s%v%1.2%]')) ) {

		//for validation
		echo ('<b>[Done]</b>');
		echo ('<br>');

		$i_install_sql_cx_content_arr = array();
		$i_install_sql_cx_content_arr = explode(" ;\n", $i_install_sql_cx_content);
		$i_install_sql_cx_content = '';

		echo ('&gt;:: Running sql installation file `warp_cms_mysql_install.sql` ... ');
		for ($xi=0; $xi<count($i_install_sql_cx_content_arr); $xi++) {
			i_xmysql_warp_wrx ($i_install_sql_cx_content_arr[$xi]);
		} //end for
		echo ('<b>['.$xi.' Instructions]</b>');
		echo ('<br>');
	} //end if
	else {
		echo ('<font color="#FF0000"><b>[ERROR]</b></font>') ;
		echo ('<br>');
		die ('Warning : warp.cms SQL installation file is not valid !]');
	} //end else
	fclose ($i_install_sql_cx_fd);


	//######## updating values

	i_xmysql_warp_wrx(" UPDATE config SET var_value='$xinst_http_addr' WHERE (var_name='ywebsite_addr') ");
	echo ('&gt;:: Updating config value for [Website HTTP Address] as `ywebsite_addr` in table `config` ... ');
	if ($xmy_wr_aff_msg == '1') {
		echo ('<b>[Done]</b>');
	} //end if
	else {
		echo ('<font color="#FF0000"><b>[NOT UPDATED]</b></font>');
	} //end else
	echo ('<br>');

	i_xmysql_warp_wrx(" UPDATE config SET var_value='$xinst_https_addr' WHERE (var_name='ywebsite_addr_secure') ");
	echo ('&gt;:: Updating config value for [Website HTTPS Secure Address] as `ywebsite_addr_secure` in table `config` ... ');
	if ($xmy_wr_aff_msg == '1') {
		echo ('<b>[Done]</b>');
	} //end if
	else {
		echo ('<font color="#FF0000"><b>[NOT UPDATED]</b></font>');
	} //end else
	echo ('<br>');

	i_xmysql_warp_wrx(" UPDATE config SET var_value='$xinst_https_port' WHERE (var_name='ywebsite_addr_secure_port') ");
	echo ('&gt;:: Updating config value for [Website HTTPS Secure Port] as `ywebsite_addr_secure_port` in table `config` ... ');
	if ($xmy_wr_aff_msg == '1') {
		echo ('<b>[Done]</b>');
	} //end if
	else {
		echo ('<font color="#FF0000"><b>[NOT UPDATED]</b></font>');
	} //end else
	echo ('<br>');

	i_xmysql_warp_wrx(" UPDATE config SET var_value='$xinst_mail_srv' WHERE (var_name='y_warp_mail_server_name') ");
	echo ('&gt;:: Updating config value for [Mail Server] as `y_warp_mail_server_name` in table `config` ... ');
	if ($xmy_wr_aff_msg == '1') {
		echo ('<b>[Done]</b>');
	} //end if
	else {
		echo ('<font color="#FF0000"><b>[NOT UPDATED]</b></font>');
	} //end else
	echo ('<br>');

	i_xmysql_warp_wrx(" UPDATE config SET var_value='$xinst_email_adm' WHERE (var_name='y_warp_admin_email') ");
	echo ('&gt;:: Updating config value for [Website Administrator E-Mail Address] as `y_warp_admin_email` in table `config` ... ');
	if ($xmy_wr_aff_msg == '1') {
		echo ('<b>[Done]</b>');
	} //end if
	else {
		echo ('<font color="#FF0000"><b>[NOT UPDATED]</b></font>');
	} //end else
	echo ('<br>');

	i_xmysql_warp_wrx(" UPDATE config SET var_value='$xinst_email_offx' WHERE (var_name='y_warp_office_email') ");
	echo ('&gt;:: Updating config value for [Website Contacts E-Mail Address] as `y_warp_office_email` in table `config` ... ');
	if ($xmy_wr_aff_msg == '1') {
		echo ('<b>[Done]</b>');
	} //end if
	else {
		echo ('<font color="#FF0000"><b>[NOT UPDATED]</b></font>');
	} //end else
	echo ('<br>');

	echo ('<b>&gt;@ warp.cms SQL installation Successfully !</b>');
	echo ('<br>');
	echo ('----------------------------------------------------------------------------------------------------------------------');
	echo ('<br>');
	echo ('<br>');


} //end function


//###################################################################


function i_warp_setup_do_cfg_file ($xinst_mysql_host, $xinst_mysql_db_name, $xinst_mysql_user, $xinst_mysql_passw) {

	echo ('<br>');
	echo ('<br>');
	echo ('----------------------------------------------------------------------------------------------------------------------');
	echo ('<br>');
	echo ('<b>&gt;@ Processing the warp.cms Configuration File ... </b>');
	echo ('<br>');

	//######## read template cfg
	echo ('&gt;:: Opening configuration template file `config_template.inc` ... ');
	$f_template_cfg = fopen ('config_template.inc', "r") or die ('<font color="#FF0000"><b>[ERROR]</b></font>');
	echo ('<b>[Done]</b>');
	echo ('<br>');

	echo ('&gt;:: Reading configuration template file `config_template.inc` ... ');
	$f_template_cfg_content = fread ($f_template_cfg, filesize('config_template.inc')) or die ('<font color="#FF0000"><b>[ERROR]</b></font>');
	echo ('<b>[Done]</b>');
	echo ('<br>');

	fclose($f_template_cfg);


	//######## write the real cfg file
	echo ('&gt;:: Creating warp.cms configuration file `config.php` ... ');
	$f_ucfg = fopen ('config.php', "w+") or die ('<font color="#FF0000"><b>[ERROR]</b></font>');
	echo ('<b>[Done]</b>');
	echo ('<br>');

	echo ('&gt;:: Writing warp.cms configuration file `config.php` ... ');
	fwrite ($f_ucfg, 
		'<?php'."\n"."\n".
		'// [configuration module v.1.2.1]'."\n".
		'// xantis.warp.cms - version 1.2'."\n".
		'// (c) 2002 xantis - all rights reserved'."\n".
		'// this code is registered and protected by international copyrights laws'."\n"."\n"."\n".
		'if (empty($yfilename)) {'."\n".
		'	$yfilename = \'config.php\';'."\n".
		'} //end if'."\n"."\n"."\n"."\n".
		'//################################################## MySQL'."\n"."\n".
		'//---------------------------------------conection param to mysql'."\n".
		'	$dbhost = "'."$xinst_mysql_host".'";'."\t\t".'//database host ("localhost:mysql_port" or enter "IP:mysql_port" - usually mysql port is 3306 )'."\n".
		'	$dbname = "'."$xinst_mysql_db_name".'";'."\t\t".'//database name'."\n".
		'	$loginname = "'."$xinst_mysql_user".'";'."\t\t".'//mysql user name'."\n".
		'	$loginpass = "'."$xinst_mysql_passw".'";'."\t\t".'//mysql password for that user name'."\n".
		'//---------------------------------------'."\n"."\n".
		'//##################################################'."\n"."\n"."\n".
		$f_template_cfg_content
	) or die ('<font color="#FF0000"><b>[ERROR]</b></font>');
	echo ('<b>[Done]</b>');
	echo ('<br>');

	fclose ($f_ucfg);

	echo ('<b>&gt;@ warp.cms Configuration File Created Successfully !</b>');
	echo ('<br>');
	echo ('----------------------------------------------------------------------------------------------------------------------');
	echo ('<br>');
	echo ('<br>');


} //end function


//###################################################################


//#########################################################################################################################


if ($op == 'do') {

	i_install_show_header ();

	$wx_dbhost = trim($wx_dbhost);
	$wx_dbusr = trim($wx_dbusr);
	$wx_dbpass = trim($wx_dbpass);
	$wx_dbname = trim($wx_dbname);

	$wx_http_addr = trim($wx_http_addr);
	$wx_https_addr = trim($wx_https_addr);
	$wx_https_port = trim($wx_https_port);

	$wx_mail_srv = trim($wx_mail_srv);
	$wx_eml_adm = trim($wx_eml_adm);
	$wx_eml_ofx = trim($wx_eml_ofx);

	if ( empty($wx_dbhost) OR empty($wx_dbusr) OR empty($wx_dbpass) OR empty($wx_dbname)
	     OR empty($wx_http_addr) OR empty($wx_https_addr) OR empty($wx_https_port) 
	     OR empty($wx_mail_srv) OR empty($wx_eml_adm) OR empty($wx_eml_ofx) ) {

		die ('<font color="#FF0000"><b>[ERROR : Empty Values Not Supported !]</b></font>');

	} //end if


	echo ('<br>');
	echo ('<br>');
	echo ('----------------------------------------------------------------------------------------------------------------------');
	echo ('<br>');
	echo ('<b>&gt;@ Initiating the warp.cms Installation Process ... </b>');
	echo ('<br>');

	echo ('&gt;:: Connecting to MySQL Server ... ');
	i_mysql_install_connect ($wx_dbhost, $wx_dbusr, $wx_dbpass);
	echo ('<b>[Done]</b>');
	echo ('<br>');

	echo ('&gt;:: Creating / Overwriting MySQL Database `'.$wx_dbname.'` ... ');
	i_xmysql_warp_wrx (" DROP DATABASE IF EXISTS $wx_dbname ");
	i_xmysql_warp_wrx (" CREATE DATABASE $wx_dbname ");
	echo ('<b>[Done]</b>');
	echo ('<br>');

	echo ('&gt;:: Selecting MySQL Database `'.$wx_dbname.'` ... ');
	i_mysql_install_select_db ($wx_dbname);
	echo ('<b>[Done]</b>');
	echo ('<br>');

	echo ('<b>&gt;@ warp.cms Initiation was Successfully !</b>');
	echo ('<br>');
	echo ('----------------------------------------------------------------------------------------------------------------------');
	echo ('<br>');
	echo ('<br>');

	i_warp_setup_do_cfg_file ($wx_dbhost, $wx_dbname, $wx_dbusr, $wx_dbpass);
	i_warp_setup_mysql ($wx_http_addr, $wx_https_addr, $wx_https_port, $wx_mail_srv, $wx_eml_adm, $wx_eml_ofx);

	echo ('<br>');
	echo ('<br>');
	echo ('<b>Important :</b>');
	echo ('<br>');
	echo ('- Move the generated configuration file `config.php` from install dir to the warp.cms root folder.');
	echo ('<br>');
	echo ('- After moving the file you MUST Delete / Move the installation folder outside the http_root. If you will not do so, anyone can overwrite your database.');
	echo ('<br>');
	echo ('- To enter the warp.cms administration mode type in browser : <a href="'.$wx_http_addr.'ax_main.php'.'">`'.$wx_http_addr.'ax_main.php'.'`</a> - [username : `administrator_1` ; password `administrator_1`. You should change administration password(s) after entering administration.');
	echo ('<br>');
	echo ('- To change de warp.cms configuration follow the documentation in the administration mode.');
	echo ('<br>');
	echo ('<br>');

	i_install_show_footer ();

} //end if
else {

	i_install_show_header ();

?>

<form name="warp_inst_frm" method="post" action="install_warp.php">
  <input name="op" type="hidden" id="op" value="do">
  <table width="800" border="1" cellspacing="0" cellpadding="0">
	<tr> 
	  <td colspan="3"><div align="center"><font size="4"><b>:: Warp.CMS :: - Installation</b></font></div></td>
	</tr>
	<tr> 
	  <td colspan="3">&nbsp;</td>
	</tr>
	<tr> 
	  <td colspan="3"><p><b><font color="#FF0000">Minimum SERVER-SIDE requirements 
		  to run / install / administrate the warp.cms :</font></b><br>
		  &#8212; <b>Operating System</b> : any POSIX {with glibc 2.2 or later} 
		  platform as (Linux, Unix, BSD, Sun, ...) / any Windows NT platform as 
		  (NT4 / 2000 / XP Pro, Windows 32 Servers) / MacOSX (9.1) - [or later 
		  versions]<br>
		  &#8212; <b>HTTP Server</b> : Apache 1.3.24 {SSL128} / Apache 1.3.24- 
		  [or later versions]<br>
		  &#8212; <b>Scripting</b> : PHP 4.2.3 running as Apache Module - [or 
		  later versions]<br>
		  &#8212; <b>SQL Server</b> : MySQL Database Server : 3.23.38 - [or later 
		  versions]<br>
		  &#8212; <b>Mail Server</b> : Any stable SMTP mail server such as XMail 
		  / QMail / ...<br>
		  &#8212; <b>Internet Browser</b> : Any stable internet browser as :<br>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- on Win32 
		  platforms (IE5.5 / Netscape 4.75 / Opera 6.05 / Mozilla 1.1) - [or later 
		  versions]<br>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- on POSIX 
		  platforms (Mozilla 1.1) - [or later versions]<br>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- on MacOSX 
		  platforms (IE5.5 / Netscape 7 / Mozilla 1.1) - [or later versions]<br>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Please note 
		  the under other browsers warp.cms was not tested an may not function 
		  correctly !<br>
		  &#8212; <b>Macromedia Flash</b> : Flash Player Plugin for the internet 
		  browser :<br>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- on Win32 
		  platforms (Flash Player v.6.0.47.0) - [or later versions]<br>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- on POSIX 
		  {with glibc 2.2 or later} platforms (Flash Player v.6.0.60.58) - [or 
		  later versions]<br>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- on MacOSX 
		  platforms (Flash Player v.6.0.47.0) - [or later versions] <br>
		  <br>
		  <b><font color="#FF0000">Minimum CLIENT-SIDE requirements to visit the 
		  warp.cms generated website : </font></b><br>
		  &#8212; <b>Operating System</b> : any POSIX {with glibc 2.2 or later} 
		  platform as (Linux, Unix, BSD, Sun, ...) / any Windows 32 platform as 
		  (Windows 95 / 98 / 98SE / NT4 / Me / 2000 / XP Home / XP Pro, Windows 
		  32 Servers) / Mac (OS 9 / OSX 9.1) - [or later versions]<br>
		  &#8212; <b>Internet Browser</b> : Any stable internet browser as :<br>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- on Win32 
		  platforms (IE5.5 / Netscape 4.75 / Opera 6.05 / Mozilla 1.1) - [or later 
		  versions]<br>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- on POSIX 
		  platforms (Mozilla 1.1) - [or later versions]<br>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- on MacOSX 
		  platforms (IE5.5 / Netscape 7 / Mozilla 1.1) - [or later versions]<br>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Please note 
		  the under other browsers warp.cms was not tested an may not function 
		  correctly !<br>
		  &#8212; <b>Macromedia Flash</b> : Flash Player Plugin for the internet 
		  browser :<br>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- on Win32 
		  platforms (Flash Player v.6.0.47.0) - [or later versions]<br>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- on POSIX 
		  {with glibc 2.2 or later} platforms (Flash Player v.6.0.60.58) - [or 
		  later versions]<br>
		  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- on MacOSX 
		  platforms (Flash Player v.6.0.47.0) - [or later versions] <br>
		</p></td>
	</tr>
	<tr> 
	  <td colspan="3">&nbsp;</td>
	</tr>
	<tr> 
	  <td colspan="3"><font size="4"><b>All these values must be set :</b></font></td>
	</tr>
	<tr> 
	  <td colspan="3"><font color="#FF0000">Important Information : If you hit 
		the `Install Now` button the MySQL database will be created / re-created. 
		To create or re-create the MySQL database as warp.cms database the database 
		name provided at installation will be used. If you have entered a database 
		name that currently exists on the MySQL server, the old database will 
		be DROPPED (DELETED) and a new database will be created. You must be sure 
		before entering a database name that you will not overwrite other database. 
		The username and password must grant all required privileges as : select 
		; create / insert ; edit / update ; change / alter / index ; delete / 
		drop ; optimize / repair / backup. If not all this privileges will be 
		granted you will not be able to full administrate warp.cms.</font></td>
	</tr>
	<tr> 
	  <td colspan="3">&nbsp;</td>
	</tr>
	<tr> 
	  <td>[MySQL Database Host]<br>
		<b>`dbhost`</b><br> </td>
	  <td><div align="center">
		  <input name="wx_dbhost" type="text" id="wx_dbhost" value="localhost:3306" size="50" maxlength="255">
		</div></td>
	  <td>This value is the name of the MySQL server. The MySQL server can be 
		installed on the same machine or remote. If installed remote you must 
		enter the IP address and the port if different than standard (`3306`). 
		If installed on the same machine you can use `localhost`.</td>
	</tr>
	<tr> 
	  <td>[MySQL Login User Name]<br>
		<b>`loginname`</b><br> </td>
	  <td><div align="center">
		  <input name="wx_dbusr" type="text" id="wx_dbusr" value="mysql username" size="50" maxlength="255">
		</div></td>
	  <td>Enter a valid login username for the MySQL server. This username must 
		be from a valid account with all mentioned privileges.</td>
	</tr>
	<tr>
	  <td>[MySQL Login Password]<br>
		<b>`loginpass`</b><br>
	  </td>
	  <td><div align="center">
		  <input name="wx_dbpass" type="text" id="wx_dbpass" value="mysql password" size="50" maxlength="255">
		</div></td>
	  <td>Enter a valid login password for the MySQL server for the login username.</td>
	</tr>
	<tr> 
	  <td>[MySQL Database Name]<br>
		<b>`dbname`</b><br>
	  </td>
	  <td><div align="center">
		  <input name="wx_dbname" type="text" id="wx_dbname" value="warp_cms_v121" size="50" maxlength="255">
		</div></td>
	  <td>Enter a database name for the warp.cms mysql database. Use only small 
		characters (caps) from `a`..`z` and numbers from `0`..`9`. Do not use 
		spaces. Using spaces is not *officially supported because of the cross 
		platform portability. Instead of use spaces use `_` (underscore) character.</td>
	</tr>
	<tr> 
	  <td width="196">[Website HTTP Address]<br> <b>`ywebsite_addr`</b></td>
	  <td width="300"> <div align="center"> 
		  <input name="wx_http_addr" type="text" id="wx_http_addr2" value="http://www.yourdomain.com/" size="50" maxlength="255">
		</div></td>
	  <td width="296">This value is the domain name under warp.cms will be installed.<br>
		The domain name must be under this format : `http://www.yourdomain.com/`. 
		The end slash is required. If this address is not set correctly, the warp.cms 
		will not function correctly.</td>
	</tr>
	<tr> 
	  <td>[Website HTTPS Secure Address]<br> <b>`ywebsite_addr_secure`</b></td>
	  <td> <div align="center"> 
		  <input name="wx_https_addr" type="text" id="wx_https_addr" value="https://secure.yourdomain.com/" size="50" maxlength="255">
		</div></td>
	  <td>This value is the SSL 128 secured domain name under warp.cms will be 
		installed.<br>
		The domain name must be under this format : `https://secure.yourdomain.com/`. 
		The end slash is required. If this address is not set correctly, the warp.cms 
		will not function correctly. <br> <font color="#FF0000">If your http server 
		cannot assure a secured HTTPS domain name some of the warp.cms functionality, 
		you should enter the same address as for [Website HTTP Address]`ywebsite_addr` 
		= 'http://www.yourdomain.com/', but in this case it is not recommended 
		to use the e-commerce module because the WARP.CMS SECURITY will not be 
		SAFE 100%.</font></td>
	</tr>
	<tr> 
	  <td>[Website HTTPS Secure Port]<br> <b>`ywebsite_addr_secure_port`</b></td>
	  <td> <div align="center"> 
		  <input name="wx_https_port" type="text" id="wx_https_port" value="443" size="4" maxlength="4">
		</div></td>
	  <td>This value is the port of the address entered at [Website HTTPS Secure 
		Address]<br>
		`ywebsite_addr_secure`. If you entered a secured HTTPS domain, usualy 
		the port is `443`, if you cannot assure a secured HTTPS domain and you 
		set a HTTP domain instead of HTTPS the standard port is `80`. Anyway you 
		should check this values in the Apache Configuration File `httpd.conf` 
		to see the correct values. If this value is not set correctly, the warp.cms 
		will not function correctly, and the security will be broken.</td>
	</tr>
	<tr> 
	  <td>[Mail Server]<br> <b>`y_warp_mail_server_name`</b></td>
	  <td> <div align="center"> 
		  <input name="wx_mail_srv" type="text" id="wx_mail_srv" value="localhost" size="50" maxlength="255">
		</div></td>
	  <td>This value is the name of the email server. The email server can be 
		installed on the same machine or remote. If installed remote you must 
		see the real domain name such as `mail.myserver.com`, or what is set. 
		If the email server resides on the same machine, `localhost` can be set 
		as value, or alternative in both cases the IP address or IP address : 
		Port can be set. If this value is not set correctly the mail functions 
		will not be avaliable on warp.cms. Without mail functionality warp.cms 
		will be affected and some parts will not work at all.</td>
	</tr>
	<tr> 
	  <td>[Website Administrator E-Mail Address]<br> <b>`y_warp_admin_email`</b></td>
	  <td> <div align="center"> 
		  <input name="wx_eml_adm" type="text" id="wx_eml_adm" value="hide@address.com" size="50" maxlength="255">
		</div></td>
	  <td>This value is the e-mail address where all the enquiries addressed to 
		the website administrator will be sent. If you enter a wrong e-mail address 
		all the messages will be lost.</td>
	</tr>
	<tr> 
	  <td>[Website Contacts E-Mail Address]<br> <b>`y_warp_office_email`</b></td>
	  <td> <div align="center"> 
		  <input name="wx_eml_ofx" type="text" id="wx_eml_ofx" value="hide@address.com" size="50" maxlength="255">
		</div></td>
	  <td>This value is the e-mail address where all the other (sales, office, 
		general contact) enquiries addressed will be sent. If you enter a wrong 
		e-mail address all the messages will be lost.<br> <font color="#FF0000">If 
		you cannot assure a second e-mail address you should enter the same e-mail 
		address as for administrator e-mail address. In this case all the messages 
		will be sent on the same e-mail address.</font></td>
	</tr>
	<tr> 
	  <td colspan="3">&nbsp;</td>
	</tr>
	<tr> 
	  <td colspan="3"> <div align="center"> 
		  <input type="submit" name="Submit" value="Install Now">
		</div></td>
	</tr>
  </table>
</form>

<?

	i_install_show_footer ();

} //end else


//end of php file
?>
Return current item: Warp.cms - php/mysql content management