Author Topic: How can i do to block URL uploads!?  (Read 4474 times)

0 Members and 1 Guest are viewing this topic.

Offline angeloghiotto

  • Pre-Newbie
  • Posts: 9
    • View Profile
How can i do to block URL uploads!?
« on: October 14, 2008, 09:14:58 PM »
Thats all..

How can i do to block URL uploads!?

thx !

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How can i do to block URL uploads!?
« Reply #1 on: October 14, 2008, 11:48:21 PM »
1) you'll need remove from member_uploadform.html template:
Code: [Select]
  <input type="text" name="remote_media_file"  size="30" value="{remote_media_file}" class="input" /><br />

2) to prevent people from using modified upload form in member.php find:
  $remote_media_file format_url(un_htmlspecialchars(trim($HTTP_POST_VARS['remote_media_file'])));


Insert BELOW:
  if ($user_info['user_level'] != ADMIN$remote_media_file "";
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline angeloghiotto

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: How can i do to block URL uploads!?
« Reply #2 on: October 15, 2008, 04:26:14 AM »
Thanks!!!  :D :D :D