<?php

/**
 * CLAROLINE Applet
 *
 * @author Loic Fortemps
 *
 * @package MOBILE
 *
 */
$tlabelReq = 'MOBILE';
require_once dirname(__FILE__) . '/../../claroline/inc/claro_init_global.inc.php';
Claroline::initDisplay(Claroline::POPUP);
CssLoader::getInstance()->load('mobile', 'all');
$pageTitle = array('mainTitle' => get_lang('Mobile Apps Configuration'), 'subTitle' => get_lang('Configuration helper'));
ClaroBreadCrumbs::getInstance()->append($pageTitle['mainTitle'], $_SERVER['PHP_SELF']);
ClaroBreadCrumbs::getInstance()->append($pageTitle['subTitle']);
$template = new ModuleTemplate($tlabelReq, 'popup.tpl.php');
Claroline::getInstance()->display->body->appendContent(claro_html_tool_title($pageTitle) . $template->render());
echo Claroline::getInstance()->display->render();
示例#2
0
  ----------------------------------------------------------------------*/
language::load_translation();
language::load_locale_settings();
language::load_module_translation();
// set the mysql connexion for the course !!! does not work ignored by mysql :(
// I'm afraid this will not be possible if we don't reset the connection
// We could solve this when the charset is in the session (since this will allow
// us to change the charset while initialising the database), but as a
// consequence this will not work onn the first access to the course.
/*
Claroline::getDatabase()->setCharset( strtolower(get_locale('charset')) );
pushClaroMessage( get_locale('charset') . ':' . Claroline::getDatabase ()->getCharset (),'debug' );
pushClaroMessage( Claroline::getDatabase ()->getCharset (),'debug' );
*/
// Initialize the claroline display
Claroline::initDisplay();
// Assign the Claroline singleton to a variable for more convenience
// for legacy code, it's far better to use Claroline class static methods.
$claroline = Claroline::getInstance();
/*===========================================================================
                     Load configuration files
 ===========================================================================*/
// Course tools
if (isset($_cid) && $_courseTool['label']) {
    $config_code = rtrim($_courseTool['label'], '_');
    if (file_exists(claro_get_conf_repository() . $config_code . '.conf.php')) {
        include claro_get_conf_repository() . $config_code . '.conf.php';
        pushClaroMessage("Loading configuration file " . claro_get_conf_repository() . $config_code . '.conf.php', 'debug');
    }
    if (claro_is_in_a_course() && file_exists(get_conf('coursesRepositorySys') . $_course['path'] . '/conf/' . $config_code . '.conf.php')) {
        require get_conf('coursesRepositorySys') . $_course['path'] . '/conf/' . $config_code . '.conf.php';