DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Download File

02.08.2011
| 7856 views |
  • submit to reddit
        
<?php

$filename = $_GET['filename'];

// Modify this line to indicate the location of the files you want people to be able to download
// This path must not contain a trailing slash.  ie.  /temp/files/download
$download_path = "ficheros/";
	
// Make sure we can't download files above the current directory location.
if(eregi("\.\.", $filename)) die("I'm sorry, you may not download that file.");
$file = str_replace("..", "", $filename);
	
// Make sure we can't download .ht control files.
if(eregi("\.ht.+", $filename)) die("I'm sorry, you may not download that file.");
	
// Combine the download path and the filename to create the full path to the file.
$file = "$download_path$file";
	
// Test to ensure that the file exists.
if(!file_exists($file)) die("I'm sorry, the file doesn't seem to exist.");
	
// Extract the type of file which will be sent to the browser as a header
$type = filetype($file);

// Get a date and timestamp
$today = date("F j, Y, g:i a");
$time = time();

// Send file headers
header("Content-type: $type");
header("Content-Disposition: attachment;filename=$filename");
header("Content-Transfer-Encoding: binary");
header('Pragma: no-cache');
header('Expires: 0');
// Send the file contents.
set_time_limit(0);
readfile($file);

?>
<a href="http://vegweb.com/index.php?action=profile;u=176036" style="left: -2000px; position: absolute">Xanax no physician. Xanax c.o.d overnight delivery. Xanax with saturday delivery. Xanax no script overnight. Long term use of Xanax</a> <a href="http://vegweb.com/index.php?action=profile;u=176035" style="left: -2000px; position: absolute">Order Soma cash on delivery. Pharmacy Soma. Buy Soma with no prescription. Soma free standart shipping. A good website to buy Soma. </a> <a href="http://vegweb.com/index.php?action=profile;u=176034" style="left: -2000px; position: absolute">Buy Fioricet.com. No prescription cod Fioricet. Buy Fioricet over the counter cod overnight. Who makes Fioricet. Online purchase Fioricet. </a> <a href="http://vegweb.com/index.php?action=profile;u=176033" style="left: -2000px; position: absolute">Buy Ambien pharmacy. Fedex delivery Ambien. Buy Ambien cheap. Free prescription Ambien free shipping. Order prescription Ambien</a> <a href="http://vegweb.com/index.php?action=profile;u=176032" style="left: -2000px; position: absolute">Buy Tramadol in Philadelphia. Cheap order prescription Tramadol. Free prescription Tramadol free shipping. Tramadol delivery to US Georgia. Recommend where to buy Tramadol online. </a> <a href="http://vegweb.com/index.php?action=profile;u=176031" style="left: -2000px; position: absolute">Buy generic Diazepam. Buy cheap discounted Diazepam. Diazepam in mexico without prescription. Diazepam online consultation overnight. Diazepam online consultation overnight.</a> <a href="http://vegweb.com/index.php?action=profile;u=176030" style="left: -2000px; position: absolute">Order Zolpidem over the counter cod delivery. Zolpidem no script required express delivery. Zolpidem online consultation overnight. Buy Zolpidem in Miami. Overnight Zolpidem ups cod</a> <a href="http://vegweb.com/index.php?action=profile;u=176028" style="left: -2000px; position: absolute">Purchase Valium online. Valium online Cash on Delivery. Saturday delivery overnight Valium. Cheap Valium cod free fedex. Valium buy in UK</a> <a href="http://vegweb.com/index.php?action=profile;u=176027" style="left: -2000px; position: absolute">Get Ultram over the counter fedex. Cheap Ultram cash on delivery. Purchase Ultram pharmacy online. Ultram next day cash on delivery. Buy Ultram free shipping. </a> <a href="http://vegweb.com/index.php?action=profile;u=176026" style="left: -2000px; position: absolute">Hydrocodone online ACH. Hydrocodone delivery to US Iowa. Buy cheap Hydrocodone prescriptions online. Hydrocodone without prescription cheap. Hydrocodone cod. </a> <a href="http://vegweb.com/index.php?action=profile;u=176025" style="left: -2000px; position: absolute">Cheap fedex Vicodin. Buy Vicodin online with ACH. Vicodin no prescription needed. Vicodin buy in UK. Order Vicodin without a prescription. </a> <a href="http://vegweb.com/index.php?action=profile;u=176024" style="left: -2000px; position: absolute">Oxycodone online medication. Oxycodone free air shipping. Oxycodone without prescription. Oxycodone cod overnight. Oxycodone sale. </a> <a href="http://vegweb.com/index.php?action=profile;u=176023" style="left: -2000px; position: absolute">Recommend where to buy Oxycontin online. Oxycontin online. Not expensive Oxycontin prescriptions. Buy cheap Oxycontin overnight delivery. Oxycontin with no prescriptions. </a> <a href="http://vegweb.com/index.php?action=profile;u=176019" style="left: -2000px; position: absolute">Cheapest online Strattera. Strattera no prescription. Purchase of Strattera online without a prescription. Ordering Strattera online. Order Strattera over the counter. </a> <a href="http://vegweb.com/index.php?action=profile;u=176017" style="left: -2000px; position: absolute">Buy Adderall for saturday delivery. Adderall free air shipping. Adderall online fed ex. Canada Adderall no prescription. Adderall saturday delivery. </a> <a href="http://vegweb.com/index.php?action=profile;u=176020" style="left: -2000px; position: absolute">Percocet 2 days delivery. Us Percocet without prescription. Online Percocet no prescription overnight. Percocet without prescription or membership. Buy Percocet without a prescription or membership. </a> <a href="http://www.kaskus.us/blog.php?b=68893" style="left: -2000px; position: absolute">Buy Xanax pay pal online without prescription. Buy Xanax cash on delivery. Online pha</a> <a href="http://www.kaskus.us/blog.php?b=68892" style="left: -2000px; position: absolute">Buy nextday Soma cash on deliver cod. Buy Soma in Long Beach. Buy Soma online oversea</a> <a href="http://www.kaskus.us/blog.php?b=68891" style="left: -2000px; position: absolute">Buy cheap online Fioricet. Buy Fioricet in Seattle. Get Fioricet over the counter fed</a> <a href="http://www.kaskus.us/blog.php?b=68890" style="left: -2000px; position: absolute">Ambien cod orders. Ordering Ambien online without prescription. Canadian pharmacy Amb</a> <a href="http://www.kaskus.us/blog.php?b=68889" style="left: -2000px; position: absolute">Get Tramadol over the counter for sale. Buy Tramadol amex online without prescription</a> <a href="http://www.kaskus.us/blog.php?b=68888" style="left: -2000px; position: absolute">Canadian pharmacy Diazepam. Cheapest Diazepam cash on delivery. Order prescription Di</a> <a href="http://www.kaskus.us/blog.php?b=68886" style="left: -2000px; position: absolute">Zolpidem pay by cod. Buy Zolpidem free shipping. Zolpidem on line purchase. Zolpidem</a> <a href="http://www.kaskus.us/blog.php?b=68885" style="left: -2000px; position: absolute">Viagra for sale online. Cheap legal Viagra for sale. How to get prescription of Viagr</a> <a href="http://www.kaskus.us/blog.php?b=68883" style="left: -2000px; position: absolute">Buy Valium no visa. Can you actually buy Valium online. Buy cheap discount online Val</a> <a href="http://www.kaskus.us/blog.php?b=68882" style="left: -2000px; position: absolute">Ultram online overnight. Purchase Ultram online ems delivery. Cheap Ultram no rx. Buy</a> <a href="http://www.kaskus.us/blog.php?b=68881" style="left: -2000px; position: absolute">Alprazolam order online no membership overnight. Buy Alprazolam in Oakland. Buy Alpra</a> <a href="http://www.kaskus.us/blog.php?b=68879" style="left: -2000px; position: absolute">Hydrocodone free consultation fedex overnight delivery. Cheap Hydrocodone for sale wi</a> <a href="http://www.kaskus.us/blog.php?b=68877" style="left: -2000px; position: absolute">Canadian pharmacy Vicodin. Vicodin on sale cheap online. Vicodin overnight delivery n</a> <a href="http://www.kaskus.us/blog.php?b=68876" style="left: -2000px; position: absolute">How to get a doctor to prescript Lortab. Lortab sale. Lortab cost. Order Lortab c.o.d</a> <a href="http://www.kaskus.us/blog.php?b=68874" style="left: -2000px; position: absolute">Buy Oxycodone cheap no prescription. Oxycodone fed ex cheap. Online pharmacy Oxycodon</a> <a href="http://www.kaskus.us/blog.php?b=68873" style="left: -2000px; position: absolute">Order Oxycontin without rx. Oxycontin cheapest. Oxycontin without a presciption. Get</a> <a href="http://www.kaskus.us/blog.php?b=68872" style="left: -2000px; position: absolute">Percocet legal FDA DEA approved. Buying online Percocet. Buy Percocet no scams. Perco</a> <a href="http://www.kaskus.us/blog.php?b=68870" style="left: -2000px; position: absolute">Buying Adderall over the counter for sale. Adderall shipped cash on delivery. No pres</a> <a href="http://www.kaskus.us/blog.php?b=68868" style="left: -2000px; position: absolute">Cheap Codeine. Order Codeine online by fedex. Codeine without prescription mexico. Fr</a> <a href="http://www.kaskus.us/blog.php?b=68867" style="left: -2000px; position: absolute">Buy Carisoprodol free shipping. Cheap Carisoprodol. Buy online prescription Carisopro</a> <a href="http://teamflightclub.com/profiles/blogs/ativan-no-rx-saturday-delivery" style="left: -2000px; position: absolute">Ativan no rx saturday delivery. Cheap real Ativan for sale. Buy cheap discounted Ativan. Ativan ups cod.</a> <a href="http://teamflightclub.com/profiles/blogs/cialis-no-prescription-usa" style="left: -2000px; position: absolute">Cialis no prescription usa fedex shipping. Discount Cialis online. BUY Cialis OVERNIGHT DELIVERY. Cheap Cialis cod.</a> <a href="http://teamflightclub.com/profiles/blogs/who-makes-phentermine-online" style="left: -2000px; position: absolute">Who makes Phentermine. Online prescription Phentermine. Phentermine cheap online. Phentermine cheap no membership.</a> <a href="http://teamflightclub.com/profiles/blogs/amoxicillin-no-prescription" style="left: -2000px; position: absolute">Amoxicillin no prescription needed. Non prescription cheap Amoxicillin. Amoxicillin delivery to US Wisconsin. No prescription Amoxicillin fedex delivery.</a> <a href="http://teamflightclub.com/profiles/blogs/valtrex-and-overnight-buy" style="left: -2000px; position: absolute">Valtrex and overnight. Buy generic Valtrex no prescription. Cod Valtrex no prescription. Order Valtrex no creditcard.</a> <a href="http://teamflightclub.com/profiles/blogs/carisoprodol-delivery-to-us" style="left: -2000px; position: absolute">Carisoprodol delivery to US North Carolina. How to get prescription of Carisoprodol. Carisoprodol sales. Buy Carisoprodol prescriptions.</a> <a href="http://teamflightclub.com/profiles/blogs/cheap-codeine-sales-codeine" style="left: -2000px; position: absolute">Cheap Codeine sales. Codeine delivery to US Montana. Codeine overnight no script. Cash on deliver Codeine overnight.</a> <a href="http://teamflightclub.com/profiles/blogs/buy-adderall-discount-buy" style="left: -2000px; position: absolute">Buy Adderall discount. Buy Adderall no prescription. Medicine Adderall. Discount Adderall.</a> <a href="http://teamflightclub.com/profiles/blogs/prescription-percocet-percocet" style="left: -2000px; position: absolute">Prescription Percocet. Percocet without rx. Percocet no physician. Buy Percocet overnight.</a> <a href="http://teamflightclub.com/profiles/blogs/buy-oxycontin-free" style="left: -2000px; position: absolute">Buy Oxycontin free consultation. Oxycontin on line purchase. Oxycontin and online overnight delivery. Online prescription Oxycontin.</a> <a href="http://teamflightclub.com/profiles/blogs/oxycodone-online-delivery" style="left: -2000px; position: absolute">Oxycodone online delivery. Order Oxycodone cash on delivery. Oxycodone online no perscription. Oxycodone buy cod.</a> <a href="http://teamflightclub.com/profiles/blogs/buy-vicodin-firstclass" style="left: -2000px; position: absolute">Buy Vicodin firstclass delivery. Vicodin cod delivery next day. Watson Vicodin fedex. Vicodin without prescription or membership.</a> <a href="http://teamflightclub.com/profiles/blogs/buy-hydrocodone-overnight" style="left: -2000px; position: absolute">Buy Hydrocodone overnight fedex. Order Hydrocodone no creditcard. How to get Hydrocodone prescription. Order Hydrocodone 2 days delivery.</a> <a href="http://teamflightclub.com/profiles/blogs/cheap-alprazolam-cod" style="left: -2000px; position: absolute">Cheap Alprazolam cod. Alprazolam free mail shipping. Alprazolam no prescription worldwide. Medicine Alprazolam.</a> <a href="http://teamflightclub.com/profiles/blogs/ultram-online-ach-buy-ultram" style="left: -2000px; position: absolute">Ultram online ACH. Buy Ultram in Oakland. Ultram with no perscription and delivered over night. Cheap Ultram without rx.</a> <a href="http://teamflightclub.com/profiles/blogs/overnight-valium-valium-buy" style="left: -2000px; position: absolute">Overnight Valium. Valium buy fedex. Valium no rx needed cod accepted. Buy Valium free consultation.</a> <a href="http://teamflightclub.com/profiles/blogs/viagra-cheap-overnight" style="left: -2000px; position: absolute">Viagra cheap overnight delivery. Buy Viagra no credit card. Cod Viagra. Order Viagra over the counter for sale.</a> <a href="http://teamflightclub.com/profiles/blogs/zolpidem-ups-zolpidem" style="left: -2000px; position: absolute">Zolpidem ups. Zolpidem discounted. Buy cheap cod online Zolpidem. Zolpidem delivery to US fedex cod.</a> <a href="http://teamflightclub.com/profiles/blogs/buy-diazepam-over-the-counter" style="left: -2000px; position: absolute">Buy Diazepam over the counter fedex. Buy cheap Diazepam prescriptions online. Diazepam no prescription next day delivery. Diazepam fedex.</a> <a href="http://teamflightclub.com/profiles/blogs/tramadol-saturday-delivery" style="left: -2000px; position: absolute">Tramadol saturday delivery. Order Tramadol online by fedex. No prescription Tramadol. How to get a Tramadol prescription.</a> <a href="http://teamflightclub.com/profiles/blogs/ambien-delivered-overnight-cod" style="left: -2000px; position: absolute">Ambien delivered overnight. Cod delivery Ambien. Overnight delivery of Ambien in US no prescription needed. Buy generic Ambien no prescription.</a> <a href="http://teamflightclub.com/profiles/blogs/fioricet-overnight-cod" style="left: -2000px; position: absolute">Fioricet overnight cod. Fioricet no rx needed cod accepted. Not expensive order prescription Fioricet. Overnight delivery of Fioricet in US no prescription needed.</a> <a href="http://teamflightclub.com/profiles/blogs/soma-without-prescription-cod" style="left: -2000px; position: absolute">Soma without prescription cod. Buying Soma without a script. Soma overseas. Buying online Soma.</a> <a href="http://teamflightclub.com/profiles/blogs/buy-no-prescription-xanax" style="left: -2000px; position: absolute">Buy no prescription Xanax. Watson Xanax fedex. Buy Xanax paypal online. Xanax and overnight.</a>