vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   ecDownloads 3.2 Legacy (https://vborg.vbsupport.ru/showthread.php?t=75198)

Ron1n 03-24-2005 01:31 PM

Quote:

Originally Posted by MarcoH64
What is the meaning of the
PHP Code:

TABLE_PREFIX 

Looks to me that don't belong there

TABLE_PREFIX is the vB mysql database prefix, but correct, it does not belong there. I dont think it exists there - or has existed there, in all the latest versions. He must be using an old copy.

However, I did update this file last night from my laptop, and the files could be reverted to their prior state. Could someone please clarify whether the TABLE_PREFIX thing exists before file_exists in 2.0d? I would check myself, but I cant open .zip files atm.

Quote:

well what i did was in the dl_add i had the error on line 66...so i changed the code a little bit from
Code:

prep_file
to
Code:

file_prep
and now it says its uploaded atleast but then when i go to download the file name is changed
1. change file_prep back to prep_file. Open dl_functions.php and change file_prep to prep_file (around line 34)

2. It SHOULD change the name of the file to {cat abbrev} {author} {file}.{extension}

Aren't you still able to download the file?

Allan 03-24-2005 03:20 PM

Quote:

Originally Posted by Allan
I have this error in localhost when I click on "order the files"

error:
Code:

Parse error: parse error in c:\program files\easyphp1-8\www\forum\includes\dl_manage.php on line 36
ligne 36 (in red) of file "dl_manage.php":
Code:

if ($file['link'] == 0)
                        {
                                if (!" . TABLE_PREFIX . "file_exists($INFO['url'].$file['url'])) {
                                        eval('$filebits .= "' . fetch_template('downloads_man_filebits') . '";');
                                }
                        }



Hey Ron1n, you does not have idea for my problem :rolleyes:

Marco van Herwaarden 03-24-2005 03:37 PM

Alan,

Like i suggested above, start by removing that
PHP Code:

". TABLE_PREFIX ." 


Allan 03-24-2005 05:55 PM

Quote:

Originally Posted by MarcoH64
Alan,

Like i suggested above, start by removing that
PHP Code:

". TABLE_PREFIX ." 



veiled, I did it and it is similar, even error

The Realist 03-24-2005 06:31 PM

If this sounds dull Im sorry :)

But how do you or members upload files? I can see the download php file but thats it?

The Realist 03-24-2005 07:51 PM

Ignore my above post, all working.

Also make sure that Php open_basedir is off for the URL this hack is being used for, I was getting permission errors with it on.

Laters

Quote:

Originally Posted by The Realist
If this sounds dull Im sorry :)

But how do you or members upload files? I can see the download php file but thats it?


rjordan 03-24-2005 09:20 PM

Ok, I have an off-site link:

http://www.battlezoneclub.org/BZClubDL/AntilagXP.zip

and place it in the link field for adding. When I try to submit, I get the error about only submitting certain file types.

If I do:

/BZClubDL/AntilagXP.zip

it is added to the database fine. The problem here, of course, is I cannot use this for off-site links.

Additionally, when I try to delete this, I am getting the following error:

Warning: unlink(./downloads//BZClubDL/AntilagXP.zip): No such file or directory in /includes/dl_manage.php on line 141

The Realist 03-24-2005 09:24 PM

Remove the dot from the begining of the upload path. Also make sure that you have disabled Php open_basedir.

Laters

rjordan 03-24-2005 09:37 PM

The problem is, I do not think that it is supposed to put anything in the downloads folder if it is a link. This is not an uploaded file. I should not see that error at all on a link... right?

Oh, and how WOULD you disable open_basedir if that were an issue?

Ron1n 03-24-2005 09:53 PM

rjordan: Ok, read the delete message: unable to delete (file) or whatever... it makes perfect sense that you wouldn't be able to delete a file that isnt on your server etc. That being said, the hack shouldnt TRY to delete a linked file, so I will fix that. Its a bug, but not a problem. Its just one of those anoying things that doesnt effect performance. Seeing as it cannot effect performance, I will fix it in the next general release.

Allan: your using an old version or failed to reupload the files you edited.

rjordan: about linking to files on other servers, i get the same thing. im not sure whether its a . issue, a : issue or a / issue. I will look into it. For now... just dont leech.


All times are GMT. The time now is 10:56 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01551 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete