public function __construct($Object)
 {
     $this->CachePath = getcwd() . DS . "Cache" . DS . "Compile" . DS . $Object . DS;
     $this->CacheExtension = '.fnc';
     $this->CacheLife = 86400;
     $this->CacheObject = $Object;
     $this->CacheLocale = Utilities::GetLanguage(true);
 }
Exemplo n.º 2
0
 public static function GetMenu()
 {
     $Statement = Patches::$DBConnection->prepare('SELECT * FROM patch_notes ORDER BY id DESC');
     $Statement->execute();
     $Result = $Statement->fetchAll(PDO::FETCH_ASSOC);
     for ($i = 0; $i < count($Result); $i++) {
         $Result[$i]['patch_name'] = $Result[$i]['patch_name_' . Utilities::GetLanguage(true)];
     }
     return $Result;
 }
Exemplo n.º 3
0
     $Smarty->assign('Instances', Zones::GetZonesForLandingPage());
     $Smarty->assign('Page', Page::Info('zone', array('bodycss' => 'zone-index expansion-0', 'pagetitle' => $Smarty->GetConfigVars('Zones_InstancesRaidsCMs') . ' - ')));
     $Smarty->display('pages/zones');
 } else {
     if (is_numeric($_REQUEST['subcategory'])) {
         if ($_REQUEST['lastcategory'] == 'tooltip') {
             $ZoneInfo = Zones::GetZoneInfoByID($_REQUEST['subcategory']);
             $Smarty->assign('Zone', $ZoneInfo);
             $Smarty->display('blocks/zone_tooltip');
         } else {
             header('Location: /');
         }
     } else {
         $ZoneInfo = Zones::GetZoneInfoByName($_REQUEST['subcategory']);
         if (Text::IsNull($_REQUEST['lastcategory'])) {
             $ChosenLang = Utilities::BlizzardLanguageFormat(Utilities::GetLanguage(true));
             Zones::DownloadScreenshots($ZoneInfo, $ChosenLang);
             Zones::DownloadMap($ZoneInfo, $ChosenLang);
             $Smarty->assign('LanguageStyle', $ChosenLang);
             $Smarty->assign('ZoneInfo', $ZoneInfo);
             $Smarty->assign('Page', Page::Info('zone', array('bodycss' => 'zone-' . $ZoneInfo['link_name'], 'pagetitle' => $ZoneInfo['name'] . ' - ' . $Smarty->GetConfigVars('Menu_Game') . ' - ')));
             $Smarty->display('pages/zone_info');
         } else {
             $BossesArray = array();
             foreach ($ZoneInfo['bosses'] as $Boss) {
                 $BossesArray[] = $Boss['boss_link'];
             }
             $BossInfo = $ZoneInfo['bosses'][Text::MASearch($ZoneInfo['bosses'], 'boss_link', $_REQUEST['lastcategory'])];
             if (in_array($_REQUEST['lastcategory'], $BossesArray)) {
                 if (Text::IsNull($_REQUEST['datatype'])) {
                     $StorageDir = str_replace('/', DS, getcwd()) . DS . 'Uploads' . DS . 'Core' . DS . 'NPC' . DS . 'ModelViewer' . DS;
Exemplo n.º 4
0
 /**
  * Get User Language
  *
  * @return Returning Preferred User Language base on Browser Language
  */
 public function loadLanguage()
 {
     $UserLanguage = Utilities::GetLanguage();
     return $UserLanguage;
 }
Exemplo n.º 5
0
 public static function LanguageCode()
 {
     return Utilities::GetLanguage(true);
 }