1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00
php-e107/e107_files/shortcode/admin_docs.sc
2006-12-02 04:36:16 +00:00

25 lines
698 B
Python

if(ADMIN){
global $ns;
$i=1;
if (!$handle=opendir(e_DOCS.e_LANGUAGE."/")) {
$handle=opendir(e_DOCS."English/");
}
while ($file = readdir($handle)){
if($file != "." && $file != ".." && $file != "CVS"){
$helplist[$i] = $file;
$i++;
}
}
closedir($handle);
unset($e107_var);
foreach ($helplist as $key => $value) {
$e107_var['x'.$key]['text'] = str_replace("_", " ", $value);
$e107_var['x'.$key]['link'] = e_ADMIN."docs.php?".$key;
}
$text = show_admin_menu(FOOTLAN_14, $act, $e107_var, FALSE, TRUE, TRUE);
return $ns -> tablerender(FOOTLAN_14,$text, array('id' => 'admin_docs', 'style' => 'button_menu'), TRUE);
}