Changeset 314
- Timestamp:
- 01/21/08 11:19:44 (15 years ago)
- Location:
- dev
- Files:
-
- 1 removed
- 18 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/about.php
r297 r314 22 22 // Please leave the information on the next line as is so that other people can easily find the EVE-Dev website. 23 23 // Remember to share any modifications to the EVE-Dev Killboard. 24 $html .= "This is the EVE Development Network Killboard running version ".KB_VERSION." rev ".SVN_REV.", created for <a href=\"http://www.eve-online.com/\">EVE Online</a> corporations and alliances. Based on the EVE-Killboard created by rig0r, it is now developed and maintained by the <a href=\"http://www.eve-dev.net/\">EVE-Dev</a> group.<br/>"24 $html .= "This is the EVE Development Network Killboard running version ".KB_VERSION." ".KB_RELEASE." rev ".SVN_REV.", created for <a href=\"http://www.eve-online.com/\">EVE Online</a> corporations and alliances. Based on the EVE-Killboard created by rig0r, it is now developed and maintained by the <a href=\"http://www.eve-dev.net/\">EVE-Dev</a> group.<br/>" 25 25 ."All EVE graphics and data used are property of <a href=\"http://www.ccpgames.com/\">CCP</a>.<br/><br/>"; 26 26 $html .= '<a href="http://www.eve-dev.net/" target="_blank"><img src="http://www.eve-dev.net/e107_images/evedev_button.png" border="0"/></a><br/><br/>'; -
dev/common/admin/admin.php
r239 r314 21 21 if ($_REQUEST['sub'] == 'Generic' && $_REQUEST['field'] == 'Appearance') 22 22 { 23 $page->setTitle('Administration - Generic (Current version: '.KB_VERSION.' Build '.SVN_REV.')');23 $page->setTitle('Administration - Generic (Current version: '.KB_VERSION.' '.KB_RELEASE.' Build '.SVN_REV.')'); 24 24 } 25 25 $page->generate(); -
dev/common/admin/option_generic.php
r289 r314 30 30 options::fadd('Disallow any killmails before', 'filter_date', 'custom', array('admin_generic', 'dateSelector'), array('admin_generic', 'postDateSelector')); 31 31 options::fadd('Forbid posting', 'post_forbid', 'checkbox'); 32 options::fadd('Forbid out of game posting', 'post_oog_forbid', 'checkbox'); 32 33 options::fadd('Enable auto-addition of unknown Items', 'adapt_items', 'checkbox'); 33 34 options::fadd('ReAdd known killmails', 'readd_dupes', 'checkbox'); -
dev/common/includes/autoupgrade.php
r312 r314 12 12 define(CURRENT_DB_UPDATE,config::get("DBUpdate")); 13 13 //Update version of this autoupgrade.php 14 define(LASTEST_DB_UPDATE,"00 2");14 define(LASTEST_DB_UPDATE,"003"); 15 15 16 16 function updateDB(){ … … 19 19 update001(); 20 20 update002(); 21 update003(); 21 22 } 22 23 } … … 80 81 } 81 82 83 function update003(){ 84 // Warefare Links and Command Prozessor were midslot items in install file, should be high slot 85 if (CURRENT_DB_UPDATE < "003" ) 86 { 87 require_once("common/includes/class.item.php"); 88 $WarfareLinkGroup = item::get_group_id("Skirmish Warfare Link - Rapid Deployment"); 89 update_slot_of_group($WarfareLinkGroup,2,1); 90 config::set("DBUpdate","003"); 91 } 92 } 93 82 94 function update_slot_of_group($id,$oldSlot = 0 ,$newSlot){ 83 95 $qry = new DBQuery(); -
dev/common/includes/globals.php
r313 r314 1 1 <?php 2 2 // current subversion revision 3 preg_match('/\$Re'.'vision: (.*?) \$/', '$Revision: 31 3$', $match);3 preg_match('/\$Re'.'vision: (.*?) \$/', '$Revision: 314 $', $match); 4 4 define('SVN_REV', $match[1]); 5 5 6 6 // current version: major.minor.sub 7 7 // unpair numbers for minor = development version 8 define('KB_VERSION', '1.4.0 (Trinity)'); 8 define('KB_VERSION', '1.4.0'); 9 define('KB_RELEASE', '(Trinity)'); 9 10 10 11 // set the running-server for id-syncs here -
dev/common/portrait_grab.php
r230 r314 1 1 <?php 2 /* ex: set ts=4: set sw=4: set expandtab */ 2 3 require_once('common/includes/class.pilot.php'); 3 4 require_once('common/includes/class.corp.php'); 4 5 require_once('common/includes/class.alliance.php'); 6 define('IS_IMG_MAX', 256); 5 7 6 8 $page = new Page('Capture portrait'); … … 23 25 { 24 26 $now = date('Y-m-d H:m:s'); 25 26 27 $alliance = new Alliance(); 27 28 $all_id = $alliance->add($_SERVER['HTTP_EVE_ALLIANCENAME']); … … 32 33 $id = intval($_SERVER['HTTP_EVE_CHARID']); 33 34 $pilot->setCharacterID($id); 34 @unlink("cache/portraits/".$id."_32.jpg"); 35 @unlink("cache/portraits/".$id."_64.jpg"); 36 @unlink("cache/portraits/".$id."_128.jpg"); 37 @unlink("cache/portraits/".$id."_256.jpg"); 38 @unlink("cache/portraits/".$id."_512.jpg"); 39 $html .= "<img src=\"".$pilot->getPortraitURL(64)."\" border=\"0\">"; 40 $html .= "Character portrait updated !<br>"; 41 $html .= "<a href=\"?a=igb\">Return</a><br>"; 42 } 35 if (file_exists("cache/portraits/".$id."_256.jpg") && 1 == $_REQUEST['force']) 36 { 37 // Remove just in case. 38 @unlink("cache/portraits/".$id."}_32.jpg"); 39 @unlink("cache/portraits/".$id."_64.jpg"); 40 @unlink("cache/portraits/".$id."_128.jpg"); 41 @unlink("cache/portraits/".$id."_256.jpg"); 42 if (0 == create_portraits($id)) 43 { 44 $message = "Character portrait uploaded."; 45 } 46 else 47 { 48 $message = "Character portrait update failed."; 49 } 50 } 51 elseif (file_exists("cache/portraits/".$id."_256.jpg")) 52 { 53 $message = "Character portrait not updated, as it already exists. <a href='".KB_HOST."?a=portrait_grab&force=1'>Click</a> to force an update."; 54 } 55 else 56 { 57 if (0 == create_portraits($id)) 58 { 59 $message = "Character portrait uploaded."; 60 } 61 else 62 { 63 $message = "Character portrait update failed."; 64 } 65 66 } 67 $html .= "<img src='".$pilot->getPortraitURL(64)."' border='0' />"; 68 $html .= "<br />$message <br />$port_error_msg <br />"; 69 $html .= "<a href='".KB_HOST."?a=igb'>Return</a> to the killboard.<br />"; 70 } 43 71 } 44 72 … … 47 75 $page->setContent($html); 48 76 $page->generate(); 77 78 function create_portraits($id) { 79 global $port_error_msg; 80 if (1 != ini_get('allow_url_fopen')) { 81 $port_error_msg = 'This web host does not allow PHP to create HTTP connections. Check allow_url_fopen.'; 82 return -99; 83 } 84 if (! is_writable('cache/portraits/')) { 85 $port_error_msg = 'The portraits directory is not writable. Please fix this.'; 86 return -99; 87 } 88 89 $img = @imagecreatefromjpeg("http://img.eve.is/serv.asp?s=".IS_IMG_MAX."&c=".$id); 90 if ($img) 91 { 92 $dims = array (32, 64, 128); 93 foreach ($dims as $dim) { 94 $newimg = @imagecreatetruecolor($dim,$dim); 95 @imagecopyresampled($newimg, $img, 0,0,0,0,$dim,$dim,IS_IMG_MAX,IS_IMG_MAX); 96 @imagejpeg($newimg, "cache/portraits/".$id."_".$dim.".jpg"); 97 } 98 @imagejpeg($img, "cache/portraits/" . $id . "_256.jpg"); 99 $return = 0; 100 } 101 else 102 { 103 $port_error_msg = 'Attempting to create an image failed, and it was not because the directory was not writable.'; 104 $return = -99; 105 } 106 return $return; 107 } 49 108 ?> -
dev/common/post.php
r213 r314 104 104 } 105 105 } 106 elseif (!config::get('post_forbid') )106 elseif (!config::get('post_forbid') && !config::get('post_oog_forbid')) 107 107 { 108 108 $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."; … … 120 120 else 121 121 { 122 $html .= 'Posting killmails is disabled<br/>'; 122 if (config::get('post_oog_forbid')) 123 { 124 $html .= 'Out of game posting is disabled, please use the ingame browser.<br/>'; 125 } 126 else 127 { 128 $html .= 'Posting killmails is disabled<br/>'; 129 } 123 130 } 124 131 -
dev/mods/fitting/kill_detail.tpl
r311 r314 100 100 {* set to true to show empty slots *} 101 101 {if $destroyed.$slotindex or $dropped.$slotindex} 102 <tr class="kb-table-row- even">102 <tr class="kb-table-row-slot"> 103 103 <td class="item-icon" width="32"><img width="32" height="32" src="{$img_url}/{$slot.img}" alt="{$slot.text}" border="0"></td> 104 104 <td colspan="2" class="kb-table-cell"><b>{$slot.text}</b> </td> … … 108 108 </tr> 109 109 {foreach from=$destroyed.$slotindex item=i} 110 <tr class="kb-table-row- odd">110 <tr class="kb-table-row-destroyed"> 111 111 <td class="item-icon" width="32" height="34" valign="top"><a href="?a=invtype&id={$i.itemID}">{$i.Icon}</a></td> 112 112 <td class="kb-table-cell">{$i.Name}</td> … … 147 147 {/foreach} 148 148 {foreach from=$dropped.$slotindex item=i} 149 <tr class="kb-table-row- odd" style="background-color: green;">149 <tr class="kb-table-row-dropped"> 150 150 <td style="border: 1px solid green;" width="32" height="34" valign="top"><a href="?a=invtype&id={$i.itemID}">{$i.Icon}</a></td> 151 151 <td class="kb-table-cell">{$i.Name}</td> -
dev/mods/history/about.php
r296 r314 7 7 $developer = array('exi (Lead Developer)', 8 8 'knifee (Developer)', 9 'Ralle030583 (Developer)' 9 10 'Andrew Gunn (Siteadmin)', 10 11 'Ganja (Fluff girl)'); … … 12 13 $contributor = array('JaredC01', 13 14 'liquidism', 14 'ralle030583',15 15 'Mitchman', 16 16 'Coni', … … 22 22 // Please leave the information on the next line as is so that other people can easily find the EVE-Dev website. 23 23 // Remember to share any modifications to the EVE-Dev Killboard. 24 $html .= "This is the EVE Development Network Killboard running version ".KB_VERSION." rev ".SVN_REV.", created for <a href=\"http://www.eve-online.com/\">EVE Online</a> corporations and alliances. Based on the EVE-Killboard created by rig0r, it is now developed and maintained by the <a href=\"http://www.eve-dev.net/\">EVE-Dev</a> group.<br/>"24 $html .= "This is the EVE Development Network Killboard running version ".KB_VERSION." ".KB_RELEASE." rev ".SVN_REV.", created for <a href=\"http://www.eve-online.com/\">EVE Online</a> corporations and alliances. Based on the EVE-Killboard created by rig0r, it is now developed and maintained by the <a href=\"http://www.eve-dev.net/\">EVE-Dev</a> group.<br/>" 25 25 ."All EVE graphics and data used are property of <a href=\"http://www.ccpgames.com/\">CCP</a>.<br/><br/>"; 26 26 $html .= '<a href="http://www.eve-dev.net/" target="_blank"><img src="http://www.eve-dev.net/e107_images/evedev_button.png" border="0"/></a><br/><br/>'; -
dev/mods/history/history.xml
r313 r314 2 2 <history> 3 3 <changeset> 4 <rev>314</rev> 5 <author>ralle030583</author> 6 <date>21.01.2008</date> 7 <comment> 8 <type>FIX</type> 9 <text> 10 DB Update003: Warefare Links fixed from mid to highslot 11 </text> 12 </comment> 13 <comment> 14 <type>ADD</type> 15 <text> 16 Ticket #71 Kill_detail.tpl Slot,Destroyed,Dropped items has own table-row styles in the style.css's) 17 </text> 18 </comment> 19 <comment> 20 <type>FIX</type> 21 <text> 22 Ticket #70 (KB_VERSION not a number) 23 </text> 24 </comment> 25 <comment> 26 <type>FIX</type> 27 <text> 28 Ticket #69 (Update Portrait Update) 29 </text> 30 </comment> 31 <comment> 32 <type>ADD</type> 33 <text> 34 Ticket #68 (possibility to disabe out of game posting) 35 </text> 36 </comment> 37 <comment> 38 <type>FIX</type> 39 <text> 40 Ticket #64 (Problem with IGB links when KB not in web root) 41 </text> 42 </comment> 43 </changeset> 44 <changeset> 4 45 <rev>313</rev> 5 46 <author>ralle030583</author> … … 36 77 <comment> 37 78 <type>FIX</type> 38 <text> for Ticket 62</text>79 <text>Ticket 62 (Update items value for dropped items)</text> 39 80 </comment> 40 81 <comment> -
dev/mods/ingame_mod/igb.php
r286 r314 34 34 $html .= $kill->getSolarSystemName() ."(".roundsec($kill->getSolarSystemSecurity()).")"; 35 35 $html .= "</td><td>"; 36 $html .= "<a href= index.php?a=igb_kill_mail&kll_id=".$kill->getID().">Mail</a>";36 $html .= "<a href=\"".KB_HOST."?a=igb_kill_mail&kll_id=".$kill->getID()."\">Mail</a>"; 37 37 $html .= "</td></tr>"; 38 38 } … … 42 42 43 43 $html .= "<html><head><title>IGB Killboard</title></head><body>"; 44 $html .= "<a href=\" ?a=post_igb\">Post killmail</a> | <a href=\"?a=portrait_grab\">Update portrait</a> | <a href=\"?a=igb&mode=kills\">Kills</a> | <a href=\"?a=igb&mode=losses\">Losses</a><br>";44 $html .= "<a href=\"".KB_HOST."?a=post_igb\">Post killmail</a> | <a href=\"".KB_HOST."?a=portrait_grab\">Update portrait</a> | <a href=\"".KB_HOST."?a=igb&mode=kills\">Kills</a> | <a href=\"".KB_HOST."?a=igb&mode=losses\">Losses</a><br>"; 45 45 $html .= "<table width=\"100%\" border=1>"; 46 46 $html .= "<tr><td>Ship</td><td>Victim</td><td>Final Blow</td><td>Date/Time</td><td>System</td><td>Raw Mail</td></tr>"; -
dev/mods/ingame_mod/igb_kill_mail.php
r286 r314 5 5 6 6 $html .= "<html><head><title>IGB Killboard</title></head><body>"; 7 $html .= "<a href=\" ?a=post_igb\">Post killmail</a> | <a href=\"?a=portrait_grab\">Update portrait</a> | <a href=\"?a=igb&mode=kills\">Kills</a> | <a href=\"?a=igb&mode=losses\">Losses</a><br><br>";7 $html .= "<a href=\"".KB_HOST."?a=post_igb\">Post killmail</a> | <a href=\"".KB_HOST."?a=portrait_grab\">Update portrait</a> | <a href=\"".KB_HOST."?a=igb&mode=kills\">Kills</a> | <a href=\"".KB_HOST."?a=igb&mode=losses\">Losses</a><br><br>"; 8 8 9 9 $kill = new Kill($kll_id); -
dev/style/blue/style.css
r191 r314 213 213 { 214 214 background: #222222; 215 } 216 217 .kb-table-row-slot 218 { 219 background: #292929; 220 } 221 222 .kb-table-row-destroyed 223 { 224 background: #222222; 225 } 226 227 .kb-table-row-dropped 228 { 229 background: green; 215 230 } 216 231 -
dev/style/darkred/style.css
r232 r314 223 223 { 224 224 background: #350000; 225 } 226 227 .kb-table-row-slot 228 { 229 background: #250000; 230 } 231 232 .kb-table-row-destroyed 233 { 234 background: #350000; 235 } 236 237 .kb-table-row-dropped 238 { 239 background: green; 225 240 } 226 241 -
dev/style/default/style.css
r191 r314 213 213 { 214 214 background: #222222; 215 } 216 217 .kb-table-row-slot 218 { 219 background: #292929; 220 } 221 222 .kb-table-row-destroyed 223 { 224 background: #222222; 225 } 226 227 .kb-table-row-dropped 228 { 229 background: green; 215 230 } 216 231 -
dev/style/revelations/style.css
r191 r314 218 218 { 219 219 background: #706670; 220 } 221 222 .kb-table-row-slot 223 { 224 background: #807680; 225 } 226 227 .kb-table-row-destroyed 228 { 229 background: #706670; 230 } 231 232 .kb-table-row-dropped 233 { 234 background: green; 220 235 } 221 236 -
dev/templates/igb.tpl
r230 r314 1 <a href=" /?a=igb_home">Home</a> | <a href="/?a=post_igb">Post killmail</a> | <a href="/?a=portrait_grab">Update portrait</a>1 <a href="{KB_HOST}/?a=igb_home">Home</a> | <a href="{KB_HOST}/?a=post_igb">Post killmail</a> | <a href="{KB_HOST}/?a=portrait_grab">Update portrait</a> -
dev/templates/kill_detail.tpl
r311 r314 66 66 {* set to true to show empty slots *} 67 67 {if $destroyed.$slotindex or $dropped.$slotindex} 68 <tr class="kb-table-row- even">68 <tr class="kb-table-row-slot"> 69 69 <td class="item-icon" width="32"><img width="32" height="32" src="{$img_url}/{$slot.img}" alt="{$slot.text}" border="0"></td> 70 70 <td colspan="2" class="kb-table-cell"><b>{$slot.text}</b> </td> … … 74 74 </tr> 75 75 {foreach from=$destroyed.$slotindex item=i} 76 <tr class="kb-table-row- odd">76 <tr class="kb-table-row-destroyed"> 77 77 <td class="item-icon" width="32" height="34" valign="top"><a href="?a=invtype&id={$i.itemID}">{$i.Icon}</a></td> 78 78 <td class="kb-table-cell">{$i.Name}</td> … … 113 113 {/foreach} 114 114 {foreach from=$dropped.$slotindex item=i} 115 <tr class="kb-table-row- odd" style="background-color: green;">115 <tr class="kb-table-row-dropped"> 116 116 <td style="border: 1px solid green;" width="32" height="34" valign="top"><a href="?a=invtype&id={$i.itemID}">{$i.Icon}</a></td> 117 117 <td class="kb-table-cell">{$i.Name}</td> … … 162 162 <td align="right">{$ItemValue}</td> 163 163 </tr> 164 <tr class={cycle name=ccl} style="background-color: green;">164 <tr class={cycle name=ccl} kb-table-row-dropped"> 165 165 <td style="border: 1px solid green;" colspan="3"><div align="right"><strong>Total Module Drop:</strong></div></td> 166 166 <td style="border: 1px solid green;" align="right">{$DropValue}</td>