[PHP] does this code look like it would check a file extensions, and disallow php files or exe files to be attached

2007-06-14 Thread dave peaachepea
?php $filelinks=t3lib_div::_POST('file_name'); // the posting of the file name $exttypes = php3,php,exe; // list of extensions that shouldnt be used $fileextension = substr($filelinks,0,strpos($filelinks,.)); //get the extension after the . if

Re: [PHP] does this code look like it would check a file extensions, and disallow php files or exe files to be attached

2007-06-14 Thread clive
why don't you run it and find out. with errors turned on you will have quickly found out if it worked or not $filelinks=t3lib_div::_POST('file_name'); // the posting of the file name ok Ive never seen syntax like that before, maybe some else can help, looks like your doing this code from

Re: [PHP] does this code look like it would check a file extensions, and disallow php files or exe files to be attached

2007-06-14 Thread Guillaume Theoret
On 6/14/07, dave peaachepea [EMAIL PROTECTED] wrote: ?php $filelinks=t3lib_div::_POST('file_name'); // the posting of the file name $exttypes = php3,php,exe; // list of extensions that shouldnt be used $fileextension =