diff --git a/grade/edit/letter/edit.php b/grade/edit/letter/edit.php index 0021bc90ba7..54e871db8fb 100644 --- a/grade/edit/letter/edit.php +++ b/grade/edit/letter/edit.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->libdir.'/gradelib.php'; diff --git a/grade/edit/letter/edit_form.php b/grade/edit/letter/edit_form.php index a0b58ec1644..f1ed834c4f2 100644 --- a/grade/edit/letter/edit_form.php +++ b/grade/edit/letter/edit_form.php @@ -1,27 +1,19 @@ -. require_once $CFG->libdir.'/formslib.php'; diff --git a/grade/edit/letter/index.php b/grade/edit/letter/index.php index 0a191600ad5..e30d674ed09 100644 --- a/grade/edit/letter/index.php +++ b/grade/edit/letter/index.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/edit/letter/tabs.php b/grade/edit/letter/tabs.php index b6b4d12fdb9..226e579a95e 100644 --- a/grade/edit/letter/tabs.php +++ b/grade/edit/letter/tabs.php @@ -1,27 +1,20 @@ -. -/////////////////////////////////////////////////////////////////////////// -// // -// NOTICE OF COPYRIGHT // -// // -// Moodle - Modular Object-Oriented Dynamic Learning Environment // -// http://moodle.com // -// // -// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com // -// // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details: // -// // -// http://www.gnu.org/copyleft/gpl.html // -// // -/////////////////////////////////////////////////////////////////////////// $row = $tabs = array(); $row[] = new tabobject('lettersview', diff --git a/grade/edit/outcome/course.php b/grade/edit/outcome/course.php index 7b1529c4574..d258ef0e958 100644 --- a/grade/edit/outcome/course.php +++ b/grade/edit/outcome/course.php @@ -1,28 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/edit/outcome/edit.php b/grade/edit/outcome/edit.php index 766e7003ee3..08b5240c6e0 100644 --- a/grade/edit/outcome/edit.php +++ b/grade/edit/outcome/edit.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/edit/outcome/edit_form.php b/grade/edit/outcome/edit_form.php index ec6b4f1146b..3f56bc36e39 100644 --- a/grade/edit/outcome/edit_form.php +++ b/grade/edit/outcome/edit_form.php @@ -1,27 +1,19 @@ -. require_once $CFG->libdir.'/formslib.php'; diff --git a/grade/edit/outcome/export.php b/grade/edit/outcome/export.php index 41a0a793de9..2f8c114938e 100644 --- a/grade/edit/outcome/export.php +++ b/grade/edit/outcome/export.php @@ -1,5 +1,21 @@ -. + + // Exports selected outcomes in CSV format. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/edit/outcome/import.php b/grade/edit/outcome/import.php index 9e45362bd12..655cbb98b68 100644 --- a/grade/edit/outcome/import.php +++ b/grade/edit/outcome/import.php @@ -1,28 +1,19 @@ -. /// THIS SCRIPT IS CALLED WITH "require_once()" FROM index.php if (!defined('MOODLE_INTERNAL')) { diff --git a/grade/edit/outcome/import_outcomes_form.php b/grade/edit/outcome/import_outcomes_form.php index 259788108c7..d22c5266a54 100644 --- a/grade/edit/outcome/import_outcomes_form.php +++ b/grade/edit/outcome/import_outcomes_form.php @@ -1,4 +1,19 @@ -. require_once($CFG->dirroot.'/lib/formslib.php'); diff --git a/grade/edit/outcome/index.php b/grade/edit/outcome/index.php index 65cadb5cf00..118f68bcb78 100644 --- a/grade/edit/outcome/index.php +++ b/grade/edit/outcome/index.php @@ -1,28 +1,19 @@ -. require_once '../../../config.php'; require_once($CFG->dirroot.'/lib/formslib.php'); diff --git a/grade/edit/outcome/tabs.php b/grade/edit/outcome/tabs.php index 7352162e4db..40a7aa25ffc 100644 --- a/grade/edit/outcome/tabs.php +++ b/grade/edit/outcome/tabs.php @@ -1,27 +1,20 @@ -. -/////////////////////////////////////////////////////////////////////////// -// // -// NOTICE OF COPYRIGHT // -// // -// Moodle - Modular Object-Oriented Dynamic Learning Environment // -// http://moodle.com // -// // -// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com // -// // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details: // -// // -// http://www.gnu.org/copyleft/gpl.html // -// // -/////////////////////////////////////////////////////////////////////////// $row = $tabs = array(); $coursecontext = get_context_instance(CONTEXT_COURSE, $courseid); diff --git a/grade/edit/scale/edit.php b/grade/edit/scale/edit.php index b50b1d153bd..61ebea8fa9b 100644 --- a/grade/edit/scale/edit.php +++ b/grade/edit/scale/edit.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/edit/scale/edit_form.php b/grade/edit/scale/edit_form.php index b3539933266..19442d7a80a 100644 --- a/grade/edit/scale/edit_form.php +++ b/grade/edit/scale/edit_form.php @@ -1,27 +1,19 @@ -. require_once $CFG->libdir.'/formslib.php'; diff --git a/grade/edit/scale/index.php b/grade/edit/scale/index.php index 95fca237600..7be91b3714d 100644 --- a/grade/edit/scale/index.php +++ b/grade/edit/scale/index.php @@ -1,28 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/edit/settings/form.php b/grade/edit/settings/form.php index acc35917a1d..37c89e6500d 100644 --- a/grade/edit/settings/form.php +++ b/grade/edit/settings/form.php @@ -1,27 +1,19 @@ -. require_once($CFG->libdir.'/formslib.php'); diff --git a/grade/edit/settings/index.php b/grade/edit/settings/index.php index 1c1228253b7..da9f7df681c 100644 --- a/grade/edit/settings/index.php +++ b/grade/edit/settings/index.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/edit/tree/action.php b/grade/edit/tree/action.php index e2738a89614..4d821f5bf65 100644 --- a/grade/edit/tree/action.php +++ b/grade/edit/tree/action.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/edit/tree/calculation.php b/grade/edit/tree/calculation.php index a28c8a9ceac..eb8bb2c729b 100644 --- a/grade/edit/tree/calculation.php +++ b/grade/edit/tree/calculation.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/edit/tree/calculation_form.php b/grade/edit/tree/calculation_form.php index 1c79bf60409..5d4bb45b6bc 100644 --- a/grade/edit/tree/calculation_form.php +++ b/grade/edit/tree/calculation_form.php @@ -1,27 +1,19 @@ -. require_once $CFG->libdir.'/formslib.php'; diff --git a/grade/edit/tree/category.php b/grade/edit/tree/category.php index ed7ada6c114..f4a09680857 100644 --- a/grade/edit/tree/category.php +++ b/grade/edit/tree/category.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/edit/tree/category_form.php b/grade/edit/tree/category_form.php index f84346e4b7a..59511f58d1f 100644 --- a/grade/edit/tree/category_form.php +++ b/grade/edit/tree/category_form.php @@ -1,27 +1,19 @@ -. require_once $CFG->libdir.'/formslib.php'; diff --git a/grade/edit/tree/grade.php b/grade/edit/tree/grade.php index 35937a22759..2a1e8787716 100644 --- a/grade/edit/tree/grade.php +++ b/grade/edit/tree/grade.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/edit/tree/grade_form.php b/grade/edit/tree/grade_form.php index 2b9fab70bae..ef8c1c690dd 100755 --- a/grade/edit/tree/grade_form.php +++ b/grade/edit/tree/grade_form.php @@ -1,27 +1,19 @@ -. require_once $CFG->libdir.'/formslib.php'; diff --git a/grade/edit/tree/index.php b/grade/edit/tree/index.php index ce9d071bd01..88e4c399375 100644 --- a/grade/edit/tree/index.php +++ b/grade/edit/tree/index.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/edit/tree/item.php b/grade/edit/tree/item.php index 5456e9f06ee..b6a7028fcde 100644 --- a/grade/edit/tree/item.php +++ b/grade/edit/tree/item.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/edit/tree/item_form.php b/grade/edit/tree/item_form.php index 1bcc6a80710..67514e5b12e 100644 --- a/grade/edit/tree/item_form.php +++ b/grade/edit/tree/item_form.php @@ -1,27 +1,19 @@ -. require_once $CFG->libdir.'/formslib.php'; diff --git a/grade/edit/tree/lib.php b/grade/edit/tree/lib.php index bf63d4934c6..9e2c44eb36b 100755 --- a/grade/edit/tree/lib.php +++ b/grade/edit/tree/lib.php @@ -1,27 +1,19 @@ -. class grade_edit_tree { public $columns = array(); diff --git a/grade/edit/tree/outcomeitem.php b/grade/edit/tree/outcomeitem.php index 3cab996fdf9..483552e563c 100644 --- a/grade/edit/tree/outcomeitem.php +++ b/grade/edit/tree/outcomeitem.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/edit/tree/outcomeitem_form.php b/grade/edit/tree/outcomeitem_form.php index 0cbea5b05e4..f0561d11d7e 100644 --- a/grade/edit/tree/outcomeitem_form.php +++ b/grade/edit/tree/outcomeitem_form.php @@ -1,27 +1,19 @@ -. require_once $CFG->libdir.'/formslib.php'; diff --git a/grade/export/grade_export_form.php b/grade/export/grade_export_form.php index 79d711640e9..f12fca056ca 100755 --- a/grade/export/grade_export_form.php +++ b/grade/export/grade_export_form.php @@ -1,27 +1,19 @@ -. require_once $CFG->libdir.'/formslib.php'; diff --git a/grade/export/key.php b/grade/export/key.php index 331216e1f44..6ebbab1044c 100644 --- a/grade/export/key.php +++ b/grade/export/key.php @@ -1,27 +1,19 @@ -. require_once('../../config.php'); require_once('key_form.php'); diff --git a/grade/export/key_form.php b/grade/export/key_form.php index 9e0964d9d5c..d9948b2e7b2 100644 --- a/grade/export/key_form.php +++ b/grade/export/key_form.php @@ -1,27 +1,20 @@ -. -/////////////////////////////////////////////////////////////////////////// -// // -// NOTICE OF COPYRIGHT // -// // -// Moodle - Modular Object-Oriented Dynamic Learning Environment // -// http://moodle.com // -// // -// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com // -// // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details: // -// // -// http://www.gnu.org/copyleft/gpl.html // -// // -/////////////////////////////////////////////////////////////////////////// require_once($CFG->dirroot.'/lib/formslib.php'); diff --git a/grade/export/keymanager.php b/grade/export/keymanager.php index 828a32c33b7..c27aeb7c1ed 100644 --- a/grade/export/keymanager.php +++ b/grade/export/keymanager.php @@ -1,27 +1,20 @@ -. -/////////////////////////////////////////////////////////////////////////// -// // -// NOTICE OF COPYRIGHT // -// // -// Moodle - Modular Object-Oriented Dynamic Learning Environment // -// http://moodle.com // -// // -// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com // -// // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details: // -// // -// http://www.gnu.org/copyleft/gpl.html // -// // -/////////////////////////////////////////////////////////////////////////// require_once '../../config.php'; require_once $CFG->dirroot.'/grade/export/lib.php'; diff --git a/grade/export/lib.php b/grade/export/lib.php index bd04f508d30..ca28eea30bb 100755 --- a/grade/export/lib.php +++ b/grade/export/lib.php @@ -1,27 +1,19 @@ -. require_once($CFG->dirroot.'/lib/gradelib.php'); require_once($CFG->dirroot.'/grade/lib.php'); diff --git a/grade/export/ods/db/access.php b/grade/export/ods/db/access.php index 433766b6eb9..614d37b7a2a 100644 --- a/grade/export/ods/db/access.php +++ b/grade/export/ods/db/access.php @@ -1,27 +1,19 @@ -. $gradeexport_ods_capabilities = array( diff --git a/grade/export/ods/dump.php b/grade/export/ods/dump.php index 879d91f6dd7..0c8d7f3db6f 100644 --- a/grade/export/ods/dump.php +++ b/grade/export/ods/dump.php @@ -1,27 +1,19 @@ -. define('NO_MOODLE_COOKIES', true); // session not used here require_once '../../../config.php'; diff --git a/grade/export/ods/export.php b/grade/export/ods/export.php index 372fc108c23..678955e6603 100755 --- a/grade/export/ods/export.php +++ b/grade/export/ods/export.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/export/lib.php'; diff --git a/grade/export/ods/grade_export_ods.php b/grade/export/ods/grade_export_ods.php index 30502fd3b0a..668db213682 100755 --- a/grade/export/ods/grade_export_ods.php +++ b/grade/export/ods/grade_export_ods.php @@ -1,26 +1,19 @@ . require_once($CFG->dirroot.'/grade/export/lib.php'); diff --git a/grade/export/ods/index.php b/grade/export/ods/index.php index ae5db0e3c85..b5ff5ef68a5 100755 --- a/grade/export/ods/index.php +++ b/grade/export/ods/index.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/export/lib.php'; diff --git a/grade/export/ods/version.php b/grade/export/ods/version.php index de2f51d25bf..91162a6c2fa 100644 --- a/grade/export/ods/version.php +++ b/grade/export/ods/version.php @@ -1,27 +1,19 @@ -. $plugin->version = 2007092701; $plugin->requires = 2007101000; diff --git a/grade/export/txt/db/access.php b/grade/export/txt/db/access.php index dfecf048e80..faaad217c65 100644 --- a/grade/export/txt/db/access.php +++ b/grade/export/txt/db/access.php @@ -1,27 +1,19 @@ -. $gradeexport_txt_capabilities = array( diff --git a/grade/export/txt/dump.php b/grade/export/txt/dump.php index d99f78c020c..106c569ebf1 100644 --- a/grade/export/txt/dump.php +++ b/grade/export/txt/dump.php @@ -1,27 +1,19 @@ -. define('NO_MOODLE_COOKIES', true); // session not used here require_once '../../../config.php'; diff --git a/grade/export/txt/export.php b/grade/export/txt/export.php index 1f630d8d4e5..fd7c7e08f40 100755 --- a/grade/export/txt/export.php +++ b/grade/export/txt/export.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/export/lib.php'; diff --git a/grade/export/txt/grade_export_txt.php b/grade/export/txt/grade_export_txt.php index 962b5217c09..89db945dd73 100755 --- a/grade/export/txt/grade_export_txt.php +++ b/grade/export/txt/grade_export_txt.php @@ -1,26 +1,19 @@ . require_once($CFG->dirroot.'/grade/export/lib.php'); diff --git a/grade/export/txt/index.php b/grade/export/txt/index.php index 09a7dc995d7..b5f598062fb 100755 --- a/grade/export/txt/index.php +++ b/grade/export/txt/index.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/export/lib.php'; diff --git a/grade/export/txt/version.php b/grade/export/txt/version.php index 005ac877c30..f8e43036b30 100755 --- a/grade/export/txt/version.php +++ b/grade/export/txt/version.php @@ -1,27 +1,19 @@ -. $plugin->version = 2007092700; $plugin->requires = 2007101000; diff --git a/grade/export/xls/db/access.php b/grade/export/xls/db/access.php index 77a9aa5ef31..3748133772e 100644 --- a/grade/export/xls/db/access.php +++ b/grade/export/xls/db/access.php @@ -1,27 +1,19 @@ -. $gradeexport_xls_capabilities = array( diff --git a/grade/export/xls/dump.php b/grade/export/xls/dump.php index 4cd6f8eb36f..4d6e28a754e 100644 --- a/grade/export/xls/dump.php +++ b/grade/export/xls/dump.php @@ -1,27 +1,19 @@ -. define('NO_MOODLE_COOKIES', true); // session not used here require_once '../../../config.php'; diff --git a/grade/export/xls/export.php b/grade/export/xls/export.php index c9b07b131b8..92f5ea70f64 100755 --- a/grade/export/xls/export.php +++ b/grade/export/xls/export.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/export/lib.php'; diff --git a/grade/export/xls/grade_export_xls.php b/grade/export/xls/grade_export_xls.php index 22d62a0cae3..ba481a6861b 100755 --- a/grade/export/xls/grade_export_xls.php +++ b/grade/export/xls/grade_export_xls.php @@ -1,27 +1,19 @@ -. require_once($CFG->dirroot.'/grade/export/lib.php'); diff --git a/grade/export/xls/index.php b/grade/export/xls/index.php index e426b6aa2e2..ba865f4a6f4 100755 --- a/grade/export/xls/index.php +++ b/grade/export/xls/index.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/export/lib.php'; diff --git a/grade/export/xls/version.php b/grade/export/xls/version.php index 005ac877c30..f8e43036b30 100644 --- a/grade/export/xls/version.php +++ b/grade/export/xls/version.php @@ -1,27 +1,19 @@ -. $plugin->version = 2007092700; $plugin->requires = 2007101000; diff --git a/grade/export/xml/db/access.php b/grade/export/xml/db/access.php index 6d4647f94cd..eb98b6f0de5 100644 --- a/grade/export/xml/db/access.php +++ b/grade/export/xml/db/access.php @@ -1,27 +1,19 @@ -. $gradeexport_xml_capabilities = array( diff --git a/grade/export/xml/dump.php b/grade/export/xml/dump.php index 7e859cfd520..782b5558dca 100644 --- a/grade/export/xml/dump.php +++ b/grade/export/xml/dump.php @@ -1,27 +1,19 @@ -. define('NO_MOODLE_COOKIES', true); // session not used here require_once '../../../config.php'; diff --git a/grade/export/xml/export.php b/grade/export/xml/export.php index 751c0941d2b..250997b9ed1 100755 --- a/grade/export/xml/export.php +++ b/grade/export/xml/export.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/export/lib.php'; diff --git a/grade/export/xml/grade_export_xml.php b/grade/export/xml/grade_export_xml.php index 6b6dc4d504b..16562e1b1ee 100755 --- a/grade/export/xml/grade_export_xml.php +++ b/grade/export/xml/grade_export_xml.php @@ -1,27 +1,19 @@ -. require_once($CFG->dirroot.'/grade/export/lib.php'); require_once($CFG->libdir.'/filelib.php'); diff --git a/grade/export/xml/index.php b/grade/export/xml/index.php index c28ccd24ba1..758f7b50627 100755 --- a/grade/export/xml/index.php +++ b/grade/export/xml/index.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->dirroot.'/grade/export/lib.php'; diff --git a/grade/export/xml/version.php b/grade/export/xml/version.php index 005ac877c30..f8e43036b30 100644 --- a/grade/export/xml/version.php +++ b/grade/export/xml/version.php @@ -1,27 +1,19 @@ -. $plugin->version = 2007092700; $plugin->requires = 2007101000; diff --git a/grade/import/csv/db/access.php b/grade/import/csv/db/access.php index a91795fe834..9e8f339c1f0 100644 --- a/grade/import/csv/db/access.php +++ b/grade/import/csv/db/access.php @@ -1,27 +1,19 @@ -. $gradeimport_csv_capabilities = array( diff --git a/grade/import/csv/index.php b/grade/import/csv/index.php index 87948834d1a..e8327aadb17 100755 --- a/grade/import/csv/index.php +++ b/grade/import/csv/index.php @@ -1,27 +1,20 @@ -. -/////////////////////////////////////////////////////////////////////////// -// // -// NOTICE OF COPYRIGHT // -// // -// Moodle - Modular Object-Oriented Dynamic Learning Environment // -// http://moodle.com // -// // -// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com // -// // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details: // -// // -// http://www.gnu.org/copyleft/gpl.html // -// // -/////////////////////////////////////////////////////////////////////////// require_once '../../../config.php'; require_once $CFG->libdir.'/gradelib.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/import/csv/version.php b/grade/import/csv/version.php index 53d99b840e2..b58b00ebcdf 100644 --- a/grade/import/csv/version.php +++ b/grade/import/csv/version.php @@ -1,27 +1,19 @@ -. $plugin->version = 2007072500; $plugin->requires = 2007101000; diff --git a/grade/import/grade_import_form.php b/grade/import/grade_import_form.php index 2d73a45bdbd..99a15ed0538 100755 --- a/grade/import/grade_import_form.php +++ b/grade/import/grade_import_form.php @@ -1,27 +1,20 @@ -. -/////////////////////////////////////////////////////////////////////////// -// // -// NOTICE OF COPYRIGHT // -// // -// Moodle - Modular Object-Oriented Dynamic Learning Environment // -// http://moodle.com // -// // -// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com // -// // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details: // -// // -// http://www.gnu.org/copyleft/gpl.html // -// // -/////////////////////////////////////////////////////////////////////////// require_once $CFG->libdir.'/formslib.php'; require_once($CFG->libdir.'/gradelib.php'); diff --git a/grade/import/key.php b/grade/import/key.php index 9ab857cf100..127c7d07d81 100644 --- a/grade/import/key.php +++ b/grade/import/key.php @@ -1,27 +1,19 @@ -. require_once('../../config.php'); require_once('key_form.php'); diff --git a/grade/import/key_form.php b/grade/import/key_form.php index 9e0964d9d5c..0f1555d6bc1 100644 --- a/grade/import/key_form.php +++ b/grade/import/key_form.php @@ -1,27 +1,19 @@ -. require_once($CFG->dirroot.'/lib/formslib.php'); diff --git a/grade/import/keymanager.php b/grade/import/keymanager.php index 28516c702ca..866fbe5b09b 100644 --- a/grade/import/keymanager.php +++ b/grade/import/keymanager.php @@ -1,27 +1,19 @@ -. require_once '../../config.php'; require_once $CFG->dirroot.'/grade/lib.php'; diff --git a/grade/import/lib.php b/grade/import/lib.php index 2df76c6c972..1f455ee5ba4 100755 --- a/grade/import/lib.php +++ b/grade/import/lib.php @@ -1,27 +1,19 @@ -. require_once($CFG->libdir.'/gradelib.php'); diff --git a/grade/import/xml/db/access.php b/grade/import/xml/db/access.php index 018dde481d3..5095148cfe8 100644 --- a/grade/import/xml/db/access.php +++ b/grade/import/xml/db/access.php @@ -1,27 +1,19 @@ -. $gradeimport_xml_capabilities = array( diff --git a/grade/import/xml/fetch.php b/grade/import/xml/fetch.php index 755b759e106..b697a5b08f8 100644 --- a/grade/import/xml/fetch.php +++ b/grade/import/xml/fetch.php @@ -1,27 +1,19 @@ -. define('NO_MOODLE_COOKIES', true); // session not used here require_once '../../../config.php'; diff --git a/grade/import/xml/grade_import_form.php b/grade/import/xml/grade_import_form.php index fdea7709d5e..41a0f660aaa 100644 --- a/grade/import/xml/grade_import_form.php +++ b/grade/import/xml/grade_import_form.php @@ -1,27 +1,20 @@ -. -/////////////////////////////////////////////////////////////////////////// -// // -// NOTICE OF COPYRIGHT // -// // -// Moodle - Modular Object-Oriented Dynamic Learning Environment // -// http://moodle.com // -// // -// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com // -// // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details: // -// // -// http://www.gnu.org/copyleft/gpl.html // -// // -/////////////////////////////////////////////////////////////////////////// require_once $CFG->libdir.'/formslib.php'; class grade_import_form extends moodleform { diff --git a/grade/import/xml/import.php b/grade/import/xml/import.php index 37e8604c6ac..44950962cb6 100644 --- a/grade/import/xml/import.php +++ b/grade/import/xml/import.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once 'lib.php'; diff --git a/grade/import/xml/index.php b/grade/import/xml/index.php index ca77c5a09b3..369301d0801 100755 --- a/grade/import/xml/index.php +++ b/grade/import/xml/index.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once 'lib.php'; diff --git a/grade/import/xml/lib.php b/grade/import/xml/lib.php index c4e707d8643..00c19195ac9 100644 --- a/grade/import/xml/lib.php +++ b/grade/import/xml/lib.php @@ -1,27 +1,19 @@ -. require_once $CFG->libdir.'/gradelib.php'; require_once($CFG->libdir.'/xmlize.php'); diff --git a/grade/import/xml/version.php b/grade/import/xml/version.php index 005ac877c30..f8e43036b30 100644 --- a/grade/import/xml/version.php +++ b/grade/import/xml/version.php @@ -1,27 +1,19 @@ -. $plugin->version = 2007092700; $plugin->requires = 2007101000; diff --git a/grade/index.php b/grade/index.php index 9ab485f0a40..4e9f80eea8c 100644 --- a/grade/index.php +++ b/grade/index.php @@ -1,27 +1,19 @@ -. /* * Compatibility redirection to reports @@ -31,5 +23,3 @@ require_once '../config.php'; $id = required_param('id', PARAM_INT); redirect('report/index.php?id='.$id); - -?> diff --git a/grade/lib.php b/grade/lib.php index decf3599faa..0d1b87711e9 100644 --- a/grade/lib.php +++ b/grade/lib.php @@ -15,7 +15,6 @@ // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . - /** * Functions used by gradebook plugins and reports. * diff --git a/grade/querylib.php b/grade/querylib.php index b035a597423..16f6d5e4d3c 100644 --- a/grade/querylib.php +++ b/grade/querylib.php @@ -1,4 +1,19 @@ -. /** * Returns the aggregated or calculated course grade(s) in given course. diff --git a/grade/report/grader/ajax_callbacks.php b/grade/report/grader/ajax_callbacks.php index 7365207f238..c5bc433bc65 100644 --- a/grade/report/grader/ajax_callbacks.php +++ b/grade/report/grader/ajax_callbacks.php @@ -1,26 +1,19 @@ -. require_once '../../../config.php'; diff --git a/grade/report/grader/ajaxlib.php b/grade/report/grader/ajaxlib.php index 270043f5d17..23794f93ef2 100644 --- a/grade/report/grader/ajaxlib.php +++ b/grade/report/grader/ajaxlib.php @@ -1,27 +1,19 @@ -. /** * File in which the grade_report_grader class is defined. * @package gradebook diff --git a/grade/report/grader/db/access.php b/grade/report/grader/db/access.php index b99e0d30be2..5906e90bb92 100644 --- a/grade/report/grader/db/access.php +++ b/grade/report/grader/db/access.php @@ -1,27 +1,19 @@ -. $gradereport_grader_capabilities = array( diff --git a/grade/report/grader/index.php b/grade/report/grader/index.php index c8378ce6652..5bfdc5b56a1 100644 --- a/grade/report/grader/index.php +++ b/grade/report/grader/index.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->libdir.'/gradelib.php'; diff --git a/grade/report/grader/lib.php b/grade/report/grader/lib.php index 263ce765a3d..687836e449a 100644 --- a/grade/report/grader/lib.php +++ b/grade/report/grader/lib.php @@ -1,27 +1,20 @@ -. -/////////////////////////////////////////////////////////////////////////// -// // -// NOTICE OF COPYRIGHT // -// // -// Moodle - Modular Object-Oriented Dynamic Learning Environment // -// http://moodle.com // -// // -// Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com // -// // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details: // -// // -// http://www.gnu.org/copyleft/gpl.html // -// // -/////////////////////////////////////////////////////////////////////////// /** * File in which the grader_report class is defined. * @package gradebook diff --git a/grade/report/grader/preferences.php b/grade/report/grader/preferences.php index 9ba40c86430..c7f98d0c1ce 100644 --- a/grade/report/grader/preferences.php +++ b/grade/report/grader/preferences.php @@ -1,27 +1,20 @@ -. -/////////////////////////////////////////////////////////////////////////// -// // -// NOTICE OF COPYRIGHT // -// // -// Moodle - Modular Object-Oriented Dynamic Learning Environment // -// http://moodle.com // -// // -// Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com // -// // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details: // -// // -// http://www.gnu.org/copyleft/gpl.html // -// // -/////////////////////////////////////////////////////////////////////////// set_time_limit(0); require_once '../../../config.php'; require_once $CFG->libdir . '/gradelib.php'; diff --git a/grade/report/grader/preferences_form.php b/grade/report/grader/preferences_form.php index 4c495ef2ca2..2d902709390 100644 --- a/grade/report/grader/preferences_form.php +++ b/grade/report/grader/preferences_form.php @@ -1,27 +1,19 @@ -. require_once($CFG->libdir.'/formslib.php'); diff --git a/grade/report/grader/quickedit_item.php b/grade/report/grader/quickedit_item.php index 18f88eea82c..cd2d4c1971f 100644 --- a/grade/report/grader/quickedit_item.php +++ b/grade/report/grader/quickedit_item.php @@ -1,27 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->libdir.'/gradelib.php'; diff --git a/grade/report/grader/settings.php b/grade/report/grader/settings.php index e990b647dbc..08a3ba9249a 100644 --- a/grade/report/grader/settings.php +++ b/grade/report/grader/settings.php @@ -1,27 +1,19 @@ -. $strinherit = get_string('inherit', 'grades'); $strpercentage = get_string('percentage', 'grades'); diff --git a/grade/report/grader/tabs.php b/grade/report/grader/tabs.php index d8d1b4f0fe0..dd83ddbabc7 100644 --- a/grade/report/grader/tabs.php +++ b/grade/report/grader/tabs.php @@ -1,27 +1,20 @@ -. -/////////////////////////////////////////////////////////////////////////// -// // -// NOTICE OF COPYRIGHT // -// // -// Moodle - Modular Object-Oriented Dynamic Learning Environment // -// http://moodle.com // -// // -// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com // -// // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details: // -// // -// http://www.gnu.org/copyleft/gpl.html // -// // -/////////////////////////////////////////////////////////////////////////// $row = $tabs = array(); $tabcontext = get_context_instance(CONTEXT_COURSE, $COURSE->id); $row[] = new tabobject('graderreport', diff --git a/grade/report/grader/version.php b/grade/report/grader/version.php index 0f5f4c597c5..8f324fd55d2 100644 --- a/grade/report/grader/version.php +++ b/grade/report/grader/version.php @@ -1,27 +1,19 @@ -. $plugin->version = 2009022500; $plugin->requires = 2007101000; diff --git a/grade/report/index.php b/grade/report/index.php index 25415512acd..864e70ea88b 100644 --- a/grade/report/index.php +++ b/grade/report/index.php @@ -1,26 +1,19 @@ -. require_once '../../config.php'; diff --git a/grade/report/lib.php b/grade/report/lib.php index 468a67d28bc..001ac158955 100755 --- a/grade/report/lib.php +++ b/grade/report/lib.php @@ -1,27 +1,20 @@ -. -/////////////////////////////////////////////////////////////////////////// -// // -// NOTICE OF COPYRIGHT // -// // -// Moodle - Modular Object-Oriented Dynamic Learning Environment // -// http://moodle.com // -// // -// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com // -// // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details: // -// // -// http://www.gnu.org/copyleft/gpl.html // -// // -/////////////////////////////////////////////////////////////////////////// /** * File containing the grade_report class. * @package gradebook diff --git a/grade/report/outcomes/db/access.php b/grade/report/outcomes/db/access.php index b27777fd0de..6c0381b1abe 100644 --- a/grade/report/outcomes/db/access.php +++ b/grade/report/outcomes/db/access.php @@ -1,27 +1,19 @@ -. $gradereport_outcomes_capabilities = array( diff --git a/grade/report/outcomes/index.php b/grade/report/outcomes/index.php index 2223ef23e99..74d29b9195e 100644 --- a/grade/report/outcomes/index.php +++ b/grade/report/outcomes/index.php @@ -1,27 +1,19 @@ -. include_once('../../../config.php'); require_once($CFG->libdir . '/gradelib.php'); diff --git a/grade/report/outcomes/version.php b/grade/report/outcomes/version.php index be772f412b6..161337e4d49 100644 --- a/grade/report/outcomes/version.php +++ b/grade/report/outcomes/version.php @@ -1,27 +1,19 @@ -. $plugin->version = 2007073000; $plugin->requires = 2007101000; diff --git a/grade/report/overview/db/access.php b/grade/report/overview/db/access.php index 28e78dff491..523c9e5d99a 100644 --- a/grade/report/overview/db/access.php +++ b/grade/report/overview/db/access.php @@ -1,27 +1,19 @@ -. $gradereport_overview_capabilities = array( diff --git a/grade/report/overview/index.php b/grade/report/overview/index.php index df607339c33..c2b24d5bf36 100644 --- a/grade/report/overview/index.php +++ b/grade/report/overview/index.php @@ -1,26 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->libdir.'/gradelib.php'; diff --git a/grade/report/overview/lib.php b/grade/report/overview/lib.php index 966d13945b6..28c97626d26 100644 --- a/grade/report/overview/lib.php +++ b/grade/report/overview/lib.php @@ -1,27 +1,20 @@ -. -/////////////////////////////////////////////////////////////////////////// -// // -// NOTICE OF COPYRIGHT // -// // -// Moodle - Modular Object-Oriented Dynamic Learning Environment // -// http://moodle.com // -// // -// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com // -// // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details: // -// // -// http://www.gnu.org/copyleft/gpl.html // -// // -/////////////////////////////////////////////////////////////////////////// /** * File in which the overview_report class is defined. * @package gradebook diff --git a/grade/report/overview/settings.php b/grade/report/overview/settings.php index f1398530f5a..3c1fff96d55 100644 --- a/grade/report/overview/settings.php +++ b/grade/report/overview/settings.php @@ -1,27 +1,19 @@ -. /// Add settings for this module to the $settings object (it's already defined) diff --git a/grade/report/overview/version.php b/grade/report/overview/version.php index 0f5f4c597c5..8f324fd55d2 100644 --- a/grade/report/overview/version.php +++ b/grade/report/overview/version.php @@ -1,27 +1,19 @@ -. $plugin->version = 2009022500; $plugin->requires = 2007101000; diff --git a/grade/report/user/db/access.php b/grade/report/user/db/access.php index faa9045df0d..fbf024ff1d0 100644 --- a/grade/report/user/db/access.php +++ b/grade/report/user/db/access.php @@ -1,27 +1,19 @@ -. $gradereport_user_capabilities = array( diff --git a/grade/report/user/index.php b/grade/report/user/index.php index 62f3c6462e8..85e2c6a8566 100644 --- a/grade/report/user/index.php +++ b/grade/report/user/index.php @@ -1,26 +1,19 @@ -. require_once '../../../config.php'; require_once $CFG->libdir.'/gradelib.php'; diff --git a/grade/report/user/lib.php b/grade/report/user/lib.php index e5d60a8b071..6e57d8858be 100644 --- a/grade/report/user/lib.php +++ b/grade/report/user/lib.php @@ -1,27 +1,20 @@ -. -/////////////////////////////////////////////////////////////////////////// -// // -// NOTICE OF COPYRIGHT // -// // -// Moodle - Modular Object-Oriented Dynamic Learning Environment // -// http://moodle.com // -// // -// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com // -// // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details: // -// // -// http://www.gnu.org/copyleft/gpl.html // -// // -/////////////////////////////////////////////////////////////////////////// /** * File in which the user_report class is defined. * @package gradebook diff --git a/grade/report/user/settings.php b/grade/report/user/settings.php index bdbc6b87849..c0adec36747 100644 --- a/grade/report/user/settings.php +++ b/grade/report/user/settings.php @@ -1,27 +1,19 @@ -. /// Add settings for this module to the $settings object (it's already defined) diff --git a/grade/report/user/version.php b/grade/report/user/version.php index 75bc1495819..c0d9a094bda 100644 --- a/grade/report/user/version.php +++ b/grade/report/user/version.php @@ -1,27 +1,19 @@ -. $plugin->version = 2007092500; $plugin->requires = 2007101000; diff --git a/grade/simpletest/testreportlib.php b/grade/simpletest/testreportlib.php index 655576143f2..10278cbca28 100644 --- a/grade/simpletest/testreportlib.php +++ b/grade/simpletest/testreportlib.php @@ -1,27 +1,20 @@ -. -/////////////////////////////////////////////////////////////////////////// -// // -// NOTICE OF COPYRIGHT // -// // -// Moodle - Modular Object-Oriented Dynamic Learning Environment // -// http://moodle.com // -// // -// Copyright (C) 1999 onwards Martin Dougiamas http://dougiamas.com // -// // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details: // -// // -// http://www.gnu.org/copyleft/gpl.html // -// // -/////////////////////////////////////////////////////////////////////////// /** * Unit tests for grade/report/lib.php. *