Location: PHPKode > projects > FSG Free Web-Interface > InstallFSGFreeWI_2008_06_12_alpha/index.php
<!--
//***************************************************************************
//Copyright 2007 Johannes, Storm
//
//
//This file is part of FSG Free Web-Interface.
//
//FSG Free Web-Interface 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, either version 3 of the License.
//
//FSG Free Web-Interface 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 FSG Free Web-Interface.  If not, see <http://www.gnu.org/licenses/>.
//***************************************************************************
-->



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>FSG - New Webinterface</title>
		<link rel="stylesheet" type="text/css" href="styles/generell.css">
		<link rel="stylesheet" type="text/css" href="styles/start.css">
	</head>
	<body class="generell">
	
		<table class="All" cellspacing="0" cellpadding="0">
		 <tbody>
		  <tr>
		   <td valign="middle">
		   
		     <table class="Display_Box" cellspacing="0" cellpadding="0">
		     <tbody>
		      <tr>
		       <td class="Display_Links" valign="middle">
		        &nbsp;
		       </td>
			   <td class="Display_Mitte" align="center" valign="middle">
				
				<?PHP
					$IsConfig=0;
					$IsInstall=0;
					$Path='';
					if (file_exists("./cgiPath.cfg")) {
						$fp=fopen("./cgiPath.cfg", "r");
						if ($fp!=false) {
							$Path=trim(fgets($fp, 100));
							$Alias=trim(fgets($fp, 100));
							fclose($fp);
							if ($Path!=false) {
								if (file_exists($Path . '/NewWI/index.cgi')) {
									$IsInstall=1;
									if (file_exists("Config/config.cfg")) {
										$IsConfig=1; } } } } }
					
					//Admin-button einfügen
					if ($IsInstall==0 || $IsConfig==0) {
						echo '
					        <div class="Start_Links_Dea">
					         Administrator
							</div>'; }
					else {
						echo '
					        <a href="' . $Alias . '/NewWI/index.cgi">
					         <div class="Start_Links">
					          Administrator
							 </div>
					        </a>'; }
					
					//config-button einfügen
					if ($IsInstall==0) {
						echo '
					        <div class="Start_Links_Dea">
					         WI Config
							</div>'; }
					else {
						echo '
					        <a href="' . $Alias . '/NewWI/config.cgi">
					         <div class="Start_Links">
					          WI Config
							 </div>
					        </a>'; }
					
					//install-button einfügen
					if ($IsInstall==1) {
						echo '
					        <div class="Start_Links_Dea">
					         WI Install
							</div>'; }
					else {
						echo '
					        <a href="install.php">
					         <div class="Start_Links">
					          WI Install
							 </div>
					        </a>'; }
				?>
			        
		       </td>
			   <td class="Display_Rechts" valign="middle">
		        &nbsp;
		       </td>
		      </tr>
	         </tbody>
		    </table>
			<div class="SmallLinks">
				<a href="rescue.php">Rescue System</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="LICENSE">LICENSE</a>
			</div>
			
		   </td>
		  </tr>
		 </tbody>
		</table>
				
	</body>
</html>





Return current item: FSG Free Web-Interface