Changeset 38
- Timestamp:
- 10/26/06 14:44:15 (16 years ago)
- Location:
- dev/common
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/admin_sync.php
r15 r38 97 97 for ($i = 0; $i<$results; $i++) 98 98 { 99 $update->execute("update kb3_pilots set plt_externalid='".$matches[2][$i]."' where plt_name='". $matches[1][$i]."'");99 $update->execute("update kb3_pilots set plt_externalid='".$matches[2][$i]."' where plt_name='".addslashes($matches[1][$i])."' limit 1"); 100 100 } 101 101 $html .= "Synchronization complete, got $results new ids from server running version ".$version[0].'.'.$version[1].'.'.$version[2].'.<br>'; -
dev/common/alliance_detail.php
r10 r38 28 28 $html .= "<table class=kb-table width=\"100%\" border=\"0\" cellspacing=1><tr class=kb-table-row-even><td rowspan=8 width=128 align=center>"; 29 29 30 $html .= "<img src=\"" . IMG_URL . "/alliances/default.gif\" border=\"0\">"; 31 $html .= "</td>"; 30 if (file_exists("img/alliances/".$alliance->getID().".jpg")) 31 { 32 $html .= "<img src=\"".IMG_URL."/alliances/".$alliance->getID().".jpg\" border=\"0\"></td>"; 33 } 34 else 35 { 36 $html .= "<img src=\"".IMG_URL."/alliances/default.gif\" border=\"0\"></td>"; 37 } 32 38 33 39 $html .= "<td class=kb-table-cell width=180><b>Kills:</b></td><td class=kl-kill>" . $klist->getCount() . "</td></tr>"; … … 293 299 $page->setContent($html); 294 300 $page->generate(); 295 296 301 ?> -
dev/common/sync_server.php
r31 r38 66 66 // we dont got that one in our database, update 67 67 // TODO: we don't care about missing pilots yet 68 $update->execute("update kb3_pilots set plt_externalid='".$id."' where plt_name='". $name."'");68 $update->execute("update kb3_pilots set plt_externalid='".$id."' where plt_name='".addslashes($name)."' limit 1"); 69 69 } 70 70 else