Example #1
0
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
 *
 * Configuration file for the File Manager Connector for PHP.
 */
// PCT
require_once "../../../../../application/model/session.php";
session_start();
// END
global $Config;
// SECURITY: You must explicitly enable this "connector". (Set it to "true").
// WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only
//		authenticated users can access this file or use some kind of session checking.
// PCT
if (Session::isVerified()) {
    $Config['Enabled'] = true;
}
// Path to user files relative to the document root.
//$Config['UserFilesPath'] =  '/manage/sandbox/' . $_SESSION['userPath'] . "/" ;
if (strlen($_SESSION['cwd']) > 0) {
    $Config['UserFilesPath'] = $_SESSION['cwd'] . '/';
} else {
    $Config['UserFilesPath'] = '/';
}
// END
// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '';