123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- use ChamiloSession as Session;
- require_once __DIR__.'/../inc/global.inc.php';
- $toolFromSession = Session::read('my_tool');
- if (empty($toolFromSession)) {
- header('location:index.php');
- exit;
- }
- $is_allowed_to_edit = api_is_allowed_to_edit();
- if (!$is_allowed_to_edit) {
- api_not_allowed(true);
- }
- switch ($toolFromSession) {
- case TOOL_LEARNPATH:
- require 'upload.scorm.php';
- break;
-
- case TOOL_DROPBOX:
- case TOOL_STUDENTPUBLICATION:
- case TOOL_DOCUMENT:
- default:
- require 'upload.document.php';
- break;
- }
|