File "defaultActionHead.php"
Full Path: /home/analogde/www/filetypes/defaultActionHead.php
File size: 2.18 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/***************************************************************
* Copyright notice
*
* (c) 2003-2004 Tobias Bender (tobias@phpXplorer.org)
* All rights reserved
*
* This script is part of the phpXplorer project. The phpXplorer project 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 2 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
* A copy is found in the textfile GPL.txt distributed with these scripts.
*
* This script 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.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
if(get_magic_quotes_gpc()){
function strip_slashes_deep($var){
if(is_array($var)){
foreach($var as $index => $value)
$var[$index] = strip_slashes_deep($value);
}else{
$var = stripslashes($var);
}
return $var;
}
$HTTP_POST_VARS = strip_slashes_deep($HTTP_POST_VARS);
$HTTP_GET_VARS = strip_slashes_deep($HTTP_GET_VARS);
$HTTP_COOKIE_VARS = strip_slashes_deep($HTTP_COOKIE_VARS);
}
require(dirname(dirname(__FILE__)) . "/config.php");
$currentDir = getRequestVar("currentDir");
# check for url manipulation
require(dirname(dirname(__FILE__)) . "/checkDirectory.php");
require(dirname(dirname(__FILE__)) . "/readFiletypes.php");
require(dirname(dirname(__FILE__)) . "/getTypeKeyByExtension.php");
require(dirname(dirname(__FILE__)) . "/fileSystemFunctions.php");
require(dirname(dirname(__FILE__)) . "/checkPermissions.php");
require(dirname(dirname(__FILE__)) . "/checkFilePermissions.php");
if(file_exists($HTTP_SERVER_VARS["DOCUMENT_ROOT"] . dirname($HTTP_SERVER_VARS["PHP_SELF"]) . "/lang.pxlf/" . $PXP_language . ".pxl.php"))
require($HTTP_SERVER_VARS["DOCUMENT_ROOT"] . dirname($HTTP_SERVER_VARS["PHP_SELF"]) . "/lang.pxlf/" . $PXP_language . ".pxl.php");
?>