예제 #1
0
    return $fileSystem->getDocumentRootPath() . $baseUrl;
}
$utilsSecurity =& QFinder_Connector_Core_Factory::getInstance("Utils_Security");
$utilsSecurity->getRidOfMagicQuotes();
/**
 * $config must be initialised
 */
$config = array();
$config['Hooks'] = array();
$config['Plugins'] = array();
/**
 * Fix cookies bug in Flash.
 */
if (!empty($_GET['command']) && $_GET['command'] == 'FileUpload' && !empty($_POST)) {
    foreach ($_POST as $key => $val) {
        if (strpos($key, "qfcookie_") === 0) {
            $_COOKIE[str_replace("qfcookie_", "", $key)] = $val;
        }
    }
}
/**
 * read config file
 */
require_once QFINDER_CONNECTOR_CONFIG_FILE_PATH;
QFinder_Connector_Core_Factory::initFactory();
$connector =& QFinder_Connector_Core_Factory::getInstance("Core_Connector");
if (isset($_GET['command'])) {
    $connector->executeCommand($_GET['command']);
} else {
    $connector->handleInvalidCommand();
}