Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
filetypes
:
editDefaultHead.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! ***************************************************************/ require(dirname(__FILE__) . "/defaultActionHead.php"); if($needWGDatabase == true){ require($HTTP_SERVER_VARS["DOCUMENT_ROOT"] . "/__globalConfig.php"); require($WG_FULL_PATH . "/WebGridConnection.dsADODB.php"); } require(dirname(__FILE__) . "/../fileLookUp.php"); $fileName = getRequestVar("fileName"); if(!(strpos($fileName, "..") === FALSE)) die($PXP_languages[$PXP_language]['accessDenied']. " (804)"); $pInfo = checkFilePermissions($fileName); if(!$pInfo["allowOpen"] or !$pInfo["allowEdit"]) die($PXP_languages[$PXP_language]["accessDenied"] . " (809)"); $caption = $PXP_languages[$PXP_language]['filetype.' . $acronym] . " - " . str_replace($PXP_basedir, "", $currentDir) . "/" . $fileName; if($needWGDatabase == true){ if(!$dsWebGridConnection->openConnection()) die($PXP_languages[$PXP_language]["noDatabase"]); } if(isset($HTTP_POST_VARS['submit'])) $submit = $HTTP_POST_VARS['submit']; #$currentDir = ($HTTP_GET_VARS['currentDir'] != '') ? $HTTP_GET_VARS['currentDir'] : $HTTP_POST_VARS['currentDir']; class clsPage{ var $id; var $index; var $label; var $headHTML; var $footHTML; var $onLabelClick; var $parameter = array(); function clsPage(){ GLOBAL $pageCount; $this->index = $pageCount++; } } class clsParameter{ var $id; var $label; var $default; var $control; var $controlWidth; var $optionsResult; var $optionGroupBy; function clsParameter($id, $label, $default, $control, $controlWidth, $options = NULL, $optionGroupBy = ""){ $this->id = $id; $this->label = $label; $this->default = $default; $this->control = $control; $this->controlWidth = $controlWidth; $this->options = $options; $this->optionGroupBy = $optionGroupBy; # 0 -> Inputbox # 1 -> Password # 2 -> Select # 3 -> Checkbox # 4 -> Text # 5 -> Link # 6 -> Textarea } } $arrPages = array(); $pageCount = 0; $req = false; if(!isset($submit)){ $arr = explode(".", $fileName); if(sizeof($arr) > 0){ if(file_exists($currentDir . '/' . $arr[0] . '.' . $acronym . '_dat.php')){ require($currentDir . '/' . $arr[0] . '.' . $acronym . '_dat.php'); $req = true; } } } ?>