Вход Регистрация
Файл: www/theme/file_nth.php
Строк: 26
<?php
include '../config.php';
include 
'../lib.pclzip.php';
$fid=intval($_GET['fid']);
$r=mysql_fetch_array(mysql_query("SELECT * FROM `theme_file` WHERE `id`='$fid'"));
$nth=new PclZip('files/'.$r['type'].'/'.$r['file']);
$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);
?>
Онлайн: 1
Реклама