<?php
/**
* @version $Id: install.php,v 1.6 2005/02/14 09:47:42 kochp Exp $
* @package Mambo
* @copyright (C) 2000 - 2005 Miro International Pty Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Mambo is Free Software
* Modified By Massimo Chieruzzi @ Creative Web snc  
* More info http://www.knomos.org - http://www.creativeweb.it 
*/

if (file_exists( "../config/config.php" ) && filesize( "../config/config.php" ) > 10) {
    header( "Location: ../index.php" );
    exit();
}
		
		
/** Include common.php */
include_once( "common.php" );
function writableCell( $folder ) {
	echo "<tr>";
	echo "<td class=\"item\">" . $folder . "/</td>";
	echo "<td align=\"left\">";
	echo is_writable( "../$folder" ) ? '<b><font color="green">Writeable</font></b>' : '<b><font color="red">Unwriteable</font></b>' . "</td>";
	echo "</tr>";
}
?>
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Knomos - Web Installer</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="../../images/favicon.ico" />
<link rel="stylesheet" href="install.css" type="text/css" />
<script type="text/javascript">
<!--
var checkobj;

function agreesubmit(el){
	checkobj=el;
	if (document.all||document.getElementById){
		for (i=0;i<checkobj.form.length;i++){  //hunt down submit button
			var tempobj=checkobj.form.elements[i];
			if(tempobj.type.toLowerCase()=="submit")
				tempobj.disabled=!checkobj.checked;
		}
	}
}

function defaultagree(el){
	if (!document.all&&!document.getElementById){
		if (window.checkobj&&checkobj.checked)
			return true;
		else{
			alert("Please read/accept license to continue installation");
			return false;
		}
	}
}
//-->
</script>
</head>
<body onload="document.adminForm.next.disabled=true;">
<div id="wrapper">
  <div id="header">
    <div id="knomos"> <img src="header_install.png" class="logo" alt="Knomos Installation" />
        <div class="version">Knomos v .1.0</div>
        <div class="clear-chusmy">&nbsp;</div>
    </div>
  </div>
</div>
<div id="ctr" align="center">
    <form action="install1.php" method="post" name="adminForm" id="adminForm" onSubmit="return defaultagree(this)">
    <div class="install">
    <div id="stepbar">
      	<div class="step-ok">pre-installation check</div>
      	<div class="step-on">license</div>
      	<div class="step-off">step 1</div>
      	<div class="step-off">step 2</div>
      	<div class="step-off">step 3</div>
      </div>
      <div id="right">
        <div id="step">license</div>
        <div class="far-right">
          <input class="button" type="submit" name="next" value="Next &gt;&gt;" disabled="disabled"/>
        </div>
        <div class="clr"></div>
          <h1>GNU/GPL License:</h1>
          <div class="licensetext">
    			 <a href="http://www.knomos.org" target="_blank">Knomos</a> is Free Software released under the GNU/GPL License.
    			 <div class="error">*** To continue installing Knomos you must check the box under the license ***</div>

          </div>
          <div class="clr"></div>
          <div class="license-form">
            <div class="form-block" style="padding: 0px;">
    		      <iframe src="gpl.html" class="license" frameborder="0" scrolling="auto"></iframe>
            </div>
          </div>
          <div class="clr"></div>
          <div class="ctr">
    			   <input type="checkbox" name="agreecheck"  class="inputbox" onClick="agreesubmit(this)" />
    		     I Accept the GPL License
	    </div>
          <div class="clr"></div>
      </div>
        <div id="break"></div>
      <div class="clr"></div>
    <div class="clr"></div>
	</div>
    </form>
</div>
<div class="ctr">
<a href="http://www.knomos.org" target="_blank">Knomos</a> Web Installer based on <a href="http://www.mamboserver.com" target="_blank">Mambo</a>'s web installer. Mambo And Knomos are Free Software released under the GNU/GPL License.
</div>

</body>
</html>
