|
|
|
@ -1,47 +1,32 @@ |
|
|
|
|
<?php |
|
|
|
|
/* For licensing terms, see /dokeos_license.txt */ |
|
|
|
|
/* For licensing terms, see /license.txt */ |
|
|
|
|
/** |
|
|
|
|
============================================================================== |
|
|
|
|
* Used for external support of chamilo's users |
|
|
|
|
* |
|
|
|
|
* @author Arnaud Ligot, CBlue SPRL |
|
|
|
|
* @package dokeos.admin |
|
|
|
|
============================================================================== |
|
|
|
|
*/ |
|
|
|
|
/* |
|
|
|
|
============================================================================== |
|
|
|
|
INIT SECTION |
|
|
|
|
============================================================================== |
|
|
|
|
* @package chamilo.admin.cli |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* Init section |
|
|
|
|
*/ |
|
|
|
|
// name of the language file that needs to be included |
|
|
|
|
$language_file = 'admin'; |
|
|
|
|
|
|
|
|
|
// we are in the admin area so we do not need a course id |
|
|
|
|
$cidReset = true; |
|
|
|
|
|
|
|
|
|
// include global script |
|
|
|
|
require_once '../inc/global.inc.php'; |
|
|
|
|
$this_section = SECTION_PLATFORM_ADMIN; |
|
|
|
|
|
|
|
|
|
// make sure only logged-in admins can execute this |
|
|
|
|
api_protect_admin_script(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
============================================================================== |
|
|
|
|
MAIN CODE |
|
|
|
|
============================================================================== |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* Main code |
|
|
|
|
*/ |
|
|
|
|
// setting the name of the tool |
|
|
|
|
$tool_name = get_lang('CLI'); |
|
|
|
|
|
|
|
|
|
// setting breadcrumbs |
|
|
|
|
$interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('PlatformAdmin')); |
|
|
|
|
|
|
|
|
|
// including the header file (which includes the banner itself) |
|
|
|
|
Display :: display_header($tool_name); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch ($_GET["cmd"]) { |
|
|
|
|
case "clear_stapi": |
|
|
|
|
echo "Are you sure you are willing to erease all storage api data (no backup)? <a href='cli.php?cmd=clear_stapi_confirm' >Yes</a>"; |
|
|
|
@ -55,11 +40,7 @@ switch ($_GET["cmd"]) { |
|
|
|
|
echo "UNKNOWN COMMAND"; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
============================================================================== |
|
|
|
|
FOOTER |
|
|
|
|
============================================================================== |
|
|
|
|
*/ |
|
|
|
|
/** |
|
|
|
|
* Footer |
|
|
|
|
*/ |
|
|
|
|
Display :: display_footer(); |
|
|
|
|
?> |
|
|
|
|