Exemple #1
0
|   from docebo 4.0.5 CE 2008-2012 (c) docebo                               |
|   License http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt            |
\ ======================================================================== */
define("LMS", true);
define("IN_FORMA", true);
define("_deeppath_", '../');
require dirname(__FILE__) . '/../base.php';
// start buffer
ob_start();
// initialize
require _base_ . '/lib/lib.bootstrap.php';
Boot::init(BOOT_PAGE_WR);
// connect to the database
$db =& DbConn::getInstance();
if (Get::cfg('enable_plugins', false)) {
    PluginManager::runPlugins();
}
// some specific lib to load
require_once _lms_ . '/lib/lib.istance.php';
require_once _lms_ . '/lib/lib.permission.php';
require_once _lms_ . '/lib/lib.track_user.php';
require_once _lms_ . '/class.module/class.definition.php';
// -----------------------------------------------------------------------------
$module_cfg = false;
$GLOBALS['modname'] = Get::req('modname', DOTY_ALPHANUM, '');
$GLOBALS['op'] = Get::req('op', DOTY_ALPHANUM, '');
$GLOBALS['req'] = Get::req('r', DOTY_MIXED, '');
YuiLib::activateConnectLoadingBox();
// instanciate the page-writer that we want (maybe we can rewrite it in a
// different way with the introduction of the layout manager)
if (isset($_GET['no_redirect']) || isset($_POST['no_redirect'])) {