Changeset 273
- Timestamp:
- 12/06/07 14:43:04 (15 years ago)
- Location:
- dev
- Files:
-
- 7 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/admin/admin_navmanager.php
r237 r273 268 268 if (CORP_ID) 269 269 { 270 $statlink = '?a=corp_detail &crp_id='.CORP_ID;270 $statlink = '?a=corp_detail'; 271 271 }elseif (ALLIANCE_ID) 272 272 { 273 $statlink = '?a=alliance_detail& all_id='.ALLIANCE_ID;273 $statlink = '?a=alliance_detail&'; 274 274 } 275 275 $qry = new DBQuery(); -
dev/common/alliance_detail.php
r233 r273 7 7 require_once('common/includes/class.toplist.php'); 8 8 9 $all_id = $_GET['all_id']; 10 $alliance = new Alliance(intval($all_id)); 9 if (!$all_id = intval($_GET['all_id'])) 10 { 11 if (ALLIANCE_ID) 12 { 13 $all_id = ALLIANCE_ID; 14 } 15 else 16 { 17 echo 'no valid alliance id specified<br/>'; 18 return; 19 } 20 } 21 $alliance = new Alliance($all_id); 11 22 $page = new Page('Alliance details - '.$alliance->getName()); 12 23 … … 145 156 case "corp_kills_class": 146 157 $html .= "<div class=block-header2>Destroyed ships</div>"; 147 158 148 159 // Get all ShipClasses 149 160 $sql = "select scl_id, scl_class from kb3_ship_classes 150 161 where scl_class not in ('Drone','Unknown') order by scl_class"; 151 162 152 163 $qry = new DBQuery(); 153 164 $qry->execute($sql); … … 159 170 $html .= "<tr>"; 160 171 $newrow = true; 161 172 162 173 foreach ($shipclass as $shp){ 163 174 if ($newrow){ … … 176 187 $newrow = !$newrow; 177 188 } 178 189 179 190 } 180 191 $html .= "</tr></table>"; … … 183 194 case "kills_class": 184 195 $html .= "<div class=block-header2>Destroyed ships</div>"; 185 196 186 197 // Get all ShipClasses 187 198 $sql = "select scl_id, scl_class from kb3_ship_classes 188 199 where scl_class not in ('Drone','Unknown') order by scl_class"; 189 200 190 201 $qry = new DBQuery(); 191 202 $qry->execute($sql); … … 197 208 $html .= "<tr>"; 198 209 $newrow = true; 199 210 200 211 foreach ($shipclass as $shp){ 201 212 if ($newrow){ … … 214 225 $newrow = !$newrow; 215 226 } 216 227 217 228 } 218 229 $html .= "</tr></table>"; … … 225 236 $sql = "select scl_id, scl_class from kb3_ship_classes 226 237 where scl_class not in ('Drone','Unknown') order by scl_class"; 227 238 228 239 $qry = new DBQuery(); 229 240 $qry->execute($sql); … … 262 273 $sql = "select scl_id, scl_class from kb3_ship_classes 263 274 where scl_class not in ('Drone','Unknown') order by scl_class"; 264 275 265 276 $qry = new DBQuery(); 266 277 $qry->execute($sql); -
dev/common/corp_detail.php
r254 r273 9 9 if (!$crp_id = intval($_GET['crp_id'])) 10 10 { 11 echo 'no valid corp id specified<br/>'; 12 exit; 11 if (CORP_ID) 12 { 13 $crp_id = CORP_ID; 14 } 15 else 16 { 17 echo 'no valid corp id specified<br/>'; 18 return; 19 } 13 20 } 14 21 $all_id = $_GET['all_id']; -
dev/common/includes/globals.php
r254 r273 1 1 <?php 2 2 // current subversion revision 3 preg_match('/\$Re'.'vision: (.*?) \$/', '$Revision: 2 40$', $match);3 preg_match('/\$Re'.'vision: (.*?) \$/', '$Revision: 273 $', $match); 4 4 define('SVN_REV', $match[1]); 5 5 -
dev/install/install_step40_tblchk.php
r254 r273 26 26 if (CORP_ID) 27 27 { 28 $statlink = '?a=corp_detail &crp_id='.CORP_ID;28 $statlink = '?a=corp_detail'; 29 29 } 30 30 elseif (ALLIANCE_ID) 31 31 { 32 $statlink = '?a=alliance_detail &all_id='.ALLIANCE_ID;32 $statlink = '?a=alliance_detail'; 33 33 } 34 34 -
dev/templates/invtype_ship.tpl
r254 r273 72 72 <div class="block-header">Fitting</div> 73 73 <table class="kb-table" width="360" border="0" cellspacing="1"> 74 {php}$this->assign('attribs', array('hiSlots','medSlots','lowSlots','rigSlots','upgradeCapacity',' launcherSlotsLeft',74 {php}$this->assign('attribs', array('hiSlots','medSlots','lowSlots','rigSlots','upgradeCapacity','droneBandwidth','launcherSlotsLeft', 75 75 'turretSlotsLeft','powerOutput','cpuOutput'));{/php} 76 76 {foreach from=$attribs key=i item=key} -
dev/templates/user_login.tpl
r188 r273 5 5 {/if} 6 6 <table class="kb-subtable"> 7 < tr>7 <!--<tr> 8 8 <td width="160"><b>Login:</b></td> 9 9 <td><input type="text" name="usrlogin" maxlength="40"{if $user_name} value="{$user_name}"{/if}></td> 10 </tr> 10 </tr>--> 11 11 <tr> 12 12 <td width="160"><b>Password:</b></td>