Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/auth/generate_api_key.inc.php

15 lines
544 B

<?php
require '../inc/global.inc.php';
require_once (api_get_path(LIBRARY_PATH).'usermanager.lib.php');
$array_list_key=array();
$user_id=api_get_user_id();
$api_service='dokeos';
$num=UserManager::update_api_key($user_id,$api_service);
$array_list_key=UserManager::get_api_keys($user_id,$api_service);
?>
<div class="row">
<div class="label"><?php echo get_lang('MyApiKey') ?></div>
<div class="formw">
<input type="text" name="api_key_generate" id="id_api_key_generate" size="40" value="<?php echo $array_list_key[$num]?>"/>
</div>
</div>