MDL-29029 move unmaintained generator to admin tools
Do NOT add link into settings tree, this is extremely dangerous and buggy. It is now usable only in DEBUG_DEVELOPER mode!
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle 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 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle 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.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Random course generator CLI interface.
|
||||
*
|
||||
* @package tool
|
||||
* @subpackage generator
|
||||
* @copyright 2009 Nicolas Connault
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
define('CLI_SCRIPT', true);
|
||||
|
||||
require(dirname(__FILE__) . '/../../../../config.php');
|
||||
require_once(dirname(__FILE__) . '/../locallib.php');
|
||||
|
||||
if (!debugging('', DEBUG_DEVELOPER)) {
|
||||
echo("This script is for developers only!!!\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
$generator = new generator_cli($argv, $argc);
|
||||
$generator->generate_data();
|
||||
Reference in New Issue
Block a user