<?php 


/** 
***************************************************
*欢迎使用免费版SiteTeam企业建站软件！
*这是一个专业为搜索引擎营销而设计的，极稳定、极易维护的建站软件！
*官方客服：help@php.net.cn
*官方下载网址：http://www.SiteTeam.cn 
***************************************************
**/




 $site_url = $_SERVER['HTTP_HOST']; $config_dir = str_replace('\\', '/', dirname(dirname(dirname(__FILE__)))); $config_path = preg_replace('/\/tool\/ckfinder\/[\w\-_\/\.]*$/i', '', $_SERVER['PHP_SELF']); session_save_path($config_dir . "/data/log"); session_set_cookie_params(time() + 3600); session_name('siteteam'); session_start(); function CheckAuthentication() { if (!isset($_SERVER['HTTP_HOST'])) { return false; } if (!isset($_SESSION['loginid'])) { return false; } else { return true; } } $config['LicenseName'] = ''; $config['LicenseKey'] = ''; $baseUrl = '{$config_path}/tool/ckfinder/userfiles/'; if (file_exists("{$config_dir}/data/cache/{$site_url}/config.php")) { include_once "{$config_dir}/data/cache/{$site_url}/config.php"; extract($editor_setting); $baseUrl = $config_path . "/attachments/{$site_id}/public/"; } else { $baseUrl = "{$config_path}/tool/ckfinder/userfiles/"; } $baseDir = resolveUrl($baseUrl); $config['Thumbnails'] = Array( 'url' => $baseUrl . '_thumbs', 'directory' => $baseDir . '_thumbs', 'enabled' => true, 'directAccess' => false, 'maxWidth' => 100, 'maxHeight' => 100, 'bmpSupported' => false, 'quality' => 80); $config['Images'] = Array( 'maxWidth' => 1600, 'maxHeight' => 1200, 'quality' => 80); $config['RoleSessionVar'] = 'CKFinder_UserRole'; $config['AccessControl'][] = Array( 'role' => '*', 'resourceType' => '*', 'folder' => '/', 'folderView' => true, 'folderCreate' => true, 'folderRename' => true, 'folderDelete' => true, 'fileView' => true, 'fileUpload' => true, 'fileRename' => true, 'fileDelete' => true); $config['DefaultResourceTypes'] = ''; $config['ResourceType'][] = Array( 'name' => 'Files', 'url' => $baseUrl . 'files', 'directory' => $baseDir . 'files', 'maxSize' => 0, 'allowedExtensions' => '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip', 'deniedExtensions' => ''); $config['ResourceType'][] = Array( 'name' => 'Images', 'url' => $baseUrl . 'images', 'directory' => $baseDir . 'images', 'maxSize' => "16M", 'allowedExtensions' => 'bmp,gif,jpeg,jpg,png,avi,iso,mp3', 'deniedExtensions' => ''); $config['ResourceType'][] = Array( 'name' => 'Flash', 'url' => $baseUrl . 'flash', 'directory' => $baseDir . 'flash', 'maxSize' => 0, 'allowedExtensions' => 'swf,flv', 'deniedExtensions' => ''); $config['CheckDoubleExtension'] = true; $config['FilesystemEncoding'] = 'UTF-8'; $config['SecureImageUploads'] = true; $config['CheckSizeAfterScaling'] = true; $config['HtmlExtensions'] = array('html', 'htm', 'xml', 'js'); $config['HideFolders'] = Array(".svn", "CVS"); $config['HideFiles'] = Array(".*"); $config['ChmodFiles'] = 0777 ; $config['ChmodFolders'] = 0755 ; $config['ForceAscii'] = false; include_once "plugins/imageresize/plugin.php"; include_once "plugins/fileeditor/plugin.php"; $config['plugin_imageresize']['smallThumb'] = '90x90'; $config['plugin_imageresize']['mediumThumb'] = '120x120'; $config['plugin_imageresize']['largeThumb'] = '180x180'; 