Created
September 7, 2016 10:19
-
-
Save danpoltawski/413797e9fdaa8671da8f3e8d66bc4d42 to your computer and use it in GitHub Desktop.
moodle.Files.MoodleInternal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ phpcs \ | |
--standard=/Users/danp/www/ci/local/codechecker/moodle/ruleset.xml --sniffs="moodle.Files.MoodleInternal" --report=csv . \ | |
| cut -d ',' -f1 | sed -e 's/"//g' | tail -n +2 | xargs grep 'MOODLE_INTERNAL' | |
admin/cli/install.php:define('MOODLE_INTERNAL', true); | |
admin/tool/log/classes/plugininfo/logstore.php:defined('MOODLE_INTERNAL') || die(); | |
competency/classes/external/comment_area_exporter.php:defined('MOODLE_INTERNAL') || die(); | |
dataformat/csv/classes/writer.php:defined('MOODLE_INTERNAL') || die(); | |
dataformat/excel/classes/writer.php:defined('MOODLE_INTERNAL') || die(); | |
dataformat/ods/classes/writer.php:defined('MOODLE_INTERNAL') || die(); | |
grade/import/direct/classes/import_form.php:if (!defined('MOODLE_INTERNAL')) { | |
grade/import/direct/classes/mapping_form.php:if (!defined('MOODLE_INTERNAL')) { | |
grade/report/singleview/tests/screen_test.php:defined('MOODLE_INTERNAL') || die(); | |
mod/assign/classes/plugininfo/assignfeedback.php:defined('MOODLE_INTERNAL') || die(); | |
mod/assign/classes/plugininfo/assignsubmission.php:defined('MOODLE_INTERNAL') || die(); | |
mod/assign/submission/file/locallib.php:defined('MOODLE_INTERNAL') || die(); | |
user/classes/search/user.php:defined('MOODLE_INTERNAL') || die(); | |
$ phpcs \ | |
--standard=/Users/danp/www/ci/local/codechecker/moodle/ruleset.xml --sniffs="moodle.Files.MoodleInternal" --report=csv . \ | |
| cut -d ',' -f1 | sed -e 's/"//g' | tail -n +2 | xargs grep 'config.php' | |
admin/cli/install.php: * This script creates config.php file and prepares database. | |
admin/cli/install.php:// extra execution prevention - we can not just require config.php here | |
admin/cli/install.php:"Command line Moodle installer, creates config.php and initializes database. | |
admin/cli/install.php:--upgradekey=STRING The upgrade key to be set in the config.php, leave empty to not set it. | |
admin/cli/install.php:// Nothing to do if config.php exists | |
admin/cli/install.php:$configfile = __DIR__.'/../../config.php'; | |
admin/cli/install.php:// Finally we have all info needed for config.php | |
admin/cli/install.php:// We have config.php, it is a real php script from now on :-) | |
admin/cli/install_database.php: * This installs Moodle into empty database, config.php must already exist. | |
admin/cli/install_database.php:// extra execution prevention - we can not just require config.php here | |
admin/cli/install_database.php:// Nothing to do if config.php does not exist | |
admin/cli/install_database.php:$configfile = __DIR__.'/../../config.php'; | |
admin/cli/install_database.php: fwrite(STDERR, 'config.php does not exist, can not continue'); // do not localize | |
admin/cli/upgrade.php: * This script creates config.php file and prepares database. | |
admin/cli/upgrade.php:require(__DIR__.'/../../config.php'); | |
admin/cron.php:require('../config.php'); | |
admin/index.php:// Check that config.php exists, if not then call the install script | |
admin/index.php:if (!file_exists('../config.php')) { | |
admin/index.php:require('../config.php'); | |
admin/mailout-debugger.php: * - Set in php.ini (not settable in config.php): | |
admin/tool/behat/cli/init.php:// Enable editing mode according to config.php vars. | |
admin/tool/behat/cli/run.php:require_once(__DIR__ .'/../../../../config.php'); | |
admin/tool/behat/cli/util.php:require_once(__DIR__ . '/../../../../config.php'); | |
admin/tool/behat/cli/util_single_run.php:// Only load CFG from config.php, stop ASAP in lib/setup.php. | |
admin/tool/behat/cli/util_single_run.php:require_once(__DIR__ . '/../../../../config.php'); | |
admin/tool/behat/cli/util_single_run.php:// Remove error handling overrides done in config.php. | |
admin/tool/health/index.php: require('../../../config.php'); | |
admin/tool/health/index.php: return 'Extra characters at the end of config.php or other library function'; | |
admin/tool/health/index.php: return 'Your Moodle configuration file config.php or another library file, contains some characters after the closing PHP tag (?>). This causes Moodle to exhibit several kinds of problems (such as broken downloaded files) and must be fixed.'; | |
admin/tool/health/index.php: return 'You need to edit <strong>'.$CFG->dirroot.'/config.php</strong> and remove all characters (including spaces and returns) after the ending ?> tag. These two characters should be the very last in that file. The extra trailing whitespace may be also present in other PHP files that are included from lib/setup.php.'; | |
admin/tool/health/index.php: return 'Your <strong>config.php</strong> says that your "data root" directory is <strong>'.$CFG->dataroot.'</strong>. However, this directory either does not exist or cannot be written to by Moodle. This means that a variety of problems will be present, such as users not being able to log in and not being able to upload any files. It is imperative that you address this problem for Moodle to work correctly.'; | |
admin/tool/health/index.php: return 'You should change the password of the user <strong>'.$CFG->dbuser.'</strong> both in your database and in your Moodle <strong>config.php</strong> immediately!'.($CFG->dbuser != 'root'?'':' It would also be a good idea to change the user account from root to something else, because this would lessen the impact in the event that your database is compromised anyway.'); | |
course/rest.php:require_once(__DIR__ . '/../config.php'); | |
grade/report/outcomes/index.php:include_once('../../../config.php'); | |
install/css.php:if (file_exists(__DIR__.'/../config.php')) { | |
message/output/airnotifier/message_output_airnotifier.php: // Hidden setting for development sites, set in config.php if needed. | |
message/output/jabber/message_output_jabber.php: // hidden setting for development sites, set in config.php if needed | |
mod/data/tabs.php:// This file to be included so we can assume config.php has already been included. | |
mod/feedback/ajax.php:require(__DIR__.'/../../config.php'); | |
mod/glossary/print.php:require_once("../../config.php"); | |
mod/quiz/edit_rest.php:require_once(__DIR__ . '/../../config.php'); | |
mod/scorm/aicc.php:require_once('../../config.php'); | |
portfolio/mahara/lib.php: return $CFG->wwwroot . '/portfolio/mahara/preconfig.php?id=' . $this->exporter->get('id'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment