Файл: modules/padmin/installed_modules.php
Строк: 51
<?php
/**
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) 2013, Taras Chornyi, Sergiy Mazurenko, Ivan Kotliar
* @link http://perf-engine.net
* @package PerfEngine
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
$locate = 'in_padmin';
if(isset($user) && $user['level'] >= 6) {
$title = _t('padmin_installed_modules');
include_header($title);
$tpl->div('title', _t('padmin_installed_modules'));
echo '<div class="post">';
$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 '<b>'. ucfirst(_t(strtolower($mods['name']))).'</b><br/>';
echo (isset($mods['author']) ? '<b>'._t('author').'</b>: '. $mods['author'].'<br/>' : null);
echo (isset($mods['link']) ? '<b>'._t('link').'</b>: <a href="'. $mods['link'].'">'. $mods['link'].'</a><br/>' : null);
echo '<hr/>';
}
}
echo '</div>';
$tpl->div('block', img('admin.png') .'<a href="/padmin/">'. _t('padmin') .'</a><br/>'. HICO .'<a href="/">'. _t('home') .'</a>');
include_footer();
} else { go('/'); }
?>