Размер файла: 705B
<?
error_reporting(0);
include('modul/config.php');
$id=intval($_GET['id']); $d=mysql_fetch_array(mysql_query("SELECT * FROM `files` WHERE `id`=$id"));
$filesize=filesize(''.$d['infolder'].'/'.$d['name'].''); include('modul/pclzip.lib.php'); $zip=new PclZip(''.$d['infolder'].'/'.$d['name'].''); $content=$zip->extract(PCLZIP_OPT_BY_NAME,"META-INF/MANIFEST.MF",PCLZIP_OPT_EXTRACT_AS_STRING);
header("Content-type: text/vnd.sun.j2me.app-descriptor"); $name=explode(".",$d['name']); header("Content-Disposition: attachment; filename=".$name[0].".jad;"); echo $content[0]['content']; echo "MIDlet-Jar-Size: $filesize\nMIDlet-Jar-URL: http://".$_SERVER['HTTP_HOST']."/".$d['infolder']."/".$d['name']."";
?>