Пример #1
0
 		if(!$lp_found){ error_log('New LP - No learnpath given for switch',0); require 'lp_list.php'; }
 		Session::write('refresh', 1);
 		$learnPath->set_seriousgame_mode();
 		require 'lp_list.php';
 		break;
      */
 case 'switch_attempt_mode':
     if ($debug > 0) {
         error_log('New LP - switch_reinit action triggered', 0);
     }
     if (!$lp_found) {
         error_log('New LP - No learnpath given for switch', 0);
         require 'lp_list.php';
     }
     Session::write('refresh', 1);
     $learnPath->switch_attempt_mode();
     $learnPath->updateCurrentLpFromSession();
     require 'lp_list.php';
     break;
 case 'switch_scorm_debug':
     if ($debug > 0) {
         error_log('New LP - switch_scorm_debug action triggered', 0);
     }
     if (!$lp_found) {
         error_log('New LP - No learnpath given for switch', 0);
         require 'lp_list.php';
     }
     Session::write('refresh', 1);
     $learnPath->update_scorm_debug();
     $learnPath->updateCurrentLpFromSession();
     require 'lp_list.php';