public static function DownloadBossIcon($CreatureID) { $StorageDir = str_replace('/', DS, getcwd()) . DS . 'Uploads' . DS . 'Core' . DS . 'NPC' . DS . 'Cache' . DS; $CreatureName = 'creature' . $CreatureID . '.jpg'; $DownloadStatus = true; if (!File::Exists($StorageDir . $CreatureName)) { $DownloadStatus = File::Download('http://media.blizzard.com/wow/renders/npcs/portrait/' . $CreatureName, $StorageDir . $CreatureName); } return $DownloadStatus; }
$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; $ItemName = 'creature' . $BossInfo['entry'] . '.jpg'; if (!File::Exists($StorageDir . $ItemName)) { File::Download('http://media.blizzard.com/wow/renders/npcs/rotate/creature' . $BossInfo['entry'] . '.jpg', $StorageDir . $ItemName); } $NPCInfo = Zones::GetNPCInfo($BossInfo['entry']); $Smarty->assign('NPC', $NPCInfo); $Smarty->assign('ZoneInfo', $ZoneInfo); $Smarty->assign('BossInfo', $BossInfo); $Smarty->assign('Page', Page::Info('zone', array('bodycss' => 'zone-' . $ZoneInfo['link_name'] . ' boss-' . $_REQUEST['lastcategory'], 'pagetitle' => $BossInfo['name'] . ' - ' . $Smarty->GetConfigVars('Menu_Game') . ' - '))); $Smarty->display('pages/npc_info'); } else { $NPCInfo = Zones::GetNPCInfo($BossInfo['entry']); switch (str_replace('.frag', '', $_REQUEST['datatype'])) { case 'loot': $BossLoot = array(); $BossLoot['dungortenman'] = Zones::GetBossLoot($NPCInfo['lootid']); $LootAmount = count($BossLoot['dungortenman']); for ($i = 1; $i <= 3; $i++) {
$item = new News_Item($id); } elseif ($type == ItemType::Skin and isset($bd_names['sp_skins'])) { loadTool('skinposer.class.php'); $item = new SPItem($id); } if ($item) { aExit((int) $item->Like($dislike), 'Like'); } break; case 'download': $file = Filter::input('file', 'get'); if (empty($file)) { break; } $file = new File($file); if (!$file->Download()) { header("Location: " . BASE_URL . "index.php?mode=404"); } break; case 'delete_file': $file = Filter::input('file', 'post', 'stringLow'); if (!$file) { break; } if (empty($user) or $user->lvl() < 15) { break; } $file = new File($file); if ($file->Delete()) { aExit(0); } else {
<?php if (!defined("__MAGIC__")) { exit; } $file = new File(GV::Number('wr_no'), $this->board); $file->Download(GV::Number('file_no'));