Вход Регистрация
Файл: www/theme/file_thm.php
Строк: 27
<?php
include '../lib.pclzip.php';
include 
'../lib.tar.php';
include 
'../config.php';
$fid=intval($_GET['fid']);
$r=mysql_fetch_array(mysql_query("SELECT * FROM `theme_file` WHERE `id`='$fid'"));
$tar=new Archive_Tar('files/'.$r['type'].'/'.$r['file']);
$content=$tar->extractInString('Theme.xml');
$teg=simplexml_load_string($content)->Standby_image['Source'] or simplexml_load_string($content)->Desktop_image['Source'];
$string=$tar->extractInString(trim($teg));
$image=imagecreatefromstring($string);
header('Content-type: image/png');
Imagepng($image);
?>
Онлайн: 0
Реклама