Example #1
0
function showSystemReport($option)
{
    $kunena_app =& JFactory::getApplication();
    $return = JRequest::getCmd('return', 'showsystemreport', 'post');
    $report = generateSystemReport();
    html_Kunena::showSystemReport($option, $report);
}
Example #2
0
function editRank($option, $id)
{
    $kunena_db =& JFactory::getDBO();
    $kunena_db->setQuery("SELECT * FROM #__fb_ranks WHERE rank_id = '{$id}'");
    $kunena_db->query() or trigger_dberror("Unable to load ranks.");
    $ranks = $kunena_db->loadObjectList();
    check_dberror("Unable to load ranks.");
    $rank_images = collectRanks();
    $path = rankpath();
    $path = $path['live'] . DS;
    $edit_img = $filename_list = '';
    foreach ($ranks as $row) {
        foreach ($rank_images as $img) {
            $image = $path . $img;
            if ($img == $row->rank_image) {
                $selected = ' selected="selected"';
                $edit_img = $path . $img;
            } else {
                $selected = '';
            }
            if (strlen($img) > 255) {
                continue;
            }
            $filename_list .= '<option value="' . kunena_htmlspecialchars($img) . '"' . $selected . '>' . $img . '</option>';
        }
    }
    html_Kunena::editRank($option, KUNENA_LANGUAGE, $edit_img, $filename_list, $path, $row);
}