MyXoops Forum

Forum - myXOOPS German Support

6 - 1 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

Re: downloadfunktion von wfdownloads

Betreff: Re: downloadfunktion von wfdownloads
von mcleines am 02.02.2005 16:30:21

Die leeching-Abfrage findet ja in der visit.php statt:

ab Zeile 20 ca.:

function reportBroken($lid)
{
    global 
$xoopsModule;
    echo 
"
                <h4>" 
_MD_WFD_BROKENFILE "</h4>n
                <div>" 
_MD_WFD_PLEASEREPORT "n
                <a href='" 
XOOPS_URL "/modules/wfdownloads/brokenfile.php?lid=$lid'>" _MD_WFD_CLICKHERE "</a>n
                </div>n"
;


if (
$agreed == 0)
{
    if (
$xoopsModuleConfig['check_host'])
    {
[
color=CC0000]#       $goodhost = 0;[/color]
        
$referer parse_url(xoops_getenv('HTTP_REFERER'));
        
$referer_host $referer['host'];
        foreach (
$xoopsModuleConfig['referers'] as $ref)



Ich würde die goodhost-Variable einfach auskommentieren. goodhost kannst du ja in irgendetwas umbenennen und dann wird die Variable einfach über den Link mitgeschickt:

href="http://localhost/xoops/modules/wfdownloads/visit.php?cid=1&lid=1[color=CC0000]&goodhost=1[/color]"


Oder willst du es noch komplizierter machen?

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
Modulentwicklung New Xoops Xcreate Module 0 5312 26.11.2025 15:22
efkan Gehe zum letzten Beitrag
Modulentwicklung XOOPS Custom Field Module 1 1804 24.11.2025 11:21
Goffy Gehe zum letzten Beitrag