⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 connector.cgi

📁 将本目录下的所有文件与目录传上您的服务器IIS虚拟目录下.并配置好ASP.NET的运行环境.更改好数据库连接地址即可.
💻 CGI
字号:
#!/usr/bin/env perl #/*# * FCKeditor - The text editor for internet# * Copyright (C) 2003-2004 Frederico Caldeira Knabben# * # * Licensed under the terms of the GNU Lesser General Public License:# * 		http://www.opensource.org/licenses/lgpl-license.php# * # * For further information visit:# * 		http://www.fckeditor.net/# * # * File Name: connector.cgi# * 	This is the File Manager Connector for Perl.# * # * Version:  2.0 RC2# * Modified: 2005-01-7 13:20:00# * # * File Authors:# * 		Frederico Caldeira Knabben (fredck@fckeditor.net)# * 		Takashi Yamaguchi (jack@omakase.net)# */require 'util.pl';require 'io.pl';require 'basexml.pl';require 'commands.pl';require 'upload_fck.pl';	&read_input();	if($FORM{'ServerPath'} ne "") {		$GLOBALS{'UserFilesPath'} = $FORM{'ServerPath'};		if(!($GLOBALS{'UserFilesPath'} =~ /\/$/)) {			$GLOBALS{'UserFilesPath'} .= '/' ;		}	} else {		$GLOBALS{'UserFilesPath'} = '/UserFiles/';	}	# Map the "UserFiles" path to a local directory.	$rootpath = &GetRootPath();	$GLOBALS{'UserFilesDirectory'} = $rootpath . $GLOBALS{'UserFilesPath'};	&DoResponse();sub DoResponse{	if($FORM{'Command'} eq "" || $FORM{'Type'} eq "" || $FORM{'CurrentFolder'} eq "") {		return ;	}	# Get the main request informaiton.	$sCommand		= $FORM{'Command'};	$sResourceType	= $FORM{'Type'};	$sCurrentFolder	= $FORM{'CurrentFolder'};	# Check the current folder syntax (must begin and start with a slash).	if(!($sCurrentFolder =~ /\/$/)) {		$sCurrentFolder .= '/';	}	if(!($sCurrentFolder =~ /^\//)) {		$sCurrentFolder = '/' . $sCurrentFolder;	}	# File Upload doesn't have to Return XML, so it must be intercepted before anything.	if($sCommand eq 'FileUpload') {		FileUpload($sResourceType,$sCurrentFolder);		return ;	}	print << "_HTML_HEAD_";Content-Type:text/xml; charset=utf-8Pragma: no-cacheCache-Control: no-cacheExpires: Thu, 01 Dec 1994 16:00:00 GMT_HTML_HEAD_	&CreateXmlHeader($sCommand,$sResourceType,$sCurrentFolder);	# Execute the required command.	if($sCommand eq 'GetFolders') {		&GetFolders($sResourceType,$sCurrentFolder);	} elsif($sCommand eq 'GetFoldersAndFiles') {		&GetFoldersAndFiles($sResourceType,$sCurrentFolder);	} elsif($sCommand eq 'CreateFolder') {		&CreateFolder($sResourceType,$sCurrentFolder);	}	&CreateXmlFooter();	exit ;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -