[svn r12184] Moved remaining kevin_* scripts to lp_* scripts

skala
Yannick Warnier 18 years ago
parent e880e40b12
commit e08a9c88a4
  1. 0
      main/newscorm/lp_admin_view.php
  2. 0
      main/newscorm/lp_build.php
  3. 28
      main/newscorm/lp_controller.php
  4. 0
      main/newscorm/lp_edit_item.php
  5. 0
      main/newscorm/lp_edit_item_prereq.php
  6. 0
      main/newscorm/lp_move_item.php
  7. 0
      main/newscorm/lp_view_item.php

@ -234,7 +234,7 @@ switch($_REQUEST['action'])
//$_SESSION['oLP']->add_item(0,-1,'dokeos_chapter',$_REQUEST['path'],'Default'); //$_SESSION['oLP']->add_item(0,-1,'dokeos_chapter',$_REQUEST['path'],'Default');
require('kevin_lp_build.php'); require('lp_build.php');
} }
} }
} }
@ -251,7 +251,7 @@ switch($_REQUEST['action'])
{ {
$_SESSION['refresh'] = 1; $_SESSION['refresh'] = 1;
require('kevin_lp_admin_view.php'); require('lp_admin_view.php');
} }
break; break;
@ -264,7 +264,7 @@ switch($_REQUEST['action'])
{ {
$_SESSION['refresh'] = 1; $_SESSION['refresh'] = 1;
require('kevin_lp_build.php'); require('lp_build.php');
} }
break; break;
@ -287,11 +287,11 @@ switch($_REQUEST['action'])
if(isset($_GET['view']) && $_GET['view'] == 'build') if(isset($_GET['view']) && $_GET['view'] == 'build')
{ {
require('kevin_lp_build.php'); require('lp_build.php');
} }
else else
{ {
require('kevin_lp_admin_view.php'); require('lp_admin_view.php');
} }
} }
@ -320,11 +320,11 @@ switch($_REQUEST['action'])
if(isset($_GET['view']) && $_GET['view'] == 'build') if(isset($_GET['view']) && $_GET['view'] == 'build')
{ {
require('kevin_lp_edit_item.php'); require('lp_edit_item.php');
} }
else else
{ {
require('kevin_lp_admin_view.php'); require('lp_admin_view.php');
} }
} }
@ -344,7 +344,7 @@ switch($_REQUEST['action'])
$_SESSION['oLP']->edit_item_prereq($_GET['id'], $_POST['prerequisites'], $_POST['min_' . $_POST['prerequisites']], $_POST['max_' . $_POST['prerequisites']]); $_SESSION['oLP']->edit_item_prereq($_GET['id'], $_POST['prerequisites'], $_POST['min_' . $_POST['prerequisites']], $_POST['max_' . $_POST['prerequisites']]);
} }
require('kevin_lp_edit_item_prereq.php'); require('lp_edit_item_prereq.php');
} }
break; break;
@ -367,13 +367,13 @@ switch($_REQUEST['action'])
if(isset($_GET['view']) && $_GET['view'] == 'build') if(isset($_GET['view']) && $_GET['view'] == 'build')
{ {
require('kevin_lp_move_item.php'); require('lp_move_item.php');
} }
else else
{ {
$_SESSION['oLP']->move_item($_GET['id'], $_GET['direction']); $_SESSION['oLP']->move_item($_GET['id'], $_GET['direction']);
require('kevin_lp_admin_view.php'); require('lp_admin_view.php');
} }
} }
@ -387,7 +387,7 @@ switch($_REQUEST['action'])
{ {
$_SESSION['refresh'] = 1; $_SESSION['refresh'] = 1;
require('kevin_lp_view_item.php'); require('lp_view_item.php');
} }
break; break;
@ -459,7 +459,7 @@ switch($_REQUEST['action'])
require('resourcelinker.php'); require('resourcelinker.php');
//$_SESSION['oLP']->add_sub_item($_REQUEST['parent_item_id'],$_REQUEST['previous'],$_REQUEST['type'],$_REQUEST['path'],$_REQUEST['title']); //$_SESSION['oLP']->add_sub_item($_REQUEST['parent_item_id'],$_REQUEST['previous'],$_REQUEST['type'],$_REQUEST['path'],$_REQUEST['title']);
}else{ }else{
require('kevin_lp_admin_view.php'); require('lp_admin_view.php');
} }
} }
break; break;
@ -472,7 +472,7 @@ switch($_REQUEST['action'])
if(!empty($_REQUEST['id'])){ if(!empty($_REQUEST['id'])){
$_SESSION['oLP']->delete_item($_REQUEST['id']); $_SESSION['oLP']->delete_item($_REQUEST['id']);
} }
require('kevin_lp_admin_view.php'); require('lp_admin_view.php');
} }
break; break;
case 'edititemprereq': case 'edititemprereq':
@ -484,7 +484,7 @@ switch($_REQUEST['action'])
$_SESSION['refresh'] = 1; $_SESSION['refresh'] = 1;
$_SESSION['oLP']->edit_item_prereq($_REQUEST['id'],$_REQUEST['prereq']); $_SESSION['oLP']->edit_item_prereq($_REQUEST['id'],$_REQUEST['prereq']);
} }
require('kevin_lp_admin_view.php'); require('lp_admin_view.php');
} }
break; break;
case 'restart': case 'restart':

Loading…
Cancel
Save