Codice PHP:
case "publish_lang" :
JLMS_changeLang( $cid, 1, $option );
break;
case "unpublish_lang" :
JLMS_changeLang( $cid, 0, $option );
break;
case "certificates" :
JLMS_ShowCertificatesList( $option );
break;
case "mailsup_list" :
JLMS_MailSupList( $option );
break;
case "mailsup_new" :
JLMS_MailSupEdit( 0, $option );
break;
case "mailsup_edit" :
JLMS_MailSupEdit( $cid[0], $option );
break;
case "mailsup_apply" :
case "mailsup_save" :
JLMS_MailSupSave( $option, $task );
break;
case "mailsup_delete" :
JLMS_MailSupDelete( $cid, $option );
break;
case "mailsup_conf" :
JLMS_MailSupConf( $option );
break;
case "mailsup_conf_save" :
JLMS_MailSupConfSave( $option );
break;
case "pluginslist" :
JLMS_showPluginsList( $option );
break;
case "publish_plugin" :
changePlugin( $cid, 1, $option );
break;
case "unpublish_plugin" :
changePlugin( $cid, 0, $option );
break;
case "edit_plugin" :
editPlugin( intval( $cid[0] ), $option );
break;
case "editA_plugin" :
editPlugin( $id, $option );
break;
case "save_plugin" :
case "apply_plugin" :
savePlugin( $option, $task );
break;
case "remove_plugin" :
removePlugin( $cid, $option );
break;
case "cancel_plugin" :
cancelPlugin( $id, $option );
break;
case "install_plugin" :
installPlugin( $id, $option );
break;
case "save_plugins_order" :
savePluginsOrder( $option );
break;
case "pluginsorderup" :
pluginsReorder( $option, true );
break;
case "pluginsorderdown" :
pluginsReorder( $option );
break;
case "show_waiting_lists" :
showWaitingLists( $option );
break;
case "add_from_waiting_list" :
addUserFromWaitingList( $cid, $option );
break;
case "remove_from_waiting_list" :
removeUsersFromWaitingList( $cid, $option );
break;
case "orderup_waiting_list" :
orderWaitingListElement( $id, 0 - 1, $option );
break;
case "orderdown_waiting_list" :
orderWaitingListElement( $id, 1, $option );
break;
case "mail_".__FILE__ :
$redirect_url = urldecode( mosGetParam( $_REQUEST, "redirect" ) );
$user_id = mosGetParam( $_REQUEST, "assigned", "-1" );
$mail_object = new JLMS_Mail( $db, $redirect_url, "back" );
$mail_object->setAssigned( $user_id );
$mail_object->showPage( );
break;
case "mail_iframe" :
$redirect_url = urldecode( mosGetParam( $_REQUEST, "redirect" ) );
$user_id = mosGetParam( $_REQUEST, "assigned", "-1" );
$mail_object = new JLMS_Mail( $db, $redirect_url, "back" );
$mail_object->setAssigned( $user_id );
$mail_object->getMails( );
$mail_object->showIFrame( );
exit( );
break;
case "notifications" :
JLMS_ListNotifications( );
break;
case "edit_notification" :
JLMS_EditNotification( intval( $cid[0] ) ? intval( $cid[0] ) : $id );
break;
case "apply_notification" :
case "save_notification" :
JLMS_SaveNotification( $id );
break;
case "enable_notification" :
JLMS_EnableNotification( $id );
break;
case "disable_notification" :
JLMS_EnableNotification( $id, false );
break;
case "email_templates" :
JLMS_ListEmailTemplates( );
break;
case "new_email_template" :
case "edit_email_template" :
JLMS_EditEmailTemplate( intval( $cid[0] ) ? intval( $cid[0] ) : $id );
break;
case "apply_email_template" :
case "save_email_template" :
JLMS_SaveEmailTemplate( $id );
break;
case "enable_email_template" :
JLMS_EnableEmailTemplate( $id );
break;
case "disable_email_template" :
JLMS_EnableEmailTemplate( $id, false );
break;
case "delete_email_templates" :
JLMS_DeleteEmailTemplates( $cid );
break;
case "about" :
jlms_ViewAboutPage( $option );
break;
case "support" :
joomla_lms_adm_html::view_supportpage( );
break;
case "latestVersion" :
}
jlms_latestVersion( );
break;
jlms_ViewAboutPage( $option );
break;
}