if (isset($_GET['langCode'])) {
    $PGRLang = $_GET['langCode'];
} else {
    $PGRLang = 'en';
}
include_once dirname(__FILE__) . '/auth.php';
$PGRUploaderDescription = 'all files';
//For fckeditor
if (isset($_GET['type'])) {
    $type = $_GET['type'];
    if ($type === 'Image') {
        PGRFileManagerConfig::$allowedExtensions = PGRFileManagerConfig::$imagesExtensions;
        $PGRUploaderDescription = 'images';
    } else {
        if ($type === 'Flash') {
            PGRFileManagerConfig::$allowedExtensions = 'swf|flv';
            $PGRUploaderDescription = 'flash';
        } else {
            $PGRUploaderDescription = 'all files';
        }
    }
    $PGRUploaderType = $_GET['type'];
} else {
    $PGRUploaderType = 'all files';
}
//for ckeditor
if (isset($_GET['CKEditorFuncNum'])) {
    $ckEditorFuncNum = $_GET['CKEditorFuncNum'];
} else {
    $ckEditorFuncNum = '1';
}
Esempio n. 2
0
//PGRFileManagerConfig::$rootPath = "";
//url path to root directory
//this path is using to display images and will be returned to ckeditor with relative path to selected file
//i.e http://my-super-web-page/gallery
//i.e /gallery
//PGRFileManagerConfig::$urlPath = "";
//    !!!How to determine rootPath and urlPath!!!
//    1. Copy mypath.php file to directory which you want to use with PGRFileManager
//    2. Run mypath.php script, i.e http://my-super-web-page/gallery/mypath.php
//    3. Insert correct values to myconfig.php
//    4. Delete mypath.php from your root directory
//Max file upload size in bytes
PGRFileManagerConfig::$fileMaxSize = 1024 * 1024 * 10;
//Allowed file extensions
//PGRFileManagerConfig::$allowedExtensions = '' means all files
PGRFileManagerConfig::$allowedExtensions = '';
//Allowed image extensions
PGRFileManagerConfig::$imagesExtensions = 'jpg|gif|jpeg|png|bmp';
//Max image file height in px
PGRFileManagerConfig::$imageMaxHeight = 724;
//Max image file width in px
PGRFileManagerConfig::$imageMaxWidth = 1280;
//Thanks to Cycle.cz
//Allow or disallow edit, delete, move, upload, rename files and folders
PGRFileManagerConfig::$allowEdit = true;
// true - false
//Autorization
PGRFileManagerConfig::$authorize = false;
// true - false
PGRFileManagerConfig::$authorizeUser = '******';
PGRFileManagerConfig::$authorizePass = '******';
Esempio n. 3
0
PGRFileManagerConfig::$rootPath = $config['user_path'][$config['env']] . 'uploads';
//url path to root directory
//this path is using to display images and will be returned to ckeditor with relative path to selected file
//i.e http://my-super-web-page/gallery
//i.e /gallery
PGRFileManagerConfig::$urlPath = $config['static_url'][$config['env']] . '/var/uploads';
//    !!!How to determine rootPath and urlPath!!!
//    1. Copy mypath.php file to directory which you want to use with PGRFileManager
//    2. Run mypath.php script, i.e http://my-super-web-page/gallery/mypath.php
//    3. Insert correct values to myconfig.php
//    4. Delete mypath.php from your root directory
//Max file upload size in bytes
PGRFileManagerConfig::$fileMaxSize = 1024 * 1024 * 10;
//Allowed file extensions
//PGRFileManagerConfig::$allowedExtensions = '' means all files
PGRFileManagerConfig::$allowedExtensions = 'pdf|doc|docx|xls|xlsx|ppt|pps|pptx|ppsx|pub';
//Allowed image extensions
PGRFileManagerConfig::$imagesExtensions = 'jpg|gif|jpeg|png|bmp';
//Max image file height in px
PGRFileManagerConfig::$imageMaxHeight = 724;
//Max image file width in px
PGRFileManagerConfig::$imageMaxWidth = 1280;
//Thanks to Cycle.cz
//Allow or disallow edit, delete, move, upload, rename files and folders
PGRFileManagerConfig::$allowEdit = true;
// true - false
//Autorization
PGRFileManagerConfig::$authorize = false;
// true - false
PGRFileManagerConfig::$authorizeUser = '******';
PGRFileManagerConfig::$authorizePass = '******';