Файл: public_html/modules/padmin/installed_modules.php
Строк: 40
<?php
/**********************************
* @package: PerfCMS *
* @year: 2012 *
* @author: Artas *
* @link: http://perfcms.net *
* ------------------------------- *
* @package: PerfCMS Ultra *
* @year: 2013 *
* @author: wanya26ua & Tesla *
* @link: http://perfclub.ru *
**********************************/
$locate = 'in_padmin';
if(isset($user) && $user['level'] >= 6) {
$title = $lang->word('padmin_installed_modules');
require_once(SYS.'/view/header.php');
$tpl->div('title', $lang->word('padmin_installed_modules'));
$modules_dir = opendir(ROOT .'/modules');
while ($modules = readdir($modules_dir)) {
if ($modules == '.' || $modules == '..')
continue;
if($modules != 'padmin' && $modules != 'pages' && $modules != 'user' && $modules != 'index.php' && $modules !='.htaccess') {
$mods = parse_ini_file(ROOT .'/modules/'.$modules.'/module.ini');
echo '<div class="menu">';
echo '<b>'.$lang->word('name').'</b>: '. $mods['name'].'<br/>';
echo '<b>'.$lang->word('author').'</b>: '. $mods['author'].'<br/>';
echo '<b>'.$lang->word('link').'</b>: <a href="'. $mods['link'].'">'. $mods['link'].'</a><br/>';
echo '</div>';
}
}
$tpl->div('block', NAV .' <a href="http://perfclub.ru/">'.$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('/'); }
?>