Actualización

This commit is contained in:
Xes
2025-04-10 12:36:07 +02:00
parent 1da7c3f3b9
commit 4aff98e77b
3147 changed files with 320647 additions and 0 deletions

27
plugin/vchamilo/index.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
/**
* @package chamilo.plugin.vchamilo
*/
api_protect_admin_script();
global $virtualChamilo;
$plugin = VChamiloPlugin::create();
// See also the share_user_info plugin
$_template['show_message'] = true;
$_template['title'] = $plugin->get_lang('hostlist');
$table = Database::get_main_table('vchamilo');
$sql = "SELECT sitename, root_web FROM $table WHERE visible = 1";
if ($virtualChamilo == '%') {
$result = Database::query($sql);
$_template['hosts'] = [];
if ($result) {
while ($vchamilo = Database::fetch_assoc($result)) {
$_template['hosts'][] = $vchamilo;
}
}
}