123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- require_once '../inc/global.inc.php';
- if (empty($_SESSION['my_tool'])) {
- header('location:index.php');
- exit;
- }
- $is_allowed_to_edit = api_is_allowed_to_edit();
- if (!$is_allowed_to_edit) {
- api_not_allowed(true);
- }
- switch ($_SESSION['my_tool']) {
- case TOOL_LEARNPATH:
- require 'upload.scorm.php';
- break;
-
- case TOOL_DROPBOX:
- case TOOL_STUDENTPUBLICATION:
- case TOOL_DOCUMENT:
- default:
- require 'upload.document.php';
- break;
- }
|