File "default.php"

Full Path: /home/analogde/www/filetypes/pxs/default.php
File size: 3.04 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!
***************************************************************/

#
# $PXP_share_id: unique id for the share 
#
$PXP_share_id = "{@pxsId}";

#
#	$PXP_basedir: path to directory which is shared
# The drive key is case-sensitive on windows systems.
#
$PXP_basedir = "{@pxsBasedir}";

#
# $PXP_share_users: only the users listed in this array are allowed to access this share.
#	An empty array allows all users to access this share.
#
$PXP_share_users = Array({@pxsShareUsers});

#
# $PXP_share_roles: only the roles listed in this array are allowed to access this share.
#	An empty array allows all roles to access this share.
#
$PXP_share_roles = Array({@pxsShareRoles});

#
# $PXP_create_htaccess: create an .htaccess file in top level folder of this share
# with $PXP_share_users and $PXP_share_roles as members
#
$PXP_create_htaccess = {@pxsCreateHtaccess};

#
# $PXP_rights_dir: name for directory which contains phpXplorer right files.
#	Each directory with file or folder permissions / restrictions
#	contains a sub directory with this name.
#
$PXP_rights_dir = "{@pxsRightsDir}";

#
# $PXP_startpage: file which is showed in the right frame after a share is loaded
#
$PXP_startpage = "{@pxsStartpage}";

#
# $PXP_tree_reload: if set to true only the 1st level of the tree is loaded at startup.
#	Child nodes are loaded from the server if a node gets expanded.
#
$PXP_tree_reload = {@pxsTreeReload};

#
# $PXP_key: key for encryption
#
$PXP_key = "{@pxsKey}";

# ------------------------------------------------------------------------------

if(!isset($PXP_onlyReadValues)){
	$PXP_basedir = str_replace("{@PXP_user_folder}", $PXP_user_folder, $PXP_basedir);
	$PXP_basedir = realpath($PXP_basedir);
}

$PXP_basedir = str_replace(chr(92) . chr(92), "/", $PXP_basedir);
$PXP_basedir = str_replace(chr(92), "/", $PXP_basedir);

if(!isset($PXP_baseURL))
	$PXP_baseURL = str_replace($HTTP_SERVER_VARS["DOCUMENT_ROOT"], "http://" . $HTTP_SERVER_VARS["HTTP_HOST"], $PXP_basedir);

if($PXP_language != $PXP_system_language){
	$PXP_languages[$PXP_language] = Array();
	require(dirname(__FILE__) . "/../../lang.pxlf/" . $PXP_language . ".pxl.php");
}

?>