Example #1
0
        getcategories();
        break;
    case 'getcontents':
        getcontents();
        break;
    case 'getimages':
        getimages();
        break;
        // DEFAULT
    // DEFAULT
    default:
        showNothing($option);
        break;
}
if ($task == "getimages") {
    HTML_FPSlideShow::showFooter();
}
function showNothing($option)
{
    echo "<div>Nothing to see here! ;-)</div>";
}
/////////////////////////////// HELPERS  ////////////////////////////////////////////////
// AJAX
function getcategories()
{
    $db =& JFactory::getDBO();
    $sid = JRequest::getVar('sid', 0, 'get', 'int');
    if (!headers_sent()) {
        while (@ob_end_clean()) {
        }
        ob_start();