Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
JAVA
/
system
:
config.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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! ***************************************************************/ function getRequestVar($id){ GLOBAL $HTTP_GET_VARS, $HTTP_POST_VARS; if(isset($HTTP_GET_VARS[$id])){ return urldecode($HTTP_GET_VARS[$id]); }else{ return isset($HTTP_POST_VARS[$id]) ? urldecode($HTTP_POST_VARS[$id]) : NULL; } } $HTTP_SERVER_VARS["DOCUMENT_ROOT"] = str_replace(chr(92), "/", realpath($HTTP_SERVER_VARS["DOCUMENT_ROOT"])); $PXP_dir = str_replace(chr(92), "/", dirname(__FILE__)); $PXP_url = str_replace($HTTP_SERVER_VARS["DOCUMENT_ROOT"], "http://" . $HTTP_SERVER_VARS["HTTP_HOST"], $PXP_dir); $parentPath = dirname($PXP_dir); $parentURL = str_replace($HTTP_SERVER_VARS["DOCUMENT_ROOT"], "http://" . $HTTP_SERVER_VARS["HTTP_HOST"], dirname(dirname(str_replace(chr(92), "/", __FILE__)))); $httpAcceptLanguage = substr(strToLower($HTTP_SERVER_VARS["HTTP_ACCEPT_LANGUAGE"]), 0, 2); $PXP_languages = Array(); $PXP_language = $httpAcceptLanguage; if(file_exists(dirname(__FILE__) . "/lang.pxlf/" . $httpAcceptLanguage . ".pxl.php")){ $PXP_system_language = $httpAcceptLanguage; }else{ $PXP_system_language = "en"; } $PXP_languages[$PXP_system_language] = Array(); require(dirname(__FILE__) . "/lang.pxlf/" . $PXP_system_language . ".pxl.php"); # !!!!!!!!!!!!!!!!!!!!!!!!!!!! public configuration start !!!!!!!!!!!!!!!!!!!!!!!!! $PXP_version = "0.9.10"; # # $PXP_id: unique id for phpXplorer installation # $PXP_id = "phpXplorer1"; $PXP_default_share = "system"; # # $PXP_createUserFolder: automatically create a personal share for each phpXplorer user # $PXP_createUserFolder = true; # # $PXP_user_folder: folder for automatically users shares (folders) # $PXP_user_folder = $parentPath . "/homes"; $PXP_umask = "0000"; $PXP_authentication = "htaccess"; $PXP_tree = "jsTree"; $GC_ImageEditor_URL = $parentURL . "/other/ImageEditor"; $GC_jsTree_URL = $parentURL . "/other/jsTree"; $GC_webGridClient_URL = $parentURL . "/other/webGridClient"; $GC_coolmenu_URL = $parentURL . "/other/coolmenus"; $GC_HTMLArea_URL = $parentURL . "/other/HTMLArea"; $GC_phpMyAdmin_URL = $parentURL . "/other/phpMyAdmin"; $GC_HTMLTidy_Path = $parentPath . "/other/HTMLTidy"; $GC_pclzip_Path = $parentPath . "/other/pclzip"; $GC_phphtmlparser_Path = $parentPath . "/other/phphtmlparser"; $GC_other_Path = $parentPath . "/other"; # public configuration stop require(dirname(__FILE__) . "/authentication/" . $PXP_authentication . "_auth.php"); if(isset($PXP_user)) require(dirname(__FILE__) . "/users.pxuf/" . $PXP_user . "/config." . $PXP_user . ".pxu.php"); if(!isset($shareId)) $shareId = getRequestVar("shareId"); if(!isset($shareId) or $shareId == "") $shareId = $PXP_default_share; require(dirname(__FILE__) . "/shares.pxsf/" . $shareId . "/config." . $shareId . ".pxs.php"); umask(intval($PXP_umask, 8)); ?>