REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 2.42 KB
Close
/home/jambtst2015/public_html/ckfinder/core/connector/php/connector.php
Text
Base64
<?php /* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute this file or part of its contents. The contents of * this file is part of the Source Code of CKFinder. */ /** * Main heart of CKFinder - Connector * * @package CKFinder * @subpackage Connector * @copyright CKSource - Frederico Knabben */ /** * Protect against sending warnings to the browser. * Comment out this line during debugging. */ // error_reporting(0); /** * Protect against sending content before all HTTP headers are sent (#186). */ ob_start(); /** * define required constants */ require_once "./constants.php"; // @ob_end_clean(); // header("Content-Encoding: none"); /** * we need this class in each call */ require_once CKFINDER_CONNECTOR_LIB_DIR . "/CommandHandler/CommandHandlerBase.php"; /** * singleton factory */ require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/Factory.php"; /** * utils class */ require_once CKFINDER_CONNECTOR_LIB_DIR . "/Utils/Misc.php"; /** * hooks class */ require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/Hooks.php"; /** * Simple function required by config.php - discover the server side path * to the directory relative to the "$baseUrl" attribute * * @package CKFinder * @subpackage Connector * @param string $baseUrl * @return string */ function resolveUrl($baseUrl) { $fileSystem =& CKFinder_Connector_Core_Factory::getInstance("Utils_FileSystem"); return $fileSystem->getDocumentRootPath() . $baseUrl; } $utilsSecurity =& CKFinder_Connector_Core_Factory::getInstance("Utils_Security"); $utilsSecurity->getRidOfMagicQuotes(); /** * $config must be initialised */ $config = array(); $config['Hooks'] = array(); $config['Plugins'] = array(); /** * read config file */ require_once CKFINDER_CONNECTOR_CONFIG_FILE_PATH; CKFinder_Connector_Core_Factory::initFactory(); $connector =& CKFinder_Connector_Core_Factory::getInstance("Core_Connector"); if(isset($_GET['command'])) { $connector->executeCommand($_GET['command']); } else { $connector->handleInvalidCommand(); }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
lang
DIR
-
drwxr-xr-x
2024-11-22 17:53:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
php4
DIR
-
drwxr-xr-x
2024-11-22 17:53:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
php5
DIR
-
drwxr-xr-x
2024-11-22 17:53:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
connector.php
2.42 KB
lrw-r--r--
2024-11-22 17:53:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
constants.php
3.06 KB
lrw-r--r--
2024-11-22 17:53:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).