require( 'globals.php' ); require_once( 'configuration.php' );
use grepWin software to look in most the files within the directory.
You will probably find large amount of happens inside your directory.
It's generally foolish to alter files in joomla core. This practce can provide you with plenty of head aches when you wish to upgrade the Content management systems.
If you prefer a file incorporated every time the application runs, you need to a method wordpress plugin and set that "require_once" in the "onAfterInitialise" method.