$method(); } } $this->sort( $this->data ); } function _loadConfig() { $jconf = new JConfig(); $jconf->password = '*******'; $jconf->ftp_pass = '*******'; $jconf->secret = '*******'; $this->data['Joomla Configuration'] = JArrayHelper::fromObject( $jconf ); } function _loadDefined() { switch ( DUMP_PHP ) { case 4: $this->data['All Defined Constants'] = get_defined_constants(); break; case 5: $this->data['All Defined Constants'] = get_defined_constants(true); break; } } function _loadVersions() { $version = new JVersion(); $this->data['Versions']['Joomla!'] = $version->getLongVersion(); $this->data['Versions']['J!Dump'] = DUMP_VERSION; $this->data['Versions']['PHP'] = phpversion(); $this->data['Versions']['Apache'] = apache_get_version(); $this->data['Versions']['Zend Engine'] = zend_version(); } function _loadPhp(){ $this->data['PHP']['Version'] = phpversion(); $this->data['PHP']['Loaded Extensions'] = get_loaded_extensions(); } function _loadEnvironment(){ $this->data['Environment']['_SERVER'] = & $_SERVER; $this->data['Environment']['_GET'] = & $_GET; $this->data['Environment']['_POST'] = & $_POST; $this->data['Environment']['_COOKIE'] = & $_COOKIE; $this->data['Environment']['_FILES'] = & $_FILES; $this->data['Environment']['_ENV'] = & $_ENV; $this->data['Environment']['_REQUEST'] = & $_REQUEST; } // recursive natural key sort function sort( & $array ){ uksort( $array, 'strnatcasecmp' ); // this will do natural key sorting (A=a) foreach( array_keys( $array ) as $k ){ if( 'array' == gettype( $array[$k] ) ){ $this->sort( $array[$k] ); } } } }