1 |
efrain |
1 |
<?php
|
|
|
2 |
// This file is part of Moodle - http://moodle.org/
|
|
|
3 |
//
|
|
|
4 |
// Moodle is free software: you can redistribute it and/or modify
|
|
|
5 |
// it under the terms of the GNU General Public License as published by
|
|
|
6 |
// the Free Software Foundation, either version 3 of the License, or
|
|
|
7 |
// (at your option) any later version.
|
|
|
8 |
//
|
|
|
9 |
// Moodle is distributed in the hope that it will be useful,
|
|
|
10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
// GNU General Public License for more details.
|
|
|
13 |
//
|
|
|
14 |
// You should have received a copy of the GNU General Public License
|
|
|
15 |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16 |
|
|
|
17 |
/**
|
|
|
18 |
* Library of interface functions includes and constants
|
|
|
19 |
*
|
|
|
20 |
*/
|
|
|
21 |
|
|
|
22 |
/*LOADING MOODLE*/
|
|
|
23 |
require_once(dirname(__FILE__).'/../../config.php');
|
|
|
24 |
|
|
|
25 |
/*GLOBAL REQUIREMENTS*/
|
|
|
26 |
global $CFG;
|
|
|
27 |
global $PAGE;
|
|
|
28 |
global $OUTPUT;
|
|
|
29 |
global $DB;
|
|
|
30 |
global $USER;
|
|
|
31 |
global $ADMIN;
|
|
|
32 |
|
|
|
33 |
/*HELPER*/
|
|
|
34 |
$timeformat = 'd-m-Y G:i:s';
|
|
|
35 |
|
|
|
36 |
/*TABLE*/
|
|
|
37 |
$dbtables = array();
|
|
|
38 |
$dbtables['training'] = 'report_training';
|
|
|
39 |
$dbtables['training_data'] = 'report_training_data';
|
|
|
40 |
|
|
|
41 |
/*EXTERN LIBS*/
|
|
|
42 |
require_once('libs/Browscap.php');
|
|
|
43 |
|
|
|
44 |
/*INCLUDES*/
|
|
|
45 |
require_once($CFG->libdir.'/adminlib.php');
|
|
|
46 |
require_once($CFG->libdir.'/formslib.php');
|
|
|
47 |
require_once('admin/dashboard_time_form.php');
|
|
|
48 |
require_once('admin/settings_form.php');
|
|
|
49 |
require_once('admin/userdata_users_form.php');
|
|
|
50 |
|
|
|
51 |
require_once('redirector.php');
|
|
|
52 |
require_once('classes/training_data_storage_class.php');
|
|
|
53 |
require_once('classes/training_data_object_class.php');
|
|
|
54 |
require_once('locallib.php');
|