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.
26 lines
825 B
26 lines
825 B
<?php
|
|
|
|
require_once('../../../main/inc/global.inc.php');
|
|
require_once($_configuration['root_sys'].'local/classes/mootochamlib.php');
|
|
require_once($_configuration['root_sys'].'local/classes/database.class.php');
|
|
require_once(api_get_path(SYS_PLUGIN_PATH).'vchamilo/lib/vchamilo_plugin.class.php');
|
|
|
|
global $DB;
|
|
$DB = new DatabaseManager();
|
|
|
|
$action = $_GET['what'];
|
|
define('CHAMILO_INTERNAL', true);
|
|
|
|
$plugininstance = VChamiloPlugin::create();
|
|
$thisurl = api_get_path(WEB_PLUGIN_PATH).'vchamilo/views/manage.php';
|
|
|
|
api_protect_admin_script();
|
|
|
|
if ($action == 'syncthis') {
|
|
$res = include_once(api_get_path(SYS_PLUGIN_PATH).'vchamilo/views/syncparams.controller.php');
|
|
if (!$res) {
|
|
echo '<span class="ok">Success</span>';
|
|
} else {
|
|
echo '<span class="failed">Failure<br/>'.$errors.'</span>';
|
|
}
|
|
} |