很棒的在线教学系统

源代码在线查看: downloads.php

软件大小: 12697 K
上传用户: huanghuanl
关键词: 在线教学
下载地址: 免注册下载 普通下载 VIP

相关代码

								    require_once("../../config.php"); 				    require_once($CFG->libdir.'/filelib.php');								# this is the upload/download plugin, which allows to put arbitrary binary				# files into the ewiki database using the provided specialized form, or the				# standard image upload form below every edit page (if EWIKI_ALLOW_BINARY)												#-- settings								# Defined in view.php				#define("EWIKI_UPLOAD_MAXSIZE", 2*1024*1024);				define("EWIKI_PAGE_UPLOAD", "FileUpload");				define("EWIKI_PAGE_DOWNLOAD", "FileDownload");				define("EWIKI_ACTION_ATTACHMENTS", "attachments");  #-- define to 0 to disable								#-- register plugin (main part)				$ewiki_plugins["page"][EWIKI_PAGE_UPLOAD] = "ewiki_page_fileupload";				$ewiki_plugins["page"][EWIKI_PAGE_DOWNLOAD] = "ewiki_page_filedownload";				$ewiki_plugins["action"]["binary"] = "ewiki_binary";								#-- allow per-page downloads				if (defined("EWIKI_ACTION_ATTACHMENTS") && EWIKI_ACTION_ATTACHMENTS) {				  $ewiki_plugins["action"][EWIKI_ACTION_ATTACHMENTS] = "ewiki_action_attachments";				  $ewiki_config["action_links"]["view"][EWIKI_ACTION_ATTACHMENTS] = "Attachments";				}												#-- icons (best given absolute to www root)				/*$ewiki_binary_icons = array(				   ".bin"    => "/icons/exec.gif",				   "application/" => "/icons/exec.gif",				   "application/octet-stream" => "/icons/exec.gif",				   ".ogg"    => "/icons/son.gif",				   ".jpeg"    => "/icons/pic.gif",				   "text/"    => "/icons/txt.gif",				   ".pdf"    => "/icons/txt.gif",				);*/												#-- the upload function __can__ use different sections				$ewiki_upload_sections = array(				   "" => "main",				#   "section2" => "section2",				);												#-- text, translations				$ewiki_t["en"]["UPLOAD0"] = "Use this form to upload an arbitrary binary file into the wiki:";				$ewiki_t["en"]["UPL_NEWNAM"] = "Save with different filename";				$ewiki_t["en"]["UPL_INSECT"] = "Upload into section";				$ewiki_t["en"]["UPL_TOOLARGE"] = "Your upload has been rejected, because that file was too large!";				$ewiki_t["en"]["UPL_REJSECT"] = 'The given download section "$sect" has been rejected. Please only use the default ones, or tell the WikiAdmin to reenable per-page uploads; else others can\'t find your uploaded files easily.';				$ewiki_t["en"]["UPL_OK"] = "Your file was uploaded correctly, please see ".EWIKI_PAGE_DOWNLOAD.".";				$ewiki_t["en"]["UPL_ERROR"] = "We're sorry, but something went wrong during the file upload.";				$ewiki_t["en"]["DWNL_SEEUPL"] = 'See also FileUpload, this page is only about downloading.';				$ewiki_t["en"]["DWNL_NOFILES"] = "No files uploaded yet.\n";				$ewiki_t["en"]["file"] = "File";				$ewiki_t["en"]["of"] = "of";				$ewiki_t["en"]["comment"] = "Comment";				$ewiki_t["en"]["dwnl_section"] = "download section";				$ewiki_t["en"]["DWNL_ENTRY_FORMAT"] =				    '$icon$title$size'.				        'uploaded on $time, downloaded $hits times'.				        '($id)'.				        '$section'.'file is of type $type'.				        '$comment'."\n";								$ewiki_t["de"]["UPLOAD0"] = "Mit diesem Formular kannst du beliebige Dateien in das Wiki abspeichern:";				$ewiki_t["de"]["UPL_NEWNAM"] = "Mit unterschiedlichem Dateinamen speichern";				$ewiki_t["de"]["UPL_INSECT"] = "Hochladen in Bereich:";				$ewiki_t["de"]["UPL_TOOLARGE"] = "Deine Datei wurde nicht aufgenommen, weil sie zu gro锟			

相关资源