Beispiel #1
0
 function getmodulesmenu($menu)
 {
     global $bhcurrent, $bherrors;
     $modulesarray = bh_listmodulesmenu($menu);
     foreach ($modulesarray as $module => $modrow) {
         if (bh_checkmodulepermission($module, $bhcurrent['userobj']->type) == 1) {
             $menumods[] = array("module" => $module, "icon" => $this->getmoduleicon($module), "title" => bh_moduletitle($module));
         }
     }
     return $menumods;
 }
<?php

$str .= "\n<br>\n<table class='toolbar' cellspacing='0' cellpadding='0' width='100%' align='center'>\n\t<tr height='10'>\n\t\t<td width='10'><img src='" . $this->skinpath . "images/sidebar/tl.png'></td>\n\t\t<td background='" . $this->skinpath . "images/sidebar/tc.png'></td>\n\t\t<td width='10'><img src='" . $this->skinpath . "images/sidebar/tr.png'></td>\n\t</tr>\n\t<tr height='30'>\n\t\t<td width='10'><img src='" . $this->skinpath . "images/sidebar/lc.png' width='10' height='30'></td>\n\t\t<td background='" . $this->skinpath . "images/sidebar/titlebg.png' align='center' valign='middle'>\n\t\t\t<table cellpadding='0' cellspacing='0' width='100%'><tr><td width='32' align='center'>\n\t\t\t\t<img src='" . $this->geticon($this->filepath, "16") . "' border='0'>\n\t\t\t</td><td align='center'>\n\t\t\t\t<b>" . $this->subtitle1 . "</b>\n\t\t\t</td></tr></table>\n\t\t</td>\n\t\t<td width='10'><img src='" . $this->skinpath . "images/sidebar/rc.png' width='10' height='30'></td>\n\t</tr>\n\t<tr>\n\t\t<td width='10' background='" . $this->skinpath . "images/sidebar/lc.png'>&nbsp;</td>\n\t\t<td valign='middle' align='center'><br>\n\t\t\t<table width='100%' align='center' cellspacing='6' cellpadding='3'>";
if (!empty($this->content2)) {
    $str .= "\t\t\t<tr><td colspan='3' class='bh_folderpane_classtitle'>" . $bhlang['title:folder_actions'] . "</td></tr>\n\t\t\t<tr><td colspan='3'><table width='100%'align='center' cellspacing='6' cellpadding='3'>\n\t\t";
    foreach ($this->content2 as $modulearray) {
        $even = 1 - $even;
        if ($even == 1) {
            $str .= "<tr>";
        }
        $str .= "<td width='50'><a href='index.php?page=" . $modulearray['module'] . "&filepath=" . $this->filepath . "'><img src='" . $this->getmoduleicon($modulearray['module']) . "' border='0'></a></td><td><a href='index.php?page=" . $modulearray['module'] . "&filepath=" . $this->filepath . "' class='filenamelink'>" . bh_moduletitle($modulearray['module']) . "</a><br><font color='gray'>" . bh_moduledescription($modulearray['module']) . "<br></font></td>";
        if ($even == 0) {
            $str .= "</tr>";
        }
    }
    if ($even == 1) {
        $str .= "</tr>";
    }
    $str .= "\n</table></td></tr>";
}
$str .= "<tr><td colspan='3' class='bh_folderpane_classtitle'>" . $bhlang['title:folder_files'] . "</td></tr>\n";
if (is_array($this->content1)) {
    $even = 0;
    foreach ($this->content1 as $file) {
        if ($even == 0) {
            $str .= "<tr>";
        }
        $file['filepath'] = bh_fpclean($file['filepath']);
        unset($fileobj);
        $fileobj = new bhfile($file['filepath']);
        # Get system's description of file on *nix systems.
Beispiel #3
0
 function getmodulesmenu($menu)
 {
     global $bhcurrent, $bherrors;
     $modulesarray = bh_listadminmodulesmenu($menu);
     # Order by... order
     foreach ($modulesarray as $key => $module) {
         $modulesorder[$key] = $module['menuorder'];
     }
     array_multisort($modulesorder, SORT_ASC, SORT_NUMERIC, $modulesarray);
     if (!empty($modulesarray)) {
         foreach ($modulesarray as $module => $modrow) {
             #if (bh_checkmodulepermission($module, $bhcurrent['userobj']->type) == 1) {
             $menumods[] = array("module" => $module, "icon" => $this->getmoduleicon($module), "title" => bh_moduletitle($module));
             #}
         }
     }
     return $menumods;
 }