diff --git a/Templates/Alliance/attack-defender.tpl b/Templates/Alliance/attack-defender.tpl deleted file mode 100644 index 4cb5e1c7..00000000 --- a/Templates/Alliance/attack-defender.tpl +++ /dev/null @@ -1,74 +0,0 @@ -dblink,"SELECT * FROM ".TB_PREFIX."ndata WHERE ally = ".(int) $session->alliance." AND (ntype < 1 OR ntype > 3 AND ntype < 8 OR ntype > 19) ORDER BY time DESC LIMIT 20"); -$query = mysqli_num_rows($sql); -$outputList = ''; -$name = 1; -if($query == 0) { - $outputList .= "There are no reports available."; -}else{ -while($row = mysqli_fetch_array($sql)){ - $dataarray = explode(",",$row['data']); - $id = $row["id"]; - $uid = $row["uid"]; - $toWref = $row["toWref"]; - $ally = $row["ally"]; - $topic = $row["topic"]; - $ntype = $row["ntype"]; - $data = $row["data"]; - $time = $row["time"]; - $viewed = $row["viewed"]; - $archive = $row["archive"]; - - $outputList .= ""; - $outputList .= ""; -if($ntype==4 || $ntype==5 || $ntype==6 || $ntype==7){ - $type2 = '32'; -}else{ - $type2 = '31'; -} - $outputList .= ""; - $type = (isset($_GET['t']) && $_GET['t'] == 5)? $archive : $ntype; - if($type==20 or $type==21){ - $outputList .= ""; - }else{ - $outputList .= ""; - } - $outputList .= ""; - $outputList .= "
"; - if($ntype==0){ $nn = " scouts "; }else{ $nn = " attacks "; } - - $outputList .= $database->getUserField($dataarray[0], "username", 0); - - $outputList .= $nn; - $outputList .= $database->getUserField($type != 22 ? $dataarray[28] : $dataarray[2], "username", 0); - $getUserAlly = $database->getUserField($type != 22 ? $dataarray[28] : $dataarray[2], "alliance", 0); - $getAllyName = $database->getAllianceName($getUserAlly); - - if($getUserAlly==$session->alliance || !$getUserAlly){ - $allyName = "-"; - }else{ - $allyName = "".$getAllyName.""; - } - - $outputList .= "".$allyName.""; - $date = $generator->procMtime($time); - $outputList .= "".$date[0]." ".date('H:i',$time).""; - $outputList .= ""; - - $name++; -} -} -?> - - - - - - - - - - - - -
PlayerAllianceDate
\ No newline at end of file