myQuery("select","bdb_missions","*","","misID = ".$misid."",""); $r = mysql_num_rows($s); if(!$r) $misid = 0; function getLinkName($name) { $name = str_replace(array(" ","'","\"",")","(","!"),array("-","","","","",""),$name); $name = strtolower($name); $name = "eve-online-".$name; $name = preg_replace("/[\-]+/","-",$name); return $name; } function getDMG($a,$t) { global $BASE_URL; $md = Array( "s" => Array("EM" => "22_20","Explosive" => "22_19","Kinetic" => "22_17","Thermal" => "22_18"), "d" => Array("EM" => "22_12","Explosive" => "22_11","Kinetic" => "22_09","Thermal" => "22_10") ); $b = explode(",",$a);$s = ""; for($i=0;$i"; } return $s; } if(!$misid) { $cmd_title = "Missions"; include "inc/body.top.php"; $tpl->define(array( "lside" => "l_menu.html", "missions" => "missions.html", "dpsdph" => "dpsdph.html", "rside" => "rside.def.html" )); if(@is_file("/www/eveinfo.com/tipoftheday/tipday.html")) { $ss = file_get_contents("/www/eveinfo.com/tipoftheday/tipday.html"); $tpl->assign("TIPDAY",$ss); } if(@is_file("/www/eveinfo.com/ads/728x90.html")) { $ss = file_get_contents("/www/eveinfo.com/ads/728x90.html"); $tpl->assign("MIDDLE_ADS",$ss); } $tpl->assign("ACNAME","Missions"); $ss = ""; $t_miss = array( "b" => "Basic missions", "i" => "Important & storyline missions", "e" => "Encounter missions", ); foreach($t_miss as $key=>$var) { $s = $DB->myQuery("select","bdb_missions","*","","misLevel = ".$mis_level." AND misAType = '".$key."'","misName,misEnemy,misEnemyName"); $r = mysql_num_rows($s); if($r) { $ss .= "".$var.""; $ss .= "Mission NamePatchEnemyTypeStepsImg"; for($i=0;$i<$r;$i++) { $d = mysql_fetch_array($s); $ss .= "".$d["misName"].""; if($_SESSION["login"]=="admin") $ss .= " (edit)"; $ss .= ""; $ss .= "(".$d["misStatus"].")"; if($d["misEnemy"]) $ss .= ""; else $ss .= ""; $ss .= "".$d["misEnemyName"]."".$d["misType"]."".$d["misSteps"].""; if($d["aidScreen"]) $ss .= ""; else $ss .= " "; $ss .= ""; } } } $tpl->assign("MIS_LIST",$ss); $tpl->assign("MIS_LEVEL",$mis_level); $tpl->assign("MIS_FORUM",$mis_forum_id[$mis_level]); if($_SESSION["login"]=="admin") $tpl->assign("MIS_EDIT"," | (add)"); else $tpl->assign("MIS_EDIT"," "); $cmd_title = "Missions : ".$mis_level; if($_SESSION["DPSDPH"]=="DPS") $tpl->assign("DPS_C"," checked"); else $tpl->assign("DPH_C"," checked"); $tpl->parse("DPSDPH",".dpsdph"); include "inc/radd.inc.php"; $tpl->parse("M_SIDE",".missions"); $tpl->parse("L_SIDE",".lside"); $tpl->parse("R_SIDE",".rside"); include "inc/body.down.php"; } else { $cmd_title = "Missions"; include "inc/body.top.php"; $tpl->define(array( "lside" => "l_menu.html", "mission_view" => "mission.view.html", "mission_step" => "mission.step.html", "dpsdph" => "dpsdph.html", "rside" => "rside.def.html" )); if(@is_file("/www/eveinfo.com/tipoftheday/tipday.html")) { $ss = file_get_contents("/www/eveinfo.com/tipoftheday/tipday.html"); $tpl->assign("TIPDAY",$ss); } if(@is_file("/www/eveinfo.com/ads/728x90.html")) { $ss = file_get_contents("/www/eveinfo.com/ads/728x90.html"); $tpl->assign("MIDDLE_ADS",$ss); } $tpl->assign("ACNAME","Missions"); $d = mysql_fetch_array($s); $tpl->assign("MIS_LEVEL",$d["misLevel"]); $tpl->assign("MIS_NAME",$d["misName"].(($_SESSION["login"]=="admin")?(" (edit)"):(""))); $tpl->assign("MIS_PATCH","".$misStatus[$d["misStatus"]]["name"].""); $tpl->assign("MIS_COMMENTS","comments (view and post on forum)"); $brief = nl2br($d["misBriefing"]); $brief .= "

Mission Info: ".$d["aidInfo"].""; if($d["aidScreen"]) $brief .= "
Mission Screenshoots: ".$d["aidScreen"].""; $brief .= "
"; $tpl->assign("MIS_BRIEFING",$brief); $opis = "Mission Type: ".$d["misType"]."
\n"; $opis .= ($d["misEnemyName"])?("Enemy: ".(($d["misEnemy"])?(" "):(""))."".$d["misEnemyName"]."
\n"):(""); $opis .= ($d["misSteps"])?("Number of Steps: ".$d["misSteps"]."
\n"):(""); $opis .= ($d["misTarget"])?("Mission Target: ".$d["misTarget"]."
\n"):(""); $opis .= ($d["misDropOff"])?("Mission DropOff: ".$d["misDropOff"]."
\n"):(""); $tpl->assign("MIS_OPIS",$opis); $s1 = $DB->myQuery("select","bdb_missteps","*","","misID = ".$misid."","misStepID,misAlter"); $r1 = mysql_num_rows($s1); if($r1) { for($i=0;$i<$r1;$i++) { $d1 = mysql_fetch_array($s1); if($d1["misAlter"]) { $tpl->assign("MSTEP_N",(($d1["misStepID"]-$misid*10)." (alternative) (Show/Hide) ")); $tpl->assign("MSTEP_SHOW"," style=\"display:none;\""); } else { $tpl->assign("MSTEP_N",($d1["misStepID"]-$misid*10)); $tpl->assign("MSTEP_SHOW",""); } if($d1["img"]) $tpl->assign("MSTEP_IMG","
"); else $tpl->assign("MSTEP_IMG",""); $opis = ""; $opis .= ($d1["stepType"])?("Step Type: ".$d1["stepType"]."
\n"):(""); $opis .= ($d1["misEnemyName"])?("Enemy: ".(($d1["misEnemy"])?(" "):(""))."".$d1["misEnemyName"]."
\n"):(""); $opis .= ($d1["spawns"])?("Number of Spawns: ".$d1["spawns"]."
\n"):(""); $opis .= ($d1["npcAtack"])?("NPC's Atack after warp: yes
\n"):("NPC Atack after warp: no
\n"); $opis .= ($d1["ssAtack"])?("SS's Atack after warp: yes
\n"):(""); $opis .= ($d1["shResist"])?("Your Shield/Armor resists: ".getDMG($d1["shResist"],"s")."
\n"):(""); $opis .= ($d1["dmType"])?("Your Damage type: ".getDMG($d1["dmType"],"d")."
\n"):(""); $opis .= ($d1["structs"])?("Structures with loot: ".$d1["structs"]."
\n"):(""); $tpl->assign("MSTEP_OPIS",$opis); $tpl->assign("MSTEP_SPAWNS",show_groups($d1["misStepID"],$d1["misAlter"])); $tpl->assign("MSTEP_TIPS",nl2br($d1["tips"])); $tpl->assign("MSTEP_DIV",("ms".$d1["misStepID"]."".$d1["misAlter"])); $tpl->parse("MIS_STEPS",".mission_step"); } } // $tpl->assign("MIS_DESC",nl2br($d["misDesc"])); $cmd_title = "Mission : ".$d["misLevel"]." : ".$d["misName"]; if($_SESSION["login"]=="admin") $tpl->assign("MIS_EDIT"," | (add)"); else $tpl->assign("MIS_EDIT"," "); if($_SESSION["DPSDPH"]=="DPS") $tpl->assign("DPS_C"," checked"); else $tpl->assign("DPH_C"," checked"); $tpl->parse("DPSDPH",".dpsdph"); include "inc/radd.inc.php"; $tpl->parse("M_SIDE",".mission_view"); $tpl->parse("L_SIDE",".lside"); $tpl->parse("R_SIDE",".rside"); include "inc/body.down.php"; } ?>