Changeset 157
- Timestamp:
- 12/16/06 03:19:06 (16 years ago)
- Location:
- dev
- Files:
-
- 6 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/admin.php
r154 r157 35 35 $config->checkCheckbox('adapt_items'); 36 36 $config->checkCheckbox('show_standing'); 37 $config->checkCheckbox('bs_podlink'); 38 $config->checkCheckbox('post_forbid'); 37 39 38 40 if ($config->checkCheckbox('comments')) … … 164 166 } 165 167 $html .= "></td></tr>"; 168 $html .= "<tr><td width=120><b>Display a link instead of POD on Battlesummary:</b></td><td><input type=checkbox name=bs_podlink id=bs_podlink"; 169 if ($config->getConfig('bs_podlink')) 170 { 171 $html .= " checked=\"checked\""; 172 } 173 $html .= "></td></tr>"; 166 174 // $html .= "<tr><td width=120><b>Display least active:</b></td><td><input type=checkbox name=least_active id=least_active"; 167 175 // if ( $config->getLeastActive() ) … … 177 185 $html .= "<tr><td width=120><b>Mailhost:</b></td><td><input type=text name=post_mailhost id=post_mailhost size=20 maxlength=80 value=\"".$config->getConfig('mail_host')."\"></td></tr>"; 178 186 $html .= "<tr><td width=120><b>Disallow any killmails before:</b></td><td>".dateSelector($config->getConfig('filter_apply'), $config->getConfig('filter_date'))."</td></tr>"; 187 $html .= "<tr><td width=120><b>Forbid posting</b></td><td><input type=checkbox name=post_forbid id=post_forbid"; 188 if ($config->getConfig('post_forbid')) 189 { 190 $html .= " checked=\"checked\""; 191 } 192 $html .= "> (Checking this option disables mailposting)</td></tr>"; 179 193 $html .= "<tr><td width=120><b>Enable auto-addition of unknown Items:</b></td><td><input type=checkbox name=adapt_items id=adapt_items"; 180 194 if ($config->getConfig('adapt_items')) -
dev/common/kill_related.php
r155 r157 169 169 { 170 170 global $pods; 171 $pods[ ] = $kill->getVictimID();171 $pods[$kill->getID()] = $kill->getVictimID(); 172 172 173 173 // return when we've added him already … … 203 203 return -1; 204 204 } 205 // sort after points, shipname, pilotname 205 206 elseif ($a['scl'] == $b['scl']) 206 207 { 207 if ($a['ship'] > $b['ship']) 208 if ($a['ship'] == $b['ship']) 209 { 210 if ($a['name'] > $b['name']) 211 { 212 return 1; 213 } 214 return -1; 215 } 216 elseif ($a['ship'] > $b['ship']) 208 217 { 209 218 return 1; … … 232 241 global $pods; 233 242 234 if (in_array((string)$pilot, $pods)) 235 { 243 if ($result = array_search((string)$pilot, $pods)) 244 { 245 global $smarty; 246 247 $smarty->assign('pod_kll_id', $result); 236 248 return true; 237 249 } -
dev/common/post.php
r92 r157 103 103 } 104 104 } 105 else 105 elseif (!$config->getConfig('post_forbid')) 106 106 { 107 107 $html .= "Paste the killmail from your EVEMail inbox into the box below. Make sure you post the <b>ENTIRE</b> mail.<br>Posting fake or otherwise edited mails is not allowed. All posts are logged."; … … 117 117 $html .= "</form>"; 118 118 } 119 else 120 { 121 $html .= 'Posting killmails is disabled<br/>'; 122 } 119 123 120 124 $page->setContent($html); -
dev/common/post_igb.php
r59 r157 77 77 } 78 78 } 79 else 79 elseif (!$config->getConfig('post_forbid')) 80 80 { 81 81 $html .= "Paste the killmail from your EVEMail inbox into the box below. Make sure you post the <b>ENTIRE</b> mail.<br>Posting fake or otherwise edited mails is not allowed. All posts are logged."; … … 88 88 $html .= "</form>"; 89 89 } 90 else 91 { 92 $html .= 'Posting killmails is disabled<br/>'; 93 } 90 94 91 95 $html .= "</body></html>"; -
dev/templates/battle_overview.tpl
r154 r157 21 21 </td> 22 22 {if podded($pilot) and $i.ship != 'Capsule'} 23 {if $config->getConfig('bs_podlink')} 24 <td class="kb-table-cell"> 25 <b>{$i.name} <a href="?a=kill_detail&kll_id={$pod_kll_id}">[Pod]</a></b><br/>{$i.ship} 26 </td> 27 {else} 23 28 <td class="kb-table-cell" style="background-image: url({$podpic}); background-repeat: no-repeat; background-position: right;"> 24 29 <b>{$i.name}</b><br/>{$i.ship} 25 30 </td> 31 {/if} 26 32 {else} 27 33 <td class="kb-table-cell"><b><a href="?a=pilot_detail&plt_id={$pilot}">{$i.name}</a></b><br/>{$i.ship}</td> … … 50 56 </td> 51 57 {if podded($pilot) and $i.ship != 'Capsule'} 58 {if $config->getConfig('bs_podlink')} 59 <td class="kb-table-cell"> 60 <b>{$i.name}</b> <a href="?a=kill_detail&kll_id={$pod_kll_id}">[Pod]</a><br/>{$i.ship} 61 </td> 62 {else} 52 63 <td class="kb-table-cell" style="background-image: url({$podpic}); background-repeat: no-repeat; background-position: right;"> 53 64 <b>{$i.name}</b><br/>{$i.ship} 54 65 </td> 66 {/if} 55 67 {else} 56 68 <td class="kb-table-cell"><b><a href="?a=pilot_detail&plt_id={$pilot}">{$i.name}</a></b><br/>{$i.ship}</td> -
dev/templates/standings.tpl
r149 r157 10 10 {else} 11 11 <td width="32" height="34" valign="top" align="right" style="background-image: url(?a=corpportrait&size=32&id={$standings[opt].list[idx].id});"><img src="img/sta_{$standings[opt].list[idx].icon}.png"/></td> 12 <td><b><a href="?a=corp_detail& all_id={$standings[opt].list[idx].id}">{$standings[opt].list[idx].text}</a></b>{$standings[opt].list[idx].descr}</td>12 <td><b><a href="?a=corp_detail&crp_id={$standings[opt].list[idx].id}">{$standings[opt].list[idx].text}</a></b>{$standings[opt].list[idx].descr}</td> 13 13 {/if} 14 14 <td align="right">{$standings[opt].list[idx].value}</td>