Размер файла: 622B
<?
include('modul/config.php'); include('modul/pclzip.lib.php'); $id=intval($_GET['id']);
$query=mysql_query("SELECT * FROM `files` WHERE `id`=$id"); $d=mysql_fetch_array($query); $nth=new PclZip(''.$d['infolder'].'/'.$d['name'].'');
$content=$nth->extract(PCLZIP_OPT_BY_NAME, 'theme_descriptor.xml', PCLZIP_OPT_EXTRACT_AS_STRING);
$teg=simplexml_load_string($content[0]['content'])->wallpaper['main_display_graphics']; $string=$nth->extract(PCLZIP_OPT_BY_NAME,"$teg", PCLZIP_OPT_EXTRACT_AS_STRING); $str=$string[0]['content'];
$image=imagecreatefromstring($str); header("Content-type: image/png"); imagepng($image);
?>