TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 01, 2024, 07:24:10 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,174
  • Total Topics: 21,220
  • Online today: 167
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 138
  • Total: 138

download manager TP0.86

Started by burglar, February 09, 2006, 02:23:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

elpvn


burglar

Quote from: feline on February 09, 2006, 02:59:48 PM
I think, the problem is the "xx.tar.gz" .. two dots !

edit later ... no .. i found that ..

open TPdlmanger.php and go to line 88

// check the extension
$allowed=explode(',',$context['TPortal']['dl_allowed_types']);
$dlext=substr($name,(strlen($name)-3),3);


replace the last line with

               $dlext=strstr($name, '.')


I think, that will work

Fel
Quote from: feline on February 09, 2006, 07:41:21 PM
No i have check this ..

Modify the TPdlmanager.php start at line 88:


// check the extension
$allowed=explode(',',$context['TPortal']['dl_allowed_types']);
// --- start add by feline
$dlext=substr(strstr($name, '.'),1);
// --.. end add by Feline
/* --- start removed by Feline
$dlext=substr($name,(strlen($name)-3),3);
   --- end removed by feline */


That work with any extension

Fel

Thanx fel but i managed at on an other way i had to made some changes for uploading those files on this rule

$dlext=substr($name,(strlen($name)-3),3);

change the -3),3) to another value for example tar.gz has to be 6 and tar.tar had to be 7


feline

Quote from: burglar on February 14, 2006, 01:42:33 PM
Thanx fel but i managed at on an other way i had to made some changes for uploading those files on this rule
$dlext=substr($name,(strlen($name)-3),3);

change the -3),3) to another value for example tar.gz has to be 6 and tar.tar had to be 7

with my modification you can upload files with ANY extension ..
like FILENAME.my.zip.tar.gz  ::)

Fel

burglar

i know that but i was in a hurry in that time so and had to make manual some changes also in the DB for example for a large file 18MB and had set the max upload in php.ini for my server too 100Mb but nothing works so i had uploaded to the download dir and did make another row in DB for that file.....