$client = mosGetParam($_REQUEST, 'client', ''); if (!is_array($cid)) { $cid = array(0); } switch ($task) { case 'new': mosRedirect('index2.php?option=com_installer&element=template&client=' . $client); break; case 'edit_source': editTemplateSource($cid[0], $option, $client); break; case 'save_source': saveTemplateSource($option, $client); break; case 'edit_css': editTemplateCSS($cid[0], $option, $client); break; case 'save_css': saveTemplateCSS($option, $client); break; case 'remove': removeTemplate($cid[0], $option, $client); break; case 'publish': defaultTemplate($cid[0], $option, $client); break; case 'default': defaultTemplate($cid[0], $option, $client); break; case 'assign': assignTemplate($cid[0], $option, $client);
break; case "publishTemplate": publishTemplate(); break; case "editKTemplate": editKTemplate($option); break; case "saveTemplate": case "applyTemplate": saveTemplate(); break; case "chooseCSSTemplate": chooseCSSTemplate(); break; case "editTemplateCSS": editTemplateCSS(); break; case "saveTemplateCSS": saveTemplateCSS(); break; case "cancelTemplate": cancelTemplate(); break; /*case "previewTemplate" : previewTemplate(); break;*/ /*case "previewTemplate" : previewTemplate(); break;*/