|
|
@ -1,15 +1,20 @@ |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
/* @todo move this file in the inc/ajax/ folder */ |
|
|
|
/* @todo move this file in the inc/ajax/ folder */ |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Glossay ajax request code |
|
|
|
|
|
|
|
* @package chamilo.glossary |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Init |
|
|
|
|
|
|
|
*/ |
|
|
|
// Including the global initialization file. |
|
|
|
// Including the global initialization file. |
|
|
|
require_once '../inc/global.inc.php'; |
|
|
|
require_once '../inc/global.inc.php'; |
|
|
|
|
|
|
|
|
|
|
|
// Including additional libraries. |
|
|
|
// Including additional libraries. |
|
|
|
require_once api_get_path(LIBRARY_PATH).'glossary.lib.php'; |
|
|
|
require_once api_get_path(LIBRARY_PATH).'glossary.lib.php'; |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
/** |
|
|
|
* Search a term and return description from a glossary. |
|
|
|
* Search a term and return description from a glossary. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
$charset = api_get_system_encoding(); |
|
|
|
$charset = api_get_system_encoding(); |
|
|
|