<!--
//***************************************************************************
//Copyright 2008 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">
<?PHP
//uninstallationsfunktion
$zaehler=0;
$PATH='';
//cgi-pfad ermitteln
$fp=fopen("./cgiPath.cfg", "r");
if ($fp!=false) {
$PATH=fgets($fp);
fclose($fp);
}
$PATH=str_replace("\n", "", $PATH);
$PATH=str_replace("\r", "", $PATH);
//dateien löschen
if ($PATH!='' && is_dir($PATH . '/NewWI')==true) {
unlink($PATH . '/NewWI/index.cgi');
unlink($PATH . "/NewWI/config.cgi");
unlink($PATH . "/NewWI/Path.cfg");
rmdir($PATH . "/NewWI");
unlink("./Config/config.cfg");
unlink("./cgiPath.cfg");
echo 'Delet files successful. You can now delet your folder.';
echo '<br><a href="index.php">Link to FSGFreeWI</a>';
}
else echo "Can't delet files, because of wrong path (" . $PATH . "). Please delet the folder at 'cgi-bin-Path'/NewWI manually";
?>
</body>
</html>