FILE: config.php Added: /* Mirchev Ideas modification */ require_once('../../../include/miphpf/util/Settings.php'); require_once('../../../include/miphpf/Config.php'); $__webPath = miSettings::singleton()->get('SC_WEBPATH'); if (empty($__webPath)) $__webPath = '/'; if ($__webPath[0] != '/') $__webPath = '/' . $__webPath; if (substr($__webPath, -1) != '/') $__webPath .= '/'; $type = ''; if (isset($_REQUEST['type'])) { $type = $_REQUEST['type']; /* * Set the original type that was passed from Summer Cart in the get array. * The original type value is used to set the browser.type variable in kcfinder/tpl/tpl__javascript.php. * This variable must contain the original type value in order to pass it in the ajax call that loads the directory tree and files. * This is done because we are modifying the type value in the get array a few lines below. */ $this->get['originalType'] = $type; $typeChunks = explode(':', $type); $internalId = isset($typeChunks[1]) ? intval($typeChunks[1]) : 0; $type = $typeChunks[0]; } switch ($type) { case 'product_files_shared': $userfilesPath = '/'; break; case 'egoods_shared': $userfilesPath = 'egoods/'; $this->get['type'] = 'shared'; break; case 'egoods_temp': $userfilesPath = 'egoods/temp/'; $this->get['type'] = $internalId; break; case 'egoods': if ($internalId > 0) { $userfilesPath = 'egoods/products/'; $this->get['type'] = $internalId; break; } default: $userfilesPath = 'editor/'; if (!in_array($type, array('file', 'flash', 'image'))) { // CKEditor & FCKEditor types $this->get['type'] = 'file'; } } $langCode = @$_SESSION['UILanguage']; $kcFinderLanguages = array('bg', 'de', 'en', 'es', 'fr', 'it', 'pt', 'ru'); if (in_array(strtolower($langCode), $kcFinderLanguages)) $kcFinderLangCode = strtolower($langCode); else $kcFinderLangCode = 'en'; $_GET['lang'] = $kcFinderLangCode; /* Mirchev Ideas modification */ Changed: 'disabled' => false, Changed: 'uploadURL' => $__webPath . 'userfiles/' . $userfilesPath, 'uploadDir' => '../../../userfiles/' . $userfilesPath, Changed: 'deniedExts' => "exe com msi bat php php3 php4 php5 phtml cgi pl", Changed: 'types' => array( // CKEditor & FCKEditor types 'file' => "", 'flash' => "swf flv", 'image' => "*img bmp gif jpeg jpg png", // TinyMCE types # 'file' => "", # 'media' => "swf flv avi mpg mpeg qt mov wmv asf rm", # 'image' => "*img", ), Added: /* Mirchev Ideas modifcation */ if ((!empty($this->get['type'])) && (!isset($_CONFIG['types'][$this->get['type']]))) { $_CONFIG['types'][$this->get['type']] = ''; // Init the last dir in the $_REQUEST['type'] as a KCFinder type } /* Mirchev Ideas modifcation */ FILE: browse.php Added: require "access.php"; FILE: upload.php Added: require "access.php"; FILE: core/uploader.php Commented: //session_start(); FILE: tpl/tpl__javascript.php Changed: browser.type = " Fatal error: Class 'text' not found in /hosting/ivo/centrumteacher/onlive/modules/system/kcfinder/SummerCartChanges.txt on line 116