Esempio n. 1
0
     }
     break;
 case 'content':
     if ($debug > 0) {
         error_log('New LP - content action triggered', 0);
     }
     if ($debug > 0) {
         error_log('New LP - Item id is ' . intval($_GET['item_id']), 0);
     }
     if (!$lp_found) {
         error_log('New LP - No learnpath given for content', 0);
         require 'lp_list.php';
     } else {
         $learnPath->save_last();
         $learnPath->set_current_item($_GET['item_id']);
         $learnPath->start_current_item();
         $learnPath->updateCurrentLpFromSession();
         require 'lp_content.php';
     }
     break;
 case 'view':
     if ($debug > 0) {
         error_log('New LP - view action triggered', 0);
     }
     if (!$lp_found) {
         error_log('New LP - No learnpath given for view', 0);
         require 'lp_list.php';
     } else {
         if ($debug > 0) {
             error_log('New LP - Trying to set current item to ' . $_REQUEST['item_id'], 0);
         }