Show uninstall.php syntax highlighted
<?php
/**
* @author Tomas Hlava <th@red2head.com>
* @author Paul Baranowski <paul@paulbaranowski.org>
* @version $Revision: 2835 $
* @package Campcaster
* @subpackage ArchiveServer
* @copyright 2006 MDLF, Inc.
* @license http://www.gnu.org/licenses/gpl.txt
* @link http://www.campware.org
*/
// Do not allow remote execution.
$arr = array_diff_assoc($_SERVER, $_ENV);
if (isset($arr["DOCUMENT_ROOT"]) && ($arr["DOCUMENT_ROOT"] != "") ) {
header("HTTP/1.1 400");
header("Content-type: text/plain; charset=UTF-8");
echo "400 Not executable\r\n";
exit;
}
echo "***************************\n";
echo "* ArchiveServer Uninstall *\n";
echo "***************************\n";
require_once('../conf.php');
require_once('../../../storageServer/var/install/installInit.php');
require_once('../../../storageServer/var/install/uninstallMain.php');
echo "************************************\n";
echo "* ArchiveServer Uninstall Complete *\n";
echo "************************************\n";
?>
See more files for this project here