Exemplo n.º 1
0
     echo "<div class='alert alert-danger'><h4>Freestyle Support cannot be run as your default menu item,</h4><p>Freestyle Support Portal ";
     echo "cannot be the default menu item on a Joomla site. This is due to how Joomla handles default item urls not being compatible ";
     echo "with the Freestyle routing. Please create a new home item of the type 'Freestyle Support' -> 'Redirect to main menu' and set ";
     echo "this as your default menu item.";
     echo "</p></div>";
 }
 // Require specific controller if requested
 if ($controller = FSS_Input::getCmd('controller')) {
     $path = JPATH_COMPONENT . DS . 'controllers' . DS . $controller . '.php';
     if (file_exists($path)) {
         require_once $path;
     } else {
         $controller = '';
     }
 }
 FSS_Helper::CheckTicketLink();
 // Create the controller
 $classname = 'FssController' . $controller;
 $controller = new $classname();
 $view = FSS_Input::getCmd('view');
 if ($view != "csstest") {
     FSS_Helper::StylesAndJS(array('tooltip'));
 }
 // Perform the Request task
 $task = FSS_Input::getCmd('task');
 if ($task == "captcha_image") {
     ob_clean();
     require_once JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'helper' . DS . 'captcha.php';
     $cap = new FSS_Captcha();
     $cap->GetImage();
     exit;