| Current Path : /var/www/cesa.co.za/php/ |
| Current File : /var/www/cesa.co.za/php/downloadPN.php |
<?php
session_start();
include_once('inc_db.php');
LogUserActivity("Download /practicenotes/" . $_REQUEST["filename"]);
if (!empty($_REQUEST["filename"]) && file_exists($_SERVER['DOCUMENT_ROOT'] . "/practicenotes/" . urldecode($_REQUEST["filename"]))) {
header("Location: https://www.cesa.co.za/practicenotes/" . $_REQUEST["filename"]);
} else {
echo "File not found.";
}