Location: PHPKode > projects > Netautor Professional > netautor/napro4/admin/install/setup_7.php
<?php
/* +----------------------------------------------------------------------+
   | Netautor Professional Application Server                             |
   +----------------------------------------------------------------------+
   | Copyright (C) 1998-2005 digiconcept GmbH. <www.digiconcept.net>      |
   +----------------------------------------------------------------------+
   | This file is subject to license, that is bundled with this package   |
   | in the file LICENSE.TXT, and is available at through the             |
   | world-wide-web at http://www.netautor.com/license/                   |
   |                                                                      |
   | If you did not receive a copy of the license and are unable to       |
   | obtain it through the world-wide-web, please send a note to          |
   | hide@address.com so we can mail you a copy.                      |
   +----------------------------------------------------------------------+
   | Authors: Stefan Rottensteiner <hide@address.com>    |
   |          Marek  Kadziela      <hide@address.com>	      |
   |          Gregor Wollner                                              |
   |          Christian Unger                                             |
   |          Helli  Kleinhans 											  |
   +----------------------------------------------------------------------+*/

/**
 * Setup finished.
 * 
 * @author Stefan Rottensteiner
 * @version $Revision: 1.23 $
 */
require_once ('./setup.inc'); 

if (file_exists('../../../config/base.php') && empty($_POST['SETUP_CHECK']))
{
	Header('Location: setup_again.php');
	exit();
}

error_reporting(0);
include_once	('../../include/init.inc');

?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<meta name="Description" content="<?php echo SOFTWARE_NAME_FULL;?> <?php echo SOFTWARE_VERSION_FULL;?> Finish">
	<title><?php echo SOFTWARE_NAME_FULL; ?> <?php echo SOFTWARE_VERSION_FULL;?> Finish</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="Expires" content="0">
	<meta name="robots" content="noindex,nofollow">
	<link href="../../include/netautor.css" rel="stylesheet" type="text/css" src="../../include/netautor.css">		
</head>
<script language="JavaScript" type="text/javascript">
<!--
	parent.frames['SETUP_HEAD'].document.setTitle('<?php echo (strtr($SETUP_LANGUAGE_TEXT['setup_step'],array('%1'=>'7','%2'=>'7')));?>');
	function openWindow(location,title)
	{
		var w = window.open(location,title);
		if (w) w.focus();
	}
//-->
</script>
<!-- 
<?php 
	includeNaPro('mversion');
	/* Netautor registireren */
	version_set($sql_world,'software','napro',SOFTWARE_VERSION_FULL);
