|
|
@ -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(); |
|
|
@ -48,4 +53,4 @@ $path_image_search='../../courses/'.api_get_course_path(); |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
echo api_xml_http_response_encode(get_lang('NoResults')); |
|
|
|
echo api_xml_http_response_encode(get_lang('NoResults')); |
|
|
|
} |
|
|
|
} |
|
|
|