Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 211... Línea 211...
211
            'tool_mobile_androidappid' => get_config('tool_mobile', 'androidappid'),
211
            'tool_mobile_androidappid' => get_config('tool_mobile', 'androidappid'),
212
            'tool_mobile_setuplink' => clean_param(get_config('tool_mobile', 'setuplink'), PARAM_URL),
212
            'tool_mobile_setuplink' => clean_param(get_config('tool_mobile', 'setuplink'), PARAM_URL),
213
            'tool_mobile_qrcodetype' => clean_param(get_config('tool_mobile', 'qrcodetype'), PARAM_INT),
213
            'tool_mobile_qrcodetype' => clean_param(get_config('tool_mobile', 'qrcodetype'), PARAM_INT),
214
            'supportpage' => $sitesupportavailable ? clean_param($CFG->supportpage, PARAM_URL) : '',
214
            'supportpage' => $sitesupportavailable ? clean_param($CFG->supportpage, PARAM_URL) : '',
215
            'supportavailability' => clean_param($CFG->supportavailability, PARAM_INT),
215
            'supportavailability' => clean_param($CFG->supportavailability, PARAM_INT),
-
 
216
            'showloginform' => (int) get_config('core', 'showloginform'),
216
        );
217
        );
Línea 217... Línea 218...
217
 
218
 
218
        $typeoflogin = get_config('tool_mobile', 'typeoflogin');
219
        $typeoflogin = get_config('tool_mobile', 'typeoflogin');
219
        // Not found, edge case.
220
        // Not found, edge case.
Línea 317... Línea 318...
317
        if (empty($section) or $section == 'mobileapp') {
318
        if (empty($section) or $section == 'mobileapp') {
318
            $settings->tool_mobile_forcelogout = get_config('tool_mobile', 'forcelogout');
319
            $settings->tool_mobile_forcelogout = get_config('tool_mobile', 'forcelogout');
319
            $settings->tool_mobile_customlangstrings = get_config('tool_mobile', 'customlangstrings');
320
            $settings->tool_mobile_customlangstrings = get_config('tool_mobile', 'customlangstrings');
320
            $settings->tool_mobile_disabledfeatures = get_config('tool_mobile', 'disabledfeatures');
321
            $settings->tool_mobile_disabledfeatures = get_config('tool_mobile', 'disabledfeatures');
321
            $settings->tool_mobile_filetypeexclusionlist = get_config('tool_mobile', 'filetypeexclusionlist');
322
            $settings->tool_mobile_filetypeexclusionlist = get_config('tool_mobile', 'filetypeexclusionlist');
322
            $settings->tool_mobile_custommenuitems = get_config('tool_mobile', 'custommenuitems');
323
            $custommenuitems = get_config('tool_mobile', 'custommenuitems');
-
 
324
            // If filtering of the primary custom menu is enabled, apply only the string filters.
-
 
325
            if (!empty($CFG->navfilter && !empty($CFG->stringfilters))) {
-
 
326
                // Apply filters that are enabled for Content and Headings.
-
 
327
                $filtermanager = \filter_manager::instance();
-
 
328
                $custommenuitems = $filtermanager->filter_string($custommenuitems, \context_system::instance());
-
 
329
            }
-
 
330
            $settings->tool_mobile_custommenuitems = $custommenuitems;
323
            $settings->tool_mobile_apppolicy = get_config('tool_mobile', 'apppolicy');
331
            $settings->tool_mobile_apppolicy = get_config('tool_mobile', 'apppolicy');
324
            // This setting could be not set in some edge cases such as bad upgrade.
332
            // This setting could be not set in some edge cases such as bad upgrade.
325
            $mintimereq = get_config('tool_mobile', 'autologinmintimebetweenreq');
333
            $mintimereq = get_config('tool_mobile', 'autologinmintimebetweenreq');
326
            $mintimereq = empty($mintimereq) ? 6 * MINSECS : $mintimereq;
334
            $mintimereq = empty($mintimereq) ? 6 * MINSECS : $mintimereq;
327
            $settings->tool_mobile_autologinmintimebetweenreq = $mintimereq;
335
            $settings->tool_mobile_autologinmintimebetweenreq = $mintimereq;
Línea 493... Línea 501...
493
        $identityproviders = new lang_string('oauth2identityproviders', 'tool_mobile');
501
        $identityproviders = new lang_string('oauth2identityproviders', 'tool_mobile');
Línea 494... Línea 502...
494
 
502
 
495
        $availablemods = core_plugin_manager::instance()->get_plugins_of_type('mod');
503
        $availablemods = core_plugin_manager::instance()->get_plugins_of_type('mod');
496
        $coursemodules = array();
504
        $coursemodules = array();
497
        $appsupportedmodules = array(
505
        $appsupportedmodules = array(
498
            'assign', 'bigbluebuttonbn', 'book', 'chat', 'choice', 'data', 'feedback', 'folder', 'forum', 'glossary', 'h5pactivity',
506
            'assign', 'bigbluebuttonbn', 'book', 'choice', 'data', 'feedback', 'folder', 'forum', 'glossary', 'h5pactivity',
Línea 499... Línea 507...
499
            'imscp', 'label', 'lesson', 'lti', 'page', 'quiz', 'resource', 'scorm', 'survey', 'url', 'wiki', 'workshop');
507
            'imscp', 'label', 'lesson', 'lti', 'page', 'quiz', 'resource', 'scorm', 'url', 'wiki', 'workshop');
500
 
508
 
501
        foreach ($availablemods as $mod) {
509
        foreach ($availablemods as $mod) {
502
            if (in_array($mod->name, $appsupportedmodules)) {
510
            if (in_array($mod->name, $appsupportedmodules)) {