?>
-->
<body bgcolor="White" text="Black" leftmargin=1 topmargin=1>
<br>
<br>
<table border="0" cellspacing="0" cellpadding="0" align="center" valign="top">
	<tr>
		<td align="center" valign="top" colspan="3" class="text">		
			<table width="700" border="0" align="center" class="bgwindow700">
				<tr>
					<td width="694" colspan="2" align="left" valign="top" class="head">
						<img src="../../grafik/pixel.gif" width="1" height="7"><br>
						<?php echo ($SETUP_LANGUAGE_TEXT['setup_step_7']['title']); ?><br>
						<img src="../../grafik/spacer_700.gif" width="694" height="13"><br>
					</td>
				</tr>		
				<tr>
					<td colspan="2" valign="top" class="text">
						<?php echo($SETUP_LANGUAGE_TEXT['setup_step_7']['info']);?>
						<br>
						<br>
					</td>					
				</tr>
				<?php
					if (empty($SERVER_NAME)) $SERVER_NAME=getenv('SERVER_NAME');
					if (empty($SERVER_NAME)) $SERVER_NAME=$GLOBALS['HTTP_SERVER_VARS']['SERVER_NAME'];
					if (empty($SERVER_NAME)) @$SERVER_NAME=$_SERVER['SERVER_NAME'];

					if (empty($SERVER_PORT)) $SERVER_PORT=getenv('SERVER_PORT');
					if (empty($SERVER_PORT)) $SERVER_PORT=$GLOBALS['HTTP_SERVER_VARS']['SERVER_PORT'];
					if (empty($SERVER_PORT)) @$SERVER_PORT=$_SERVER['SERVER_PORT'];

					if (empty($SERVER_SOFTWARE)) $SERVER_SOFTWARE=getenv('SERVER_SOFTWARE');
					if (empty($SERVER_SOFTWARE)) $SERVER_SOFTWARE=$GLOBALS['HTTP_SERVER_VARS']['SERVER_SOFTWARE'];
					if (empty($SERVER_SOFTWARE)) @$SERVER_SOFTWARE=$_SERVER['SERVER_SOFTWARE'];
				?>
				<tr>
					<td width="50%" valign="top" class="text" >
						<?php echo($SETUP_LANGUAGE_TEXT['date']);?>
					</td>
					<td width="60%" valign="top" class="text">
						<?php echo date('d F Y, H:i:s',time());?>
					</td>
				</tr>					
				<tr>
					<td width="50%" valign="top" class="text" >
						server name
					</td>
					<td width="60%" valign="top" class="text">
						<?php echo $SERVER_NAME; if (!empty($SERVER_PORT)) echo ':'.$SERVER_PORT;?>
					</td>
				</tr>					
				<tr>
					<td valign="top" class="text" >
						server software
					</td>
					<td valign="top" class="text" >
						<?php echo $SERVER_SOFTWARE;?>
					</td>
				<tr>					
				</tr>
					<td valign="top" class="text" >
						PHP version
					</td>
					<td valign="top" class="text" >
						<?php echo phpversion();?>
					</td>
				</tr>
				</tr>
					<td valign="top" class="text" >
						ZEND version
					</td>
					<td valign="top" class="text" >
						<?php echo zend_version();?>
					</td>
				</tr>
				<tr>
					<td valign="top" class="text" >
						<?php echo($SETUP_LANGUAGE_TEXT['setup_step_2']['os']);?>
					</td>
					<td valign="top" class="text" >
						<?php echo $PATH_OS;?>
					</td>
				</tr>
				</tr>
					<td colspan="2" align="center" valign="top" class="text">
						<hr width="100%" size="1" noshade>
					</td>
				</tr>
				<tr>
					<td valign="top" class="text" >
						<?php echo SOFTWARE_NAME_FULL;?>
					</td>
					<td valign="top" class="text" >
						<?php echo SOFTWARE_VERSION_FULL;?>
					</td>
				</tr>
				<tr>
					<td valign="top" class="text" >
						<?php echo($SETUP_LANGUAGE_TEXT['setup_step_2']['dir_base']);?>
					</td>
					<td valign="top" class="text" >
						<?php echo $PATH_INSTALL;?>
					</td>
				</tr>
				</tr>
					<td colspan="2" align="center" valign="top" class="text">
						<hr width="100%" size="1" noshade>
					</td>
				</tr>				
				<tr>
					<td valign="top" class="text" >
						<?php echo($SETUP_LANGUAGE_TEXT['db_vendor']);?>
					</td>
					<td valign="top" class="text" >
						<?php 
							switch ($SQL_VENDOR)
							{
								case 'mysql':	echo 'mySQL'; break;
								case 'mysqli':	echo 'mySQLi (Beta!)'; break;
								case 'oci_817':	echo 'Oracle OCI 8.17'; break;
								case 'oci':		echo 'Oracle OCI 8.05'; break;
								case 'odbc':	echo 'MS-SQL via ODBC'; break;
								case 'mssql':	echo 'MS-SQL via PHP'; break;
								case 'informix':echo 'Informix (Beta!)'; break;
								case 'pgsql':	echo 'PostgresSQL (Beta!)'; break;
							}
						?>
					</td>
				</tr>
				<tr>
					<td valign="top" class="text" >
						<?php echo($SETUP_LANGUAGE_TEXT['db_host'][$SQL_VENDOR]);?>
					</td>
					<td valign="top" class="text" >
						<?php echo $SQL_HOST;?>
					</td>
				</tr>
				<tr>
					<td valign="top" class="text" >
						<?php echo($SETUP_LANGUAGE_TEXT['db_sid'][$SQL_VENDOR]);?>
					</td>
					<td valign="top" class="text" >
						<?php echo $SQL_SID;?>
					</td>
				</tr>
				<tr>
					<td valign="top" class="text" >
						<?php echo($SETUP_LANGUAGE_TEXT['db_uid']);?>
					</td>
					<td valign="top" class="text" >
						<?php echo $SQL_UID;?>
					</td>
				</tr>
				<tr>
					<td valign="top" class="text" >
						<?php echo($SETUP_LANGUAGE_TEXT['db_pwd']);?>
					</td>
					<td valign="top" class="text" >
						<?php echo $SQL_PWD;?>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center" valign="top" class="text">
						<hr width="100%" size="1" noshade>
					</td>
				</tr>
				<tr>
					<td valign="top" class="text" >
						<?php echo($SETUP_LANGUAGE_TEXT['setup_step_4']['napro_uid']);?>
					</td>
					<td valign="top" class="text" >
						<?php echo $NAPRO_UID;?>
					</td>
				</tr>
				<tr>
					<td valign="top" class="text" >
						<?php echo($SETUP_LANGUAGE_TEXT['setup_step_4']['napro_pwd']);?>
					</td>
					<td valign="top" class="text" >
						<?php echo $NAPRO_PWD;?>
					</td>
				</tr>
			</table>
			<img src="../../grafik/bgwindow_482_stop.gif" width="700" height="14"><br>
			<table class="bgwindow700" width="700" border=0 align="center" >
				<tr>
					<?php 
						$digitalworkroom = false;
						if (file_exists('../../../../digitalworkroom/'))
						{
							/* DigitalWorkroom vorhanden */
							$digitalworkroom 		= true;
							/* Starte DigitalWorkroom Installation*/
							$digitalworkroom_start	= 'install.php?SETUP_LANGUAGE='.SETUP_LANGUAGE;

							$digitalworkroom_version = version_get($sql_world,'software','dwr');

							if (!empty($digitalworkroom_version))
							{
								/* Digitalworkroom installiert*/
								if (file_exists('../../../../digitalworkroom/index.php'))
								{
									/* Als installiert gemeldet, Index-Seite vorhanden */
									$digitalworkroom_start = 'index.php';
								}
							}
						}
					?>
					<?php if ($digitalworkroom) :?>
						<td widht="33%" class="text" align="center" >
							<input type="button" class="create" value="Netautor Login" 	onClick="openWindow('../../index.php','NetautorProfessional');" >
						</td>					
						<td widht="34%" class="text" align="center" >
							<input type="button" class="create" value="<?php echo($SETUP_LANGUAGE_TEXT['print']);?>" 	onClick="window.print();" >
						</td>					
						<td widht="33%" class="text" align="center" >
							<input type="button" class="create" value="<?php echo( ( $digitalworkroom_start == 'index.php' ?  $SETUP_LANGUAGE_TEXT['setup_step_7']['dw_login'] : $SETUP_LANGUAGE_TEXT['setup_step_7']['dw_install'] )); ?>" 	onClick="openWindow('../../../../digitalworkroom/<?php echo $digitalworkroom_start;?>','DigitalWorkroom');" >
						</td>					
					<?php else :?>
						<td widht="50%" class="text" align="center" >
							<input type="button" class="create" value="Netautor Login" 	onClick="openWindow('../../index.php','NetautorProfessional');" >
						</td>					
						<td widht="50%" class="text" align="center" >
							<input type="button" class="create" value="<?php echo($SETUP_LANGUAGE_TEXT['print']);?>" 	onClick="window.print();" >
						</td>					
					<?php endif;?>
				</tr>
			</table>
			<img src="../../grafik/bgwindow_482_stop.gif" width="700" height="14"><br>			
		</td>
	</tr>
</table>
<br>
<br>
</body>
</html>
Return current item: Netautor Professional