global $wgXML2WikiConfig;
    global $wgXML2WikiExtensionWebDir;
    if ($wgUseAjax) {
        $script = $wgXML2WikiExtensionWebDir . '/includes/xml2wiki.js.php';
        $out->addScript('<script type="text/javascript" src="' . $script . '"></script>');
    }
    if ($wgXML2WikiConfig['autocss']) {
        $script = $wgXML2WikiExtensionWebDir . '/includes/style.css';
        $out->addScript('<link type="text/css" rel="stylesheet" href="' . $script . '"/>');
    }
    return true;
}
if (!defined('MEDIAWIKI')) {
    die;
} else {
    /**
     * MediaWiki Extension hooks Setter.
     */
    $wgExtensionFunctions[] = 'Xml2Wiki_Hooker';
    $wgHooks['BeforePageDisplay'][] = 'Xml2Wiki_HeadHooker';
    $wgAjaxExportList[] = 'X2WParser::AjaxParser';
    $wgExtensionMessagesFiles['xml2wiki'] = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'xml2wiki-dr.i18n.php';
    $wgAutoloadClasses['xml2wiki'] = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'xml2wiki-dr.body.php';
    $wgSpecialPages['xml2wiki'] = 'xml2wiki';
    $wgSpecialPageGroups['xml2wiki'] = 'other';
    /**
     * MediaWiki Extension Description.
     */
    $wgExtensionCredits['parserhook'][] = array('name' => Xml2Wiki::Property('name'), 'version' => Xml2Wiki::Property('version'), 'date' => Xml2Wiki::Property('date'), 'description' => Xml2Wiki::Property('description'), 'descriptionmsg' => Xml2Wiki::Property('descriptionmsg'), 'author' => Xml2Wiki::Property('author'), 'url' => Xml2Wiki::Property('url'), 'svn-date' => Xml2Wiki::Property('svn-date'), 'svn-revision' => Xml2Wiki::Property('svn-revision'));
    $wgExtensionCredits['specialpage'][] = array('name' => Xml2Wiki::Property('name'), 'version' => Xml2Wiki::Property('version'), 'date' => Xml2Wiki::Property('date'), 'description' => Xml2Wiki::Property('sinfo-description'), 'descriptionmsg' => Xml2Wiki::Property('sinfo-descriptionmsg'), 'author' => Xml2Wiki::Property('author'), 'url' => Xml2Wiki::Property('url'));
}
 /**
  * @todo doc
  * @param $out @todo doc
  */
 protected function getInfoExtensionInformation(&$out)
 {
     global $wgXML2WikiConfig;
     global $wgXML2WikiExtensionSysDir;
     /*
      * Section: Extension information.
      * @{
      */
     $out .= "== " . wfMsg('sinfo-extension-information') . " ==\n";
     $out .= "*'''" . wfMsg('sinfo-name') . ":''' " . Xml2Wiki::Property('name') . "\n";
     $out .= "*'''" . wfMsg('sinfo-version') . ":''' " . Xml2Wiki::Property('version') . "\n";
     $out .= "*'''" . wfMsg('sinfo-description') . ":''' " . Xml2Wiki::Property('_description') . "\n";
     $out .= "*'''" . wfMsg('sinfo-author') . ":'''\n";
     foreach (Xml2Wiki::Property('author') as $author) {
         $out .= "**{$author}\n";
     }
     $out .= "*'''" . wfMsg('sinfo-url') . ":''' " . Xml2Wiki::Property('url') . "\n";
     if ($wgXML2WikiConfig['show']['installdir']) {
         $out .= "*'''" . wfMsg('sinfo-installation-directory') . ":''' {$wgXML2WikiExtensionSysDir}\n";
     }
     $out .= "*'''" . wfMsg('sinfo-svn') . ":'''\n";
     $aux = str_replace('$', '', Xml2Wiki::Property('svn-revision'));
     $aux = str_replace('LastChangedRevision: ', '', $aux);
     $out .= "**'''" . wfMsg('sinfo-svn-revision') . ":''' r{$aux}\n";
     $aux = str_replace('$', '', Xml2Wiki::Property('svn-date'));
     $aux = str_replace('LastChangedDate: ', '', $aux);
     $out .= "**'''" . wfMsg('sinfo-svn-date') . ":''' {$aux}\n";
     /* @} */
 }