Changeset 123
- Timestamp:
- 11/29/06 19:07:22 (16 years ago)
- Location:
- dev
- Files:
-
- 1 removed
- 8 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/admin_mapoptions.php
r91 r123 52 52 } 53 53 } 54 55 // on submit delete all region cache files 56 $dir = opendir('cache/map'); 57 while ($file = readdir($dir)) 58 { 59 if (strpos($file, '.png')) 60 { 61 @unlink('cache/map/'.$file); 62 } 63 } 54 64 } 55 65 -
dev/common/autoupgrade.php
r95 r123 49 49 `shp_id` INT( 11 ) NOT NULL , 50 50 `shp_value` BIGINT( 4 ) NOT NULL , 51 INDEX( `shp_id` )51 PRIMARY KEY ( `shp_id` ) 52 52 ) TYPE = MYISAM ;'; 53 53 $qry->execute($query); 54 $qry->execute('ALTER TABLE `kb3_ships_values` ADD PRIMARY KEY ( `shp_id` ) ');55 54 $qry->execute('UPDATE kb3_ships set shp_class = 8 WHERE shp_id=257 limit 1'); 56 55 $qry->execute('UPDATE kb3_ships set shp_class = 8 WHERE shp_id=252 limit 1'); -
dev/common/class.killlisttable.php
r92 r123 60 60 if (count($kills) && $this->daybreak_) 61 61 { 62 $kl[] = array('kills' => $kills, 'date' => $prevdate);62 $kl[] = array('kills' => $kills, 'date' => strtotime($prevdate)); 63 63 $kills = array(); 64 64 } … … 86 86 if (count($kills)) 87 87 { 88 $kl[] = array('kills' => $kills, 'date' => date("l, F jS", strtotime($prevdate)));88 $kl[] = array('kills' => $kills, 'date' => strtotime($prevdate)); 89 89 } 90 90 -
dev/common/class.map.php
r91 r123 132 132 header("Content-type: image/png"); 133 133 readfile($regioncache); 134 $cached = true;134 return; 135 135 } 136 136 $caption = $this->regname_; … … 216 216 $xscale = 1 / ($dx / ($this->imgwidth_ - ($this->offset_ * 2))); 217 217 $yscale = 1 / ($dz / ($this->imgheight_ - ($this->offset_ * 2))); 218 // echo "dx:".$dx." dz:".$dz." xscale:".$scale." ".$yscale."<br>"; 219 // echo "minx:".$minx." maxx:".$maxx." "; 220 // echo "minz:".$minz." maxz:".$maxz." "; 221 // exit; 222 // exit; 218 if ($_REQUEST['debug'] == 'admovrd') 219 { 220 echo "dx:".$dx." dz:".$dz."<br/> xscale:".$xscale." ".$yscale."<br/>"; 221 echo "minx:".$minx." maxx:".$maxx."<br/>"; 222 echo "minz:".$minz." maxz:".$maxz."<br/>".$sql."<br/>\n"; 223 echo nl2br(print_r($this, 1)); 224 echo nl2br(print_r($qry, 1)); 225 } 226 223 227 // draw lines 224 228 if ($this->showlines_) -
dev/common/class.ship.php
r96 r123 72 72 $this->qry_ = new DBQuery(); 73 73 74 $this->sql_ = "select * 75 from kb3_ships shp 74 $this->sql_ = "select * from kb3_ships shp 76 75 inner join kb3_ship_classes scl on shp.shp_class = scl.scl_id"; 77 76 if ($config->getConfig('ship_values')) … … 79 78 $this->sql_ .= ' left join kb3_ships_values ksv on (shp.shp_id = ksv.shp_id) '; 80 79 } 81 $this->sql_ .= " where shp.shp_id = ".$this->id_;80 $this->sql_ .= " where shp.shp_id = ".$this->id_; 82 81 83 82 $this->qry_->execute($this->sql_); -
dev/common/kill_import.php
r32 r123 118 118 { 119 119 $i++; 120 if ($i < $_SESSION['kill_import']['startnum'])120 if ($i <= $_SESSION['kill_import']['startnum']) 121 121 { 122 122 continue; 123 123 } 124 if ($i < $_SESSION['kill_import']['numcount'])124 if ($i <= $_SESSION['kill_import']['numcount']) 125 125 { 126 126 continue; … … 137 137 $inv++; 138 138 $invalid++; 139 #$html .= "Killmail is malformed: $file.<br>\n";139 $html .= "Killmail is malformed: $file.<br>\n"; 140 140 //unlink($dir.$file); 141 141 } … … 144 144 $posted++; 145 145 $posted_all++; 146 #echo "That $file killmail has already been posted <a href=\" /eve/?a=kill_detail&kll_id=" . $parser->dupeid_ . "\">here</a>.<br>\n";146 #echo "That $file killmail has already been posted <a href=\"?a=kill_detail&kll_id=" . $parser->dupeid_ . "\">here</a>.<br>\n"; 147 147 } 148 148 else -
dev/templates/admin_mapoptions.tpl
r91 r123 2 2 <b>Note:</b> You don't need to set colors if you don't want to overwrite the default.<br/> 3 3 The other settings do have an effect if they're touched though.<br/> 4 <b>Usage:</b> Input into a RGB-colorfield set of 3 values seperated by ','. If you want to have those values t hreadened as hex then put an x in front of each.4 <b>Usage:</b> Input into a RGB-colorfield set of 3 values seperated by ','. If you want to have those values treated as hex then put an x in front of each. 5 5 You can omit the 'x' if you're using A-F in the number. It also accepts html codes in the format '#RRGGBB'. If you want to turn back to the default color simply delete everything in the particular editbox.<br/> 6 6 <b>Example:</b> "34,x13,xff" will be evaluated as rgb(34,19,255). -
dev/templates/killlisttable.tpl
r86 r123 1 1 {section name=day loop=$killlist} 2 2 {if $daybreak} 3 <div class="kb-date-header">{ $killlist[day].date}</div><br/>3 <div class="kb-date-header">{"l, F jS"|date:$killlist[day].date}</div><br/> 4 4 {/if} 5 5 <table class="kb-table" width="99%" align="center" cellspacing="1">