<?php
/*
 ########################################################################
#                                                                        #
#           Version 4       /                        /   /               #
#          -----------__---/__---__------__----__---/---/-               #
#           | /| /  /___) /   ) (_ `   /   ) /___) /   /                 #
#          _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___               #
#                       Free Content / Management System                 #
#                                   /                                    #
#                                                                        #
#                                                                        #
#   Copyright 2005-2006 by webspell.org                                  #
#                                                                        #
#   visit webSPELL.org, webspell.info to get webSPELL for free           #
#   - Script runs under the GNU GENERAL PUBLIC LICENSE                   #
#   - It's NOT allowed to remove this copyright-tag                      #
#   -- http://www.fsf.org/licensing/licenses/gpl.html                    #
#                                                                        #
#   Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at),   #
#   Far Development by Development Team - webspell.org                   #
#                                                                        #
#   visit webspell.org                                                   #
#                                                                        #
 ########################################################################
*/
?>

<?php if($_POST[agree] == "1") { 
function getwspath() {
	$path=$_SERVER['SERVER_ADDR'].$_SERVER['PHP_SELF'];
	return str_replace('/install/index.php','',$path);
}

function getwebserver($path) {
	$path=str_replace('http://','',$path);
	$server = str_replace(strstr($path,'/'),'',$path);
	if(substr($server,0,3) == 'www') $server = substr(strstr($server,'.'),1);
	return $server;
	
}
?>

Please enter the url where webspell should be installed <br>
http://<input type="text" name="hp_url" value="<?php echo getwspath(); ?>" size="50" style="border:0px;" >
<br><br>
<a href="javascript:document.ws_install.submit()"><img src="images/continue.gif" width="136" height="28" border="0"></a>

<?php } else{ ?>

You have to agree with the GNU GPL to install webspell on your server!

<?php } ?>
