admin 2013-1-11 21:12:44

fckeditor ©޸Ķ

©ļeditors/fckeditor/editor/filemanager/upload/php/upload.php
ϸ޸
޸ɾFCK༭ı༭
ҵ editors/fckeditor/editor/filemanager/upload/php/upload.php ļ

require(config.php);
require(util.php);
´롪C
//ֹⲿύ
function outsidepost()
{
$servername=$_SERVER['SERVER_NAME'];
$sub_from=@$_SERVER['HTTP_REFERER'];
$sub_len=strlen($servername);
$checkfrom=substr($sub_from,7,$sub_len);
if($checkfrom!=$servername){
echo(you dont outsidepost!);
exit;
}
}
outsidepost();
ֹⲿύûзֹڲύ
÷
1, editors/fckeditor/editor/filemanager/browser/default/connectors/test.html
2,Current Folder
<form id=frmUpload enctype=multipart/form-data action=http://www.url.com/editors/fckeditor/editor/filemanager/upload/php/upload.php?Type=Media method=post>Upload a new file:<br><input type=file name=NewFile size=50><br><input id=btnUpload type=submit value=Upload></form>
Ȼ Get Folders and Files ͻһϴϴļ͡
PS editorsϴļ403 500 404 Ȩ þЧˡ
ҳ: [1]
鿴汾: fckeditor ©޸Ķ