<?php require "getter.php"; $domain = explode('.', strtolower($_SERVER['HTTP_HOST'])); $list = EnumDir('scripts/data'); $list[] = "scripts/d3gl_data.js"; GetDocs($list, false, '', "DiabloCalc.onDataLoaded();");
<?php require "getter.php"; $domain = explode('.', strtolower($_SERVER['HTTP_HOST'])); $list = EnumDir($domain[0] == 'ptr' ? 'scripts/data_ptr' : 'scripts/data'); $list[] = "scripts/d3gl_data.js"; GetDocs($list, false, '', "DiabloCalc.onDataLoaded();");
<?php require "getter.php"; $uri = $_SERVER['REQUEST_URI']; /*if (preg_match('/\/locale\/([a-z][a-z][A-Z][A-Z])/', $uri, $matches)) { $lang = $matches[1]; require('../translate/translate.inc.php'); if (isset($locale_languages[$lang]) && $locale_languages[$lang]) { GetDocs(EnumDir("translate/" . $locale_languages[$lang]['output']), false, '', "DiabloCalc.onLocaleLoaded();"); exit(0); } }*/ GetDocs(EnumDir("scripts/locale"), false, '', "DiabloCalc.onLocaleLoaded();");