示例#1
0
    case 'get_cufon':
        HTML_swmenufree::uploadCufon();
        break;
    case 'upload_ttf':
        upload_ttf();
        break;
    case 'upload_ttf_file':
        upload_ttf_file();
        break;
    case "upgrade":
        JToolbarHelper::title(JText::_('swMenuFree: Upgrade/Repair swMenuFree'));
        upgrade();
        break;
    case "manualsave":
        JToolbarHelper::title(JText::_('swMenuFree: Manual Edit CSS File'));
        saveCSS();
        break;
    case "editDhtmlMenu":
        JToolbarHelper::title(JText::_('swMenuFree: Menu Module Editor'));
        editDhtmlMenu();
        break;
    case "editCSS":
        JToolbarHelper::title(JText::_('swMenuFree: Manual Edit CSS File'));
        editCSS();
        break;
    default:
        JToolbarHelper::title(JText::_('swMenuFree: Menu Module Editor'));
        editDhtmlMenu();
        break;
}
function preview()
示例#2
0
     break;
 case 'import_swMenuFree':
     import_swmenufree();
     break;
 case "upgrade":
     upgrade($option);
     break;
 case "exportMenu":
     $msg = exportMenu($cid[0], $option);
     $mainframe->redirect("index2.php?task=showmodules&option={$option}&limit={$limit}&limitstart={$limitstart}", $msg);
     break;
 case "imagesave":
     saveImages($cid[0], $option);
     break;
 case "manualsave":
     saveCSS($cid[0], $option);
     break;
 case "editDhtmlMenu":
     editDhtmlMenu($cid[0], $option);
     break;
 case "editCSS":
     editCSS($cid[0], $option);
     break;
 case "remove":
     if (is_array($cid) && count($cid) > 1) {
         foreach ($cid as $delid) {
             removeMyMenu($delid, $option);
         }
     } else {
         $delid = $cid[0];
         removeMyMenu($delid, $option);