File size: 1.19Kb
<?php
/**********************************
* @package: PerfCMS *
* @year: 2012 *
* @author: Artas *
* @link: http://perfcms.pp.ua *
**********************************/
$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') {
$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', 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('/'); }
?>