• ¡Welcome to Square Theme!
  • This news are in header template.
  • Please ignore this message.
مهمان عزیز خوش‌آمدید. ورود عضــویت


امتیاز موضوع:
  • 7 رای - 2.43 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
Title: چگونگی برطرف کردن باگfckeditorدر پروژه ها
حالت خطی
#4
Remove FCKeditor

If you're not using FCKeditor on your site, you can simply remove the entire fckeditor directory from your webspace. Please note that disabling the Advanced Editor option in the Configuration is not enough.

Disable uploads

If you want to continue using FCKeditor but don't need the ability to upload files through it, you can disable that option in FCKeditor. Please find the following file:
•for Geeklog 1.4.1 (FCKeditor 2.3.1): fckeditor/editor/filemanager/upload/php/config.php
•for Geeklog 1.5.0 (FCKeditor 2.6): fckeditor/editor/filemanager/connectors/php/config.php

In either file, find the line that reads
$Config['Enabled'] = true ;
and change it to = false;

You may want to check for both config files, in case you upgraded from an earlier Geeklog version by overwriting the files. Since the position of the file within FCKeditor changed, you may still have a copy of the old file on your site.

Prevent direct upload

If you need both FCKeditor and the ability to upload files through it, you can prevent direct execution of the upload script. The location of the upload script depends on the version of FCKeditor:
•for Geeklog 1.4.1 (FCKeditor 2.3.1): fckeditor/editor/filemanager/upload/php/upload.php
•for Geeklog 1.5.0 (FCKeditor 2.6): fckeditor/editor/filemanager/connectors/php/upload.php

At the beginning of the upload.php file, after the copyright notice but before the first require(...), add this piece of code:
if (strpos($_SERVER['PHP_SELF'], 'upload.php') !== false) {
die('This file can not be used on its own!');
}
Again, you may want to check both locations, in case you have an older copy of the upload script around.
گروه دور همی پارسی کدرز
https://t.me/joinchat/GxVRww3ykLynHFsdCvb7eg
 
پاسخ
  


پیام‌های این موضوع
RE: چگونگی برطرف کردن باگfckeditorدر پروژه ها - توسط Amin_Mansouri - 09-30-2011، 11:44 AM

موضوعات مشابه ...
موضوع نویسنده پاسخ بازدید آخرین ارسال
  بايند کردن فايل swf در ريپيتر aspdotnet 1 4,358 01-06-2013، 05:56 PM
آخرین ارسال: aspdotnet
  چک کردن سايز و حجم و نوع تصوير در آپلود aspdotnet 3 9,832 11-30-2012، 11:42 PM
آخرین ارسال: Amin_Mansouri
  مراحل اضافه کردن سورس asp به هاست لینوکس poupak 2 5,972 11-18-2012، 08:23 AM
آخرین ارسال: salman1989
  مشکل دارم با لود کردن DLLدر وب Ghoghnus 12 17,142 09-02-2012، 12:32 PM
آخرین ارسال: Ghoghnus
  چند زبانه کردن صفحات وب Ghoghnus 2 5,677 08-27-2012، 04:34 PM
آخرین ارسال: Ghoghnus
  سورس کد اپلود کردن فایل (asp.net) Amin_Mansouri 0 7,024 06-17-2012، 09:19 AM
آخرین ارسال: Amin_Mansouri
  وارد کردن حروف فارسی بدون تغییر زبان کیبرد Amin_Mansouri 0 4,226 07-04-2011، 01:34 PM
آخرین ارسال: Amin_Mansouri

پرش به انجمن:


Browsing: 2 مهمان