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/plugin/sepe/admin.php

15 lines
375 B

8 years ago
<?php
require_once __DIR__.'/config.php';
8 years ago
$plugin = SepePlugin::create();
$enable = $plugin->get('sepe_enable') == 'true';
$pluginPath = api_get_path(WEB_PLUGIN_PATH).'sepe/src/sepe-administration-menu.php';
8 years ago
if ($enable && api_is_platform_admin()) {
8 years ago
header('Location:'.$pluginPath);
exit;
8 years ago
} else {
header('Location: ../../index.php');
exit;
}