Размер файла: 1.91Kb
<?php
/**********************************
* @package: PerfCMS *
* @year: 2012 *
* @author: Artas *
* @link: http://perfcms.ru *
**********************************/
$locate = 'in_padmin';
if(isset($user) && $user['level'] >= 6) {
$title = $lang->word('padmin_installed_themes_list');
require_once(SYS.'/view/header.php');
$tpl->div('title', $lang->word('padmin_installed_themes_list'));
$themes_list_dir = opendir(ROOT .'/template/themes/wap');
while ($themes_list = readdir($themes_list_dir)) {
if ($themes_list == '.' || $themes_list == '..')
continue;
if($themes_list != 'index.php' && $themes_list !='.htaccess') {
$thems = parse_ini_file(ROOT .'/template/themes/wap/'.$themes_list.'/manifest.ini');
echo '<div class="menu">';
echo (file_exists(ROOT .'/template/themes/wap/'.$themes_list.'/screenshot.png') ? '<img src="/template/themes/wap/'.$themes_list.'/screenshot.png" height="150" width="100" />' :
file_exists(ROOT .'/template/themes/wap/'.$themes_list.'/screenshot.jpg') ? '<img src="/template/themes/wap/'.$themes_list.'/screenshot.jpg" height="150" width="100" />' :
file_exists(ROOT .'/template/themes/wap/'.$themes_list.'/screenshot.gif') ? '<img src="/template/themes/wap/'.$themes_list.'/screenshot.gif" height="150" width="100" />' : NULL);
echo '<b>'.$lang->word('name').'</b>: '. $thems['name'].'<br/>';
echo (isset($thems['author']) ? '<b>'.$lang->word('author').'</b>: '. $thems['author'].'<br/>' : NULL);
echo (isset($thems['link']) ? '<b>'.$lang->word('link').'</b>: <a href="'. $thems['link'].'">'. $thems['link'].'</a><br/>' : NULL);
echo '</div>';
}
}
$tpl->div('block', NAV .' <a href="http://perfcms.org.ua/">'.$lang->word('get_more_addons_and_themes').'</a><br/>' . img('admin.png') .'<a href="/padmin/">'. $lang->word('padmin') .'</a><br/>'. HICO .'<a href="/">'. $lang->word('home') .'</a>');
require_once(SYS.'/view/footer.php');
} else { go('/'); }
?>