vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - DownloadsII (https://vborg.vbsupport.ru/showthread.php?t=120122)

Guest210212002 07-03-2006 07:18 PM

You rock sir. :D That worked.

IrPr 07-03-2006 08:23 PM

Westpointer would u please tell me how to upgrade my downloads.php to this version manually ? cause i had modified my downloads.php

CyberRanger 07-03-2006 08:52 PM

Quote:

Originally Posted by IrPr
Westpointer would u please tell me how to upgrade my downloads.php to this version manually ? cause i had modified my downloads.php

LOL ... I can't right now because my laptop crashed and I don't currently have access to the old version of downloads.php. Just upload the new version as downloads-new.php or something like that and do a diff on them.

trackpads 07-03-2006 10:24 PM

WP!! You rock man! Even though I am an OCS grad, not a pointer :) :)

aramik 07-03-2006 10:59 PM

Quote:

Originally Posted by westpointer
From the page downloads.php?do=add&cat=, you fill in the requested information about the file then place the url to the file in the box that reads "Link to a File". You would leave "Upload a File" blank.

http://www.brentandmary.net/images/ecdl/link.gif

Ah I hadn't noticed that. Thanks for your time & effort, greatly appreciated.

DementedMindz 07-04-2006 12:32 AM

Quote:

Originally Posted by IrPr
Westpointer would u please tell me how to upgrade my downloads.php to this version manually ? cause i had modified my downloads.php

if you post your downloads.php file in about a hour or so as soon as i finish my stuff ill do beyond compare and do the changes for you... or else grab the free 30 day trial of beyond compare and look at both files

CyberRanger 07-04-2006 12:52 AM

Quote:

Originally Posted by DementedMindz
if you post your downloads.php file in about a hour or so as soon as i finish my stuff ill do beyond compare and do the changes for you... or else grab the free 30 day trial of beyond compare and look at both files

If you want to be sure to keep your changes, getting something like beyond compare is a good idea. Once we give everyone a chance to get this secure version installed, the changes will be big and I won't post this kind of info.

For now, here they are from Ron1n's last version. I realized I didn't really need his file.

FIND:
PHP Code:

if ($file['link'] == 0

BELOW that ADD:
PHP Code:

// clean out temp folders
if ($handle1 opendir($dl->url)) 
{        
    while (
false !== ($filedir1 readdir($handle1))) 
    {
        if (
is_dir($dl->url.$filedir1) && strpos($filedir1"ec_") === 0)
        {
            if (
$handle2 opendir($dl->url.$filedir1)) 
            {
                while (
false !== ($filedir2 readdir($handle2))) 
                {
                    if (
$filedir2 != "." && $filedir2 != "..")
                    {
                        
unlink($dl->url.$filedir1."/".$filedir2);
                    }
                }
            }
            
rmdir($dl->url.$filedir1);
            
closedir($handle2);
        }
    }        
    
closedir($handle1);


FIND:
PHP Code:

    if ($_POST['submit'] != ''
    {        
        
// EC_DEMO_MODE
        
if ($dl->ec_demo_mode())
        {
            eval(
standard_error(fetch_error('ec_demo_mode')));
        }
        
// EC_DEMO_MODE 

BELOW that ADD:
PHP Code:

$_POST['dname'] = strip_tags($_POST['dname']);
$_POST['author'] = strip_tags($_POST['author']); 


rjordan 07-04-2006 01:51 AM

Westpointer, are you going to correct the badly named database fields I posted in the other thread?

CyberRanger 07-04-2006 01:58 AM

Quote:

Originally Posted by rjordan
Westpointer, are you going to correct the badly named database fields I posted in the other thread?

Sorry but I don't remember the post ... and can't review it anymore. :cross-eyed: Which one's are you talking about?

rjordan 07-04-2006 02:33 AM

I think there were two. Shame that vb.org can't let us see the dag-gone posts without the mod being downloadable. I will dig through it again and will have to get back to you. Might take a while as I have to sift through a desk full of papers in the hopes my wife did not throw it away!


All times are GMT. The time now is 02:48 PM.

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.02434 seconds
  • Memory Usage 1,761KB
  • 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_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