0)) { $id = 0; $fl = "dwn"; $fldr = "simvim_panel_dwn"; if (isset($_GET['c'])) { $id = $_GET['c']; } if ($id==1) { $fldr = "_plugin"; } else if ($id==2) { $fldr = "planes"; $fl = "convert"; } else if ($id==3) { $fldr = "work"; } else { $info = "\n".$_GET['file']." - ".date('d/m/Y h:i:s a', time())." - ".$_SERVER['REMOTE_ADDR']; file_put_contents("../inc/panel_dwn.txt", $info, FILE_APPEND); } header('Content-Type: application/octet-stream'); header("Content-disposition: attachment; filename=".$_GET['file']); readfile("../".$fl."/".$fldr."/".$_GET['file']); } else { header("Location: http://realsimcontrol.com"); } ?>