| | | | |
| | ||
| Gast
Beiträge: n/a
| Hi jungen's, Also ich habe hier ein download script, das mal ziemlich gut aussieht, allerdings funktioniert das net so ganz, jedesmal, wenn ich versuche über das script von meiner seite was down zu laden, kommt der HTTP_REFFERER zum einsatz und linkt mich auf meine index seite???? Hier mal der code: Code: <?php /////////////////////////////////////////////// // // // Download Protector v 1.1 // // ----------------------------------------- // // by Graeme (webmaster@phpscriptcenter.com) // // http://www.phpscriptcenter.com // // ////////////////////////////// // PHP Script CENTER offers no warranties on this script. // // The owner/licensee of the script is solely responsible for any // // problems caused by installation of the script or use of the script // // // // All copyright notices regarding Download Protector, must remain // // intact on the scripts and in the HTML for the scripts. // // // // (c) Copyright 2001 PHP Script CENTER // // // // For more info on Download Protector, // // see http://www.phpscriptcenter.com/downloadprotector.php // // // /////////////////////////////////////////////////////////////////////////// $ADMIN[defaulturl] = "http://meine-domain.com"; $okaysites = array("http://meine-domain.com","http://meine-domain.com"); $ADMIN[url_1] = "http://meine-domain.com/Files/New/filename.zip"; $ADMIN[url_2] = "http://meine-domain.com/Files/Old/filename.zip"; ////////////////////////////////////////////////////// $reffer = $HTTP_REFERER; if($reffer) { $yes = 0; while(list($domain, $subarray) = each($okaysites)) { if (ereg("$reffer",$subarray)) { $yes = 1; } } $theu = "url"."_"."$site"; if ($ADMIN[$theu] AND $yes == 1) { header("Location: $ADMIN[$theu]/$file"); } else { header("Location: $ADMIN[defaulturl]"); } } else { header("Location: $ADMIN[defaulturl]"); } ?> Zitat:
Is das schon wieder ein not working script?! | |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Gesuch / Einladung: PHP - Anti-Spam Script | SvenLittkowski | Trash | 7 | 14.01.2006 03:38 |
| [Erledigt] php script und ixed | PHP Tipps 2005-2 | 14 | 12.10.2005 13:34 | |
| Download Script? | PHP Tipps 2005-2 | 3 | 28.08.2005 14:01 | |
| libmysqlclient.so.10 is needed | Datenbanken | 11 | 20.06.2005 15:27 | |
| [Erledigt] File download > kleines Problem | PHP Tipps 2005 | 3 | 11.05.2005 23:11 | |
| update auf php 5.0.4 | robo47 | Server, Hosting und Workstations | 6 | 10.04.2005 19:00 |
| 2 kleine Fragen zu meinem Download Script | Melchior | PHP Tipps 2005 | 10 | 25.02.2005 16:13 |
| Suche Download Script | Beitragsarchiv | 3 | 01.02.2005 13:02 | |
| [Erledigt] PHP Script Problem | PHP Tipps 2005 | 12 | 06.01.2005 12:38 | |
| Download script mit unbekannter URL | PHP Tipps 2004-2 | 4 | 21.12.2004 00:22 | |
| download automatisch starten | PHP Tipps 2004 | 7 | 18.09.2004 20:14 | |
| datei nach download löschen | HTML, Usability und Barrierefreiheit | 0 | 18.09.2004 17:16 | |
| "das" Script oder "der" Script?? | Simbo | Off-Topic Diskussionen | 31 | 16.09.2004 17:04 |
| download von file verhindern | Schiedsrichter | PHP Tipps 2004 | 1 | 15.09.2004 11:39 |
| download script | PHP Tipps 2004 | 1 | 31.07.2004 16:43 | |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.