|
|
|
|
@ -1,42 +1,18 @@ |
|
|
|
|
<?php // $Id: resourcelinker.inc.php 20468 2009-05-11 08:48:25Z ivantcholakov $
|
|
|
|
|
/* |
|
|
|
|
============================================================================== |
|
|
|
|
Dokeos - elearning and course management software |
|
|
|
|
|
|
|
|
|
Copyright (c) 2004 Dokeos S.A. |
|
|
|
|
Copyright (c) 2003 Ghent University (UGent) |
|
|
|
|
Copyright (c) 2001 Universite catholique de Louvain (UCL) |
|
|
|
|
Copyright (c) Patrick Cool (patrick.cool@ugent.be) |
|
|
|
|
Copyright (c) Denes Nagy |
|
|
|
|
|
|
|
|
|
For a full list of contributors, see "credits.txt". |
|
|
|
|
The full license can be read in "license.txt". |
|
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or |
|
|
|
|
modify it under the terms of the GNU General Public License |
|
|
|
|
as published by the Free Software Foundation; either version 2 |
|
|
|
|
of the License, or (at your option) any later version. |
|
|
|
|
|
|
|
|
|
See the GNU General Public License for more details. |
|
|
|
|
|
|
|
|
|
Contact: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com |
|
|
|
|
============================================================================== |
|
|
|
|
*/ |
|
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
|
/** |
|
|
|
|
============================================================================== |
|
|
|
|
* @author Patrick Cool - original version |
|
|
|
|
* @author Denes Nagy - further improvements for learning path builder |
|
|
|
|
* @author Roan Embrechts - refactoring to improve code organisation |
|
|
|
|
* @package dokeos.resourcelinker |
|
|
|
|
* @package chamilo.resourcelinker |
|
|
|
|
* @todo use the constants for the tools |
|
|
|
|
* @todo use Database API instead of creating table names locally. |
|
|
|
|
============================================================================== |
|
|
|
|
* @this is still use? |
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
============================================================================== |
|
|
|
|
INIT SECTION |
|
|
|
|
============================================================================== |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
// name of the language file that needs to be included |
|
|
|
|
@ -48,9 +24,7 @@ include_once(api_get_path(LIBRARY_PATH).'fileDisplay.lib.php'); |
|
|
|
|
include(api_get_path(SYS_CODE_PATH).'exercice/hotpotatoes.lib.php'); |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
============================================================================== |
|
|
|
|
FUNCTIONS |
|
|
|
|
============================================================================== |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
function unset_session_resources() |
|
|
|
|
|