Thread Info
|
Score System in msf Download System
|
|
| livepasion |
Geschrieben am 28.01.2014 00000001 18:35
|
|
Neuling ![]() Beiträge: 1 Registriert am: 16.11.13 Fusioneer: 13 years 0 months 1 weeks 8 days 3 hours 44 minutes 22 seconds |
Hallo liebe Gemeinde, Ich habe ein Anliegen mit dem Score System, ich benutze als download möglichkeit auf meiner Website das [google]PHP Fusion msf Download System[/google] Ich möchte die Score funktion für die downloads dort nutzen. Ich habe mich an die Anleitung gehalten, die ich mit angehängt habe. Doch in der download.php ist das angegebene ds ich suchen und ersetzen soll nicht vorhanden. [geshi=php]// download the file if (isset($_GET['file_id']) && isnum($_GET['file_id'])) { $download_id = stripinput($_GET['file_id']); $res = 0; if ($data = dbarray(dbquery("SELECT download_url, download_file, download_cat FROM ".DB_DOWNLOADS." WHERE download_id='".$download_id."'"))) { $cdata = dbarray(dbquery("SELECT download_cat_access FROM ".DB_DOWNLOAD_CATS." WHERE download_cat_id='".$data['download_cat']."'")); if (checkgroup($cdata['download_cat_access'])) { $result = dbquery("UPDATE ".DB_DOWNLOADS." SET download_count=download_count+1 WHERE download_id='".$download_id."'"); if (!empty($data['download_file']) && file_exists(DOWNLOADS.$data['download_file'])) { $res = 1; require_once INCLUDES."class.httpdownload.php"; ob_end_clean(); $object = new httpdownload; $object->set_byfile(DOWNLOADS.$data['download_file']); $object->use_resume = true; $object->download(); exit; } elseif (!empty($data['download_url'])) { $res = 1; redirect($data['download_url']); } } } if ($res == 0) { redirect("downloads.php"); } } [/geshi] Soll ich mit diesem hier ersetzen [geshi=php]if (isset($_GET['file_id']) && isnum($_GET['file_id'])) { $download_id = stripinput($_GET['file_id']); $res = 0; if (score_negative("DOWNL")) { if ($data = dbarray(dbquery("SELECT download_url, download_file, download_cat FROM ".DB_DOWNLOADS." WHERE download_id='".$download_id."'"))) { $cdata = dbarray(dbquery("SELECT download_cat_access FROM ".DB_DOWNLOAD_CATS." WHERE download_cat_id='".$data['download_cat']."'")); if (checkgroup($cdata['download_cat_access'])) { $result = dbquery("UPDATE ".DB_DOWNLOADS." SET download_count=download_count+1 WHERE download_id='".$download_id."'"); if (!empty($data['download_file']) && file_exists(DOWNLOADS.$data['download_file'])) { $res = 1; require_once INCLUDES."class.httpdownload.php"; ob_end_clean(); $object = new httpdownload; $object->set_byfile(DOWNLOADS.$data['download_file']); $object->use_resume = true; $object->download(); exit; } elseif (!empty($data['download_url'])) { $res = 1; redirect($data['download_url']); } } } } else { if ($res == 0) { redirect("downloads.php"); } } } [/geshi] Meine download.php habe ich mit in der rar Datei im Anhang. Ich bedanke mich für jede Hilfe. Lg livepasion |
|
|
|
| SC-Ad-Bot | Advertisement |
| |
| Harlekin |
Geschrieben am 29.01.2014 00000001 22:30
|
|
Administrator ![]() Beiträge: 132 Registriert am: 22.08.11 Fusioneer: 15 years 3 months 0 weeks 3 days 8 hours 11 minutes 44 seconds |
Für das msf Download System hat die Anbindung ans Score System noch keiner gemacht meines Wissens. Ich kenne diese Anleitung nur für das Professional Downloadsystem.
|
|
|
|
| Springe ins Forum: |
Austria
Czech Republic
Germany
Denmark
Spain
France
Iran
Lithuania
Norway
Poland
Romania
Russia
Sweden
Slovakia
Turkey
United States
United Kingdom










