|
Perch America Main Menu Site Navigator Chat Fish Report Weather About Us |
session_start(); $_SESSION['ip'] = $_SERVER['REMOTE_ADDR']; ?> $path = "./"; $remote = $_SERVER['REMOTE_ADDR']; $file = $_REQUEST['download']; session_start(); if ($_SESSION['ip'] == $remote) { header("Content-Length: ".filesize($path . $file)); header("Content-Type: application/force-download"); header("Content-Disposition: attachment; filename = $file"); readfile ($path . $file); } else { header('Location: http://localhost/perchamerica'); exit; } ?>
|
By: admin
|