Codice PHP:
case "remove_user" :
JLMS_removeFromCourse( $option );
break;
case "add_to_class" :
JLMS_addToClass( $option );
break;
case "add_new_to_class" :
JLMS_addnewToClass( $option );
break;
case "view_class_users" :
JLMS_viewClassUsers( $option );
break;
case "view_class_users_groups" :
JLMS_viewUsersInGroups( $option );
break;
case "view_class_users_courses" :
JLMS_viewUsersInCourses( $option );
break;
case "add_stu_to_group" :
JLMS_addUserToGlobalGroup( $option );
break;
switch ( $task )
{
case "add_stu_to_course" :
JLMS_addUserToCourse( $option );
break;
case "list_courses_student" :
JLMS_List_Courses_Student( $option );
break;
case "edit_stu_in_course" :
JLMS_showEditUser( $option, 1 );
break;
case "save_stu_in_group" :
JLMS_saveUserInGlobalGroup( $option );
break;
case "remove_stu_from_group" :
JLMS_removeUsersFromGlobalGroup( $cid, $option );
break;
case "cancel_user_in_group" :
mosRedirect( "index.php?option={$option}&task=view_class_users_groups" );
break;
case "cancel_user_in_course" :
mosRedirect( "index.php?option={$option}&task=view_class_users_courses" );
break;
case "view_assistants" :
JLMS_viewAssistants( $option );
break;
case "add_assistant" :
JLMS_showAddUser( $option, 2 );
break;
case "add_stu" :
JLMS_showAddUser( $option, 1 );
break;
case "add_user_save" :
JLMS_addUserToGroup( $option );
break;
case "remove_assistant" :
JLMS_removeAssistant( intval( $cid[0] ), $option );
break;
case "remove_stu" :
JLMS_removeStudent( $option );
break;
case "remove_stu_from_course" :
JLMS_removeStudent( $option );
break;
case "edit_stu" :
JLMS_showEditUser( $option, 1 );
break;
case "edit_user_save" :
JLMS_EditUserSave( $option );
break;
case "cancel_stu" :
mosRedirect( "index.php?option={$option}&task=view_class_users" );
break;
case "cancel_assistant" :
mosRedirect( "index.php?option={$option}&task=view_assistants" );
break;
case "view_childrens" :
JLMS_viewChildrens( $option );
break;
case "add_child" :
case "edit_child" :
JLMS_editChildren( $option );
break;
case "save_child" :
JLMS_saveChildren( $option );
break;
case "delte_child" :
JLMS_deleteChildren( $option );
break;
case "view_parents" :
JLMS_viewParents( $option );
break;
case "add_parent" :
JLMS_editParent( 0, $option );
break;
case "edit_parent" :
JLMS_editParent( intval( $cid[0] ), $option );
break;
case "editA_parent" :
JLMS_editParent( $id, $option );
break;
case "delete_parent" :
JLMS_deleteParent( $option );
break;
case "remove_parent" :
JLMS_removeParent( intval( $cid[0] ), $option );
break;
case "cancel_parent" :
mosRedirect( "index.php?option={$option}&task=view_parents" );
break;
case "save_parent" :
JLMS_saveParent( $option );
break;
case "courses_list" :
JLMS_coursesList( $option );
break;
case "back" :
mosRedirect( "index.php?option={$option}&task=courses_list" );
break;
case "view_course_backup" :
JLMS_courseBackups( $option, $id );
break;
case "course_export" :
require_once( _JOOMLMS_INCLUDES_PATH."jlms_course_export.php" );
JLMS_courseExport( $option, $id, "exp" );
break;
case "backup_download" :
require_once( _JOOMLMS_INCLUDES_PATH."jlms_download.php" );
JLMS_download( $backup_name );
break;
case "course_backup_gen" :
require_once( _JOOMLMS_INCLUDES_PATH."jlms_course_export.php" );
JLMS_courseExport( $option, $id, "gen" );
mosRedirect( "index.php?option={$option}&task=view_course_backup&id={$id}", _JLMS_BCK_MSG_HAS_BEEN_CREATED );
break;
case "import" :
joomla_lms_adm_html::jlms_courseimport( $option );
break;
case "download" :
$backup_id = mosGetParam( $_REQUEST, "backup_id", 0 );
JLMS_courseDownload( $option, $backup_id );
break;
case "course_backups_del" :
JLMS_coursebackupsDelete( $cid, $option, $id );
break;
case "course_import" :
do
{
if ( !class_exists( "JParameter" ) )
{
break;
}
else
{
require_once( _JOOMLMS_FRONT_HOME.DS."includes".DS."classes".DS."lms.params.new.php" );
}
} while ( 0 );
require_once( _JOOMLMS_FRONT_HOME.DS."includes".DS."classes".DS."lms.params.php" );
require_once( _JOOMLMS_INCLUDES_PATH."jlms_course_import.php" );
JLMS_courseImport( $option );
mosRedirect( "index.php?option=com_joomla_lms&task=import", _JLMS_MSG_COURSE_HAS_BEEN_IMPORTED );
break;
case "cancel_backups" :
JLMS_cancelBackups( $option );
break;
case "backup" :
JLMS_backupsList( $option );
break;
case "backup_generate" :
JLMS_backupGenerate( $option );
break;
case "backup_restore" :
JLMS_backupRestore( $cid[0], $option );
break;
case "backups_delete" :
JLMS_backupDelete( $cid, $option );
break;
case "cb_integration" :
JLMS_cb_integration( $option );
break;
case "cb_integration_edit" :
JLMS_cb_integration_edit( $cid[0], $option );
break;
case "cb_integration_add" :
JLMS_cb_integration_edit( 0, $option );
break;
case "cb_integration_delete" :
JLMS_cb_integration_delete( $cid, $option );
break;
case "cb_integration_save" :
JLMS_cb_integration_save( $option );
break;
case "menu_manage" :
JLMS_menuManage( $option );
break;
case "saveorder" :
JLMS_saveOrder( $cid );
break;
case "orderup" :
JLMS_orderMenu( intval( $cid[0] ), 0 - 1, $option );
break;
case "orderdown" :
JLMS_orderMenu( intval( $cid[0] ), 1, $option );
break;
case "publish_menu" :
JLMS_changeMenu( $cid, 1, $option );
break;
case "unpublish_menu" :
JLMS_changeMenu( $cid, 0, $option );
break;
case "config" :
JLMS_config( $option );
break;
case "config_save" :
case "config_apply" :
JLMS_config_save( $option );
break;
case "look_feel" :
JLMS_Look_Feel( $option );
break;
case "look_feel_save" :
JLMS_Look_Feel_Save( $option );
break;
case "courses" :
JLMS_ListCourses( $option );
break;
case "publish_course" :
JLMS_changeCourse( $cid, 1, $option );
break;
case "unpublish_course" :
JLMS_changeCourse( $cid, 0, $option );
break;
case "new_course" :
JLMS_newCourse( $option );
break;
case "edit_course" :
JLMS_editCourse( $cid[0], $option );
break;
case "editA_course" :
JLMS_editCourse( $id, $option );
break;
case "save_course" :
JLMS_saveCourse( $id, $option, $task );
break;
case "apply_course" :
JLMS_saveCourse( $id, $option, $task );
break;
case "cancel_course" :
JLMS_cancelCourse( );
break;
case "del_course" :
JLMS_pre_DeleteCourse( $cid[0], $option );
break;
case "course_delete_yes" :
JLMS_deleteCourse( $cid[0], $option );
break;
case "courses_template" :
JLMS_ListCoursesTemplate( $option );
break;
case "courses_templ_add" :
JLMS_ListCoursesTemplAdd( 0, $option );
break;
case "courses_templ_edit" :
JLMS_ListCoursesTemplAdd( $cid[0], $option );
break;
case "courses_templ_del" :
JLMS_ListCoursesTemplDel( $cid, $option );
break;
case "courses_templ_save" :
JLMS_ListCoursesTemplSave( $option );
break;
case "course_order_up" :
JLMS_orderCourse( intval( $cid[0] ), 0 - 1, $option );
break;
case "course_order_down" :
JLMS_orderCourse( intval( $cid[0] ), 1, $option );
break;
case "course_save_order" :
JLMS_course_saveOrder( $cid, $option );
break;
case "multicat" :
FLMS_ListCategories( $option );
break;
case "multicat_config" :
FLMS_CategoriesConfig( $option );
break;
case "multicat_config_save" :
FLMS_CategoriesConfigSave( $option );
break;
case "multicat_new" :
FLMS_EditCategories( 0, $option );
break;
case "multicat_edit" :
FLMS_EditCategories( $cid[0], $option );
break;
case "multicat_editA" :
FLMS_EditCategories( $id, $option );
break;
case "multicat_apply" :
case "multicat_save" :
FLMS_SaveCategories( $option, $task );
break;
case "multicat_delete" :
FLMS_DeleteCategories( $cid, $option );
break;
case "languages" :
JLMS_ListLangs( $option );
break;
case "default_lang" :
JLMS_makeLangDefault( $cid[0], $option );
break;
case "export_lang" :
JLMS_ExportLang( $cid[0], $option );
break;
case "import_lang" :
joomla_lms_adm_html::jlms_showimportlang( $option );
break;
case "upload_lang" :
JLMS_UploadLang( $option );
break;
case "del_lang" :
JLMS_DeleteLang( $cid[0], $option );
break;
case "cancel_lang" :
mosRedirect( "index.php?option=com_joomla_lms&task=languages" );
break;