Changeset 396
- Timestamp:
- 06/28/09 13:02:26 (14 years ago)
- Location:
- dev
- Files:
-
- 22 modified
Legend:
- Unmodified
- Added
- Removed
-
dev/common/admin/admin_navmanager.php
r361 r396 271 271 }elseif (ALLIANCE_ID) 272 272 { 273 $statlink = '?a=alliance_detail &';273 $statlink = '?a=alliance_detail'; 274 274 } 275 275 $qry = new DBQuery(); -
dev/common/admin/feed_fetcher.php
r394 r396 170 170 { 171 171 $qry = new DBQuery(); 172 if(strpos($uurl, '?')) $logurl = substr(substr($uurl,7,strpos($uurl, '?') - 7), 0, 20); 173 else $logurl = substr($uurl,7,20); 172 174 $qry->execute( "insert into kb3_log (log_kll_id, log_site, log_ip_address, log_timestamp) values( ". 173 $killid.", '".KB_SITE."','". substr($uurl,7,20)."',now() )" );175 $killid.", '".KB_SITE."','".$logurl."',now() )" ); 174 176 $html .= "Killmail successfully posted <a href=\"?a=kill_detail&kll_id=".$killid."\">here</a>.<br>"; 175 177 -
dev/common/admin/option_acache.php
r388 r396 7 7 options::cat('Advanced', 'Cache', 'Cache Control'); 8 8 options::fadd('Caching enabled', 'cache_enabled', 'checkbox'); 9 options::fadd('Cache lifetime (min)', 'cache_time', 'edit:size:4'); 9 10 options::fadd('Cache directory', 'cache_dir', 'edit:size:40'); 10 11 options::fadd('Ignore pages (xx,yy)', 'cache_ignore', 'edit:size:60'); 11 options::fadd('Cache times (xx:1,yy:2)', 'cache_times', 'edit:size:60'); 12 //options::fadd('Cache times (xx:1,yy:2)', 'cache_times', 'edit:size:60'); 13 options::fadd('Pages updated every kill', 'cache_update', 'edit:size:60'); 12 14 13 15 options::cat('Advanced', 'Cache', 'Query Cache'); -
dev/common/campaigns.php
r206 r396 29 29 $menubox->setIcon('menu-item.gif'); 30 30 $menubox->addOption('link', 'Active campaigns', '?a=campaigns'); 31 $menubox->addOption('link', 'Past campaigns', '?a=campaigns& view=past');31 $menubox->addOption('link', 'Past campaigns', '?a=campaigns&view=past'); 32 32 33 33 $page->addContext($menubox->generate()); -
dev/common/includes/autoupgrade.php
r382 r396 12 12 define(CURRENT_DB_UPDATE,config::get("DBUpdate")); 13 13 //Update version of this autoupgrade.php 14 define(LASTEST_DB_UPDATE,"00 7");14 define(LASTEST_DB_UPDATE,"008"); 15 15 16 16 function updateDB(){ … … 25 25 26 26 update007(); 27 update008(); 27 28 } 28 29 } … … 280 281 $qry->execute("SHOW COLUMNS FROM kb3_pilots LIKE 'plt_losspoints'"); 281 282 if($qry->recordCount()) $qry->execute("ALTER TABLE kb3_pilots DROP plt_losspoints"); 283 284 // Add corp and alliance index to kb3_inv_detail 282 285 $qry->execute("SHOW INDEX FROM kb3_inv_detail"); 283 286 284 // Add corp and alliance index to kb3_inv_detail285 287 $indexcexists = false; 286 288 $indexaexists = false; … … 336 338 } 337 339 } 340 // Add unique name indices to alliance, corp and pilot 341 // Check kb3_inv_detail has correct indices 342 function update008() 343 { 344 //Checking if this Update already done 345 if (CURRENT_DB_UPDATE < "008" ) 346 { 347 if(!config::get('008updatestatus')) config::set('008updatestatus',0); 348 $qry = new DBQuery(true); 349 350 if(config::get('008updatestatus') <1) 351 { 352 // Add pilot, corp and alliance index to kb3_inv_detail 353 // Incomplete in update007 354 $qry->execute("SHOW INDEXES FROM kb3_inv_detail"); 355 $indexcexists = false; 356 $indexaexists = false; 357 $indexpexists = false; 358 $indexkexists = false; 359 while($testresult = $qry->getRow()) 360 { 361 if($testresult['Column_name'] == 'ind_kll_id' && $testresult['Seq_in_index'] == 1) 362 $indexkexists = true; 363 if($testresult['Column_name'] == 'ind_crp_id' && $testresult['Seq_in_index'] == 1) 364 $indexcexists = true; 365 if($testresult['Column_name'] == 'ind_all_id' && $testresult['Seq_in_index'] == 1) 366 $indexaexists = true; 367 if($testresult['Column_name'] == 'ind_plt_id' && $testresult['Seq_in_index'] == 1) 368 $indexpexists = true; 369 } 370 // 371 if(!indexkexists) 372 $qry->execute("ALTER TABLE `kb3_inv_detail` ADD INDEX ( `ind_kll_id`, `ind_order` ) "); 373 if(!indexcexists) 374 $qry->execute("ALTER TABLE `kb3_inv_detail` ADD INDEX ( `ind_crp_id` ) "); 375 if(!indexaexists) 376 $qry->execute("ALTER TABLE `kb3_inv_detail` ADD INDEX ( `ind_all_id` ) "); 377 if(!indexpexists) 378 $qry->execute("ALTER TABLE `kb3_inv_detail` ADD INDEX ( `ind_plt_id` ) "); 379 config::set('008updatestatus', 1); 380 } 381 382 $qry->execute("SHOW INDEXES FROM kb3_corps"); 383 $indexaexists = false; 384 while($testresult = $qry->getRow()) 385 { 386 if($testresult['Column_name'] == 'crp_name' && $testresult['Non_unique'] == 0) 387 $indexcexists = true; 388 } 389 if(!$indexcexists) 390 { 391 $sqlcrp = 'select a.crp_id as newid, b.crp_id as oldid from kb3_corps a, kb3_corps b where a.crp_name = b.crp_name and a.crp_id < b.crp_id'; 392 393 if(config::get('008updatestatus') <2) 394 { 395 $qry->execute('update kb3_inv_detail join ('.$sqlcrp.') c on c.oldid = ind_crp_id set ind_crp_id = c.newid'); 396 config::set('008updatestatus', 2); 397 } 398 if(config::get('008updatestatus') <3) 399 { 400 $qry->execute('update kb3_pilots join ('.$sqlcrp.') c on (c.oldid = plt_crp_id) set plt_crp_id = c.newid'); 401 config::set('008updatestatus', 3); 402 } 403 if(config::get('008updatestatus') <4) 404 { 405 $qry->execute('update kb3_kills join ('.$sqlcrp.') c on (c.oldid = kll_crp_id) set kll_crp_id = c.newid'); 406 config::set('008updatestatus', 4); 407 } 408 409 if(config::get('008updatestatus') <6) 410 { 411 $qry->execute('delete b from kb3_corps a, kb3_corps b where a.crp_name = b.crp_name and a.crp_id < b.crp_id'); 412 config::set('008updatestatus', 6); 413 } 414 if(config::get('008updatestatus') <7) 415 { 416 $qry->execute("SHOW INDEXES FROM kb3_corps"); 417 $indexcexists = false; 418 while($testresult = $qry->getRow()) 419 { 420 if($testresult['Column_name'] == 'crp_name' && $testresult['Seq_in_index'] == 1) 421 { 422 $indexcname = $testresult['Key_name']; 423 $indexcexists = true; 424 } 425 // Don't replace a custom multi-column index. 426 elseif($testresult['Key_name'] == $indexcname && $testresult['Seq_in_index'] == 2) 427 $indexcexists = false; 428 } 429 if(!$indexcexists) $qry->execute("ALTER TABLE `kb3_corps` DROP INDEX `".$indexcname."`"); 430 $qry->execute("ALTER TABLE `kb3_corps` ADD UNIQUE INDEX ( `crp_name` ) "); 431 config::set('008updatestatus', 7); 432 } 433 } 434 // Make kb3_alliances.all_name unique without losing kills 435 $qry->execute("SHOW INDEXES FROM kb3_alliances"); 436 $indexaexists = false; 437 while($testresult = $qry->getRow()) 438 { 439 if($testresult['Column_name'] == 'all_name' && $testresult['Non_unique'] == 0) 440 $indexaexists = true; 441 } 442 if(!$indexaexists) 443 { 444 $sqlall = 'select a.all_id as newid, b.all_id as oldid from kb3_alliances a, kb3_alliances b where a.all_name = b.all_name and a.all_id < b.all_id'; 445 if(config::get('008updatestatus') <8) 446 { 447 $qry->execute('update kb3_inv_detail join ('.$sqlall.') c on c.oldid = ind_all_id set ind_all_id = c.newid'); 448 config::set('008updatestatus', 8); 449 } 450 if(config::get('008updatestatus') <9) 451 { 452 $qry->execute('update kb3_corps join ('.$sqlall.') c on (c.oldid = crp_all_id) set crp_all_id = c.newid'); 453 config::set('008updatestatus', 9); 454 } 455 if(config::get('008updatestatus') <10) 456 { 457 $qry->execute('update kb3_kills join ('.$sqlall.') c on (c.oldid = kll_all_id) set kll_all_id = c.newid'); 458 config::set('008updatestatus', 10); 459 } 460 461 if(config::get('008updatestatus') <12) 462 { 463 $qry->execute('delete b from kb3_alliances a, kb3_alliances b where a.all_name = b.all_name and a.all_id < b.all_id'); 464 config::set('008updatestatus', 12); 465 } 466 if(config::get('008updatestatus') <13) 467 { 468 $qry->execute("SHOW INDEXES FROM kb3_alliances"); 469 $indexaexists = false; 470 while($testresult = $qry->getRow()) 471 { 472 if($testresult['Column_name'] == 'all_name' && $testresult['Seq_in_index'] == 1) 473 { 474 $indexaname = $testresult['Key_name']; 475 $indexaexists = true; 476 } 477 // Don't replace a custom multi-column index. 478 elseif($testresult['Key_name'] == $indexaname && $testresult['Seq_in_index'] == 2) 479 $indexaexists = false; 480 } 481 if($indexaexists) $qry->execute("ALTER TABLE `kb3_alliances` DROP INDEX `".$indexaname."`"); 482 $qry->execute("ALTER TABLE `kb3_alliances` ADD UNIQUE INDEX ( `all_name` ) "); 483 config::set('008updatestatus', 13); 484 } 485 } 486 487 // Make kb3_pilots.plt_name unique without losing kills 488 $qry->execute("SHOW INDEXES FROM kb3_pilots"); 489 $indexaexists = false; 490 while($testresult = $qry->getRow()) 491 { 492 if($testresult['Column_name'] == 'plt_name' && $testresult['Non_unique'] == 0) 493 $indexaexists = true; 494 } 495 if(!$indexaexists) 496 { 497 $sqlplt = 'select a.plt_id as newid, b.plt_id as oldid from kb3_pilots a, kb3_pilots b where a.plt_name = b.plt_name and a.plt_id < b.plt_id'; 498 if(config::get('008updatestatus') <14) 499 { 500 $qry->execute('update kb3_inv_detail join ('.$sqlplt.') c on c.oldid = ind_plt_id set ind_plt_id = c.newid'); 501 config::set('008updatestatus', 14); 502 } 503 if(config::get('008updatestatus') <15) 504 { 505 $qry->execute('update kb3_kills join ('.$sqlplt.') c on (c.oldid = kll_victim_id) set kll_victim_id = c.newid'); 506 config::set('008updatestatus', 15); 507 } 508 if(config::get('008updatestatus') <16) 509 { 510 $qry->execute('update kb3_kills join ('.$sqlplt.') c on (c.oldid = kll_fb_plt_id) set kll_fb_plt_id = c.newid'); 511 config::set('008updatestatus', 16); 512 } 513 if(config::get('008updatestatus') <17) 514 { 515 $qry->execute('delete b from kb3_pilots a, kb3_pilots b where a.plt_name = b.plt_name and a.plt_id < b.plt_id'); 516 config::set('008updatestatus', 17); 517 } 518 if(config::get('008updatestatus') <18) 519 { 520 $qry->execute("SHOW INDEXES FROM kb3_pilots"); 521 $indexpexists = false; 522 while($testresult = $qry->getRow()) 523 { 524 if($testresult['Column_name'] == 'plt_name' && $testresult['Seq_in_index'] == 1) 525 { 526 $indexpname = $testresult['Key_name']; 527 $indexpexists = true; 528 } 529 // Don't replace a custom multi-column index. 530 elseif($testresult['Key_name'] == $indexpname && $testresult['Seq_in_index'] == 2) 531 $indexpexists = false; 532 } 533 if($indexpexists) $qry->execute("ALTER TABLE `kb3_pilots` DROP INDEX `".$indexpname."`"); 534 $qry->execute("ALTER TABLE `kb3_pilots` ADD UNIQUE INDEX ( `plt_name` ) "); 535 config::set('008updatestatus', 18); 536 } 537 } 538 config::del("008updatestatus"); 539 config::set('cache_update', '*'); 540 config::set('cache_time', '10'); 541 config::set("DBUpdate", "008"); 542 } 543 } 338 544 339 545 function update_slot_of_group($id,$oldSlot = 0 ,$newSlot){ -
dev/common/includes/class.cache.php
r390 r396 66 66 mkdir(KB_CACHEDIR.'/'.KB_SITE); 67 67 } 68 // Include session info in the hash to support session-based security. 69 $cachefile = cache::genCacheName(); 68 69 $cachefile = cache::genCacheName(); 70 /* 70 71 $times = explode(',', config::get('cache_times')); 71 72 foreach ($times as $string) … … 83 84 $cachetime = 10; 84 85 } 86 */ 87 $cachetime = config::get('cache_time'); 85 88 $cachetime = $cachetime * 60; 86 89 … … 94 97 if(file_exists($cachefile)) $timestamp = @filemtime($cachefile); 95 98 else $timestamp = 0; 96 //$timestamp = ((@file_exists($cachefile))) ? @filemtime($cachefile) : 0; 99 100 if(config::get('cache_update') == '*') 101 if(file_exists(KB_CACHEDIR.'/'.KB_SITE.'/killadded.mk')) 102 if($timestamp < @filemtime(KB_CACHEDIR.'/'.KB_SITE.'/killadded.mk')) 103 $timestamp = 0; 104 else 105 { 106 $cacheupdate = explode(',', config::get('cache_update')); 107 if (($page != '' && in_array($page, $cacheupdate))) 108 if(file_exists(KB_CACHEDIR.'/'.KB_SITE.'/killadded.mk')) 109 if($timestamp < @filemtime(KB_CACHEDIR.'/'.KB_SITE.'/killadded.mk')) 110 $timestamp = 0; 111 } 97 112 if (time() - $cachetime < $timestamp) 98 113 { … … 158 173 touch(genCacheName()); 159 174 } 175 //! Notify the cache that a kill has been added. 176 function notifyKillAdded() 177 { 178 touch(KB_CACHEDIR.'/'.KB_SITE.'/killadded.mk'); 179 } 160 180 } 161 181 ?> -
dev/common/includes/class.kill.php
r392 r396 6 6 require_once('common/includes/class.system.php'); 7 7 require_once('common/includes/class.pilot.php'); 8 require_once('common/includes/class.killlist.php');8 //require_once('common/includes/class.killlist.php'); 9 9 require_once('common/includes/class.itemlist.php'); 10 require_once('common/includes/class.cache.php'); 10 11 11 12 class Kill … … 1101 1102 // call the event that we added this mail 1102 1103 event::call('killmail_added', $this); 1104 cache::notifyKillAdded(); 1103 1105 return $this->id_; 1104 1106 } -
dev/common/includes/class.killlist.php
r392 r396 139 139 if( $datefilter == "" && ( $this->inv_plt_ || $this->inv_crp_ || $this->inv_all_)) 140 140 { 141 if($this->inv_plt_) $this->sql_ .= "INNER JOIN kb3_inv_detail ind ". 141 $this->sql_ .= " INNER JOIN "; 142 if($this->inv_plt_ && !($this->inv_crp_ || $this->inv_all_)) 143 { 144 $this->sql_ .= " kb3_inv_detail ind ". 142 145 "ON (kll.kll_id = ind.ind_kll_id AND ind.ind_plt_id IN (". 143 146 implode(',', $this->inv_plt_)." ) ) "; 144 if($this->inv_crp_) $this->sql_ .= "INNER JOIN (SELECT DISTINCT ind_kll_id FROM kb3_inv_detail WHERE ind_crp_id IN (". 145 implode(',', $this->inv_crp_)." ) ) ind ". 146 "ON (kll.kll_id = ind.ind_kll_id) "; 147 if($this->inv_all_) $this->sql_ .= "INNER JOIN (SELECT DISTINCT ind_kll_id FROM kb3_inv_detail WHERE ind_all_id IN (". 148 implode(',', $this->inv_all_)." ) ) ind ". 149 "ON (kll.kll_id = ind.ind_kll_id)"; 147 } 148 else 149 { 150 $unionop = " ( "; 151 if($this->inv_plt_) 152 { 153 $indsqlp .= $unionop." SELECT DISTINCT ind_kll_id ". 154 "FROM kb3_inv_detail ". 155 "WHERE ind_plt_id IN (".implode(',', $this->inv_plt_)." ) "; 156 $unionop = " UNION "; 157 } 158 if($this->inv_crp_) 159 { 160 $this->sql_ .= $unionop." SELECT DISTINCT ind_kll_id ". 161 "FROM kb3_inv_detail WHERE ind_crp_id IN (". 162 implode(',', $this->inv_crp_)." ) "; 163 $unionop = " UNION "; 164 } 165 if($this->inv_all_) $this->sql_ .= $unionop." SELECT DISTINCT ind_kll_id FROM kb3_inv_detail WHERE ind_all_id IN (". 166 implode(',', $this->inv_all_).") "; 167 $this->sql_ .= ") ind ON (kll.kll_id = ind.ind_kll_id) "; 168 } 150 169 } 151 170 // The first argument after WHERE affects sql optimisation so check … … 175 194 if($this->vic_plt_ || $this->vic_crp_ || $this->vic_all_) 176 195 { 177 if ($this->mixedvictims_) 178 { 179 $this->sql_ .= $sqlwhereop." ( "; 180 $sqlwhereop = ""; 181 } 182 183 if ($this->vic_plt_) 184 {$this->sql_ .= " ".$sqlwhereop." kll.kll_victim_id in ( ".implode(',', $this->vic_plt_)." )"; $sqlwhereop = " OR ";} 185 if ($this->vic_crp_) 186 {$this->sql_ .= " ".$sqlwhereop." kll.kll_crp_id in ( ".implode(',', $this->vic_crp_)." )"; $sqlwhereop = " OR ";} 187 if ($this->vic_all_) 188 {$this->sql_ .= " ".$sqlwhereop." kll.kll_all_id in ( ".implode(',', $this->vic_all_)." )"; $sqlwhereop = " OR ";} 189 $sqlwhereop = ' AND '; 190 if ($this->mixedvictims_) 191 $this->sql_ .= " ) "; 196 $this->sql_ .= $sqlwhereop." ( "; 197 $sqlwhereop = ""; 198 199 if ($this->vic_plt_) 200 {$this->sql_ .= " ".$sqlwhereop." kll.kll_victim_id in ( ".implode(',', $this->vic_plt_)." )"; $sqlwhereop = " OR ";} 201 if ($this->vic_crp_) 202 {$this->sql_ .= " ".$sqlwhereop." kll.kll_crp_id in ( ".implode(',', $this->vic_crp_)." )"; $sqlwhereop = " OR ";} 203 if ($this->vic_all_) 204 {$this->sql_ .= " ".$sqlwhereop." kll.kll_all_id in ( ".implode(',', $this->vic_all_)." )"; $sqlwhereop = " OR ";} 205 206 $sqlwhereop = ' AND '; 207 $this->sql_ .= " ) "; 192 208 } 193 209 … … 239 255 if($this->inv_plt_ || $this->inv_crp_ || $this->inv_all_) 240 256 { 257 if($this->inv_all_ && $this->inv_crp_) 258 { 259 $this->sql_ .= $sqlwhereop." ( "; 260 $sqlwhereop = ''; 261 } 262 // No need to check the involved pilot since they can't shoot themself and get a killmail. 241 263 if ($this->inv_all_) 242 264 { … … 249 271 $sqlwhereop = ' AND '; 250 272 } 251 if( $datefilter != "" || $this->vic_plt_ || $this->vic_crp_ || $this->vic_all_) 273 if($this->inv_all_ && $this->inv_crp_) $this->sql_ .= ") "; 274 if( $datefilter != "") 252 275 { 253 276 $this->sql_ .= $sqlwhereop." EXISTS (SELECT 1 FROM kb3_inv_detail exind ". … … 264 287 } 265 288 } 266 // This will scan the entire table if LIMIT or a date filter are not used. 289 // This may scan the entire table if LIMIT or a date filter are not used. 290 // Some queries combining groups will be slow on mysql versions < 5 without index merge. 267 291 if($this->comb_plt_ || $this->comb_crp_ || $this->comb_all_) 268 292 { 269 293 $this->sql_ .= $sqlwhereop." ( "; 270 $sqlwhereop = ""; 294 $sqlwhereop = " OR "; 295 $sqlexistop = "EXISTS ( SELECT 1 FROM kb3_inv_detail cind WHERE kll.kll_id = cind.ind_kll_id AND ("; 271 296 if($this->comb_plt_) 272 297 { 273 $this->sql_ .= " EXISTS (SELECT 1 FROM kb3_inv_detail cind 274 WHERE cind.ind_plt_id in ( ".implode(',', $this->comb_plt_)." ) and kll.kll_id = cind.ind_kll_id LIMIT 1) OR "; 275 $this->sql_ .= "kll.kll_victim_id in ( ".implode(',', $this->comb_plt_)." ) "; 298 $this->sql_ .= $sqlexistop." cind.ind_plt_id in ( ".implode(',', $this->comb_plt_)." )"; 299 $sqlexistop = " OR "; 300 } 301 if($this->comb_crp_) 302 { 303 $this->sql_ .= $sqlexistop." cind.ind_crp_id in ( ".implode(',', $this->comb_crp_)." )"; 304 $sqlexistop = " OR "; 305 } 306 if($this->comb_all_) 307 { 308 $this->sql_ .= $sqlexistop." cind.ind_all_id in ( ".implode(',', $this->comb_all_)." )"; 309 } 310 $this->sql_ .= " ) )"; 311 if($this->comb_plt_) 312 { 313 $this->sql_ .= $sqlwhereop."kll.kll_victim_id in ( ".implode(',', $this->comb_plt_)." ) "; 276 314 $sqlwhereop = " OR "; 277 315 } 278 316 if($this->comb_crp_) 279 317 { 280 $this->sql_ .= $sqlwhereop." EXISTS (SELECT 1 FROM kb3_inv_detail cind 281 WHERE cind.ind_crp_id in ( ".implode(',', $this->comb_crp_)." ) and kll.kll_id = cind.ind_kll_id LIMIT 1) OR "; 282 $this->sql_ .= "kll.kll_crp_id in ( ".implode(',', $this->comb_crp_)." ) "; 318 $this->sql_ .= $sqlwhereop."kll.kll_crp_id in ( ".implode(',', $this->comb_crp_)." ) "; 283 319 $sqlwhereop = " OR "; 284 320 } 285 321 if($this->comb_all_) 286 322 { 287 $this->sql_ .= $sqlwhereop." EXISTS (SELECT 1 FROM kb3_inv_detail cind 288 WHERE cind.ind_all_id in ( ".implode(',', $this->comb_all_)." ) and kll.kll_id = cind.ind_kll_id LIMIT 1) OR "; 289 $this->sql_ .= "kll.kll_all_id in ( ".implode(',', $this->comb_all_)." ) "; 323 $this->sql_ .= $sqlwhereop."kll.kll_all_id in ( ".implode(',', $this->comb_all_)." ) "; 290 324 } 291 325 $this->sql_ .= " )"; -
dev/common/includes/class.pilot.php
r379 r396 60 60 if (!$this->externalid_) 61 61 { 62 require_once("class.api.php"); 63 $api = new Api(); 64 $id = $api->getCharId($this->getName()); 65 if ($id > 0) 66 $this->setCharacterID($id); 67 return '?a=thumb&id='.$id.'&size='.$size; 68 62 return '?a=thumb&id='.$this->id_.'&size='.$size.'&int=1'; 69 63 } 70 64 else … … 72 66 if( file_exists('cache/portraits/'.$this->externalid_.'_'.$size.'.jpg')) 73 67 return 'cache/portraits/'.$this->externalid_.'_'.$size.'.jpg'; 74 else return '?a=thumb& id='.$this->externalid_.'&size='.$size;68 else return '?a=thumb&id='.$this->externalid_.'&size='.$size; 75 69 } 76 70 } -
dev/common/includes/class.thumb.php
r370 r396 210 210 } 211 211 } 212 213 class thumbInt extends thumb 214 { 215 function thumbInt($int_id, $size) 216 { 217 require_once('common/includes/class.pilot.php'); 218 $pilot = new Pilot($int_id); 219 $this->_id = $pilot->getExternalID(); 220 $this->_size = $size; 221 $this->_type = 'pilot'; 222 $this->_encoding = 'jpeg'; 223 224 $this->validate(); 225 } 226 } 212 227 ?> -
dev/common/includes/globals.php
r394 r396 7 7 else 8 8 { 9 $svn_rev = '39 4';9 $svn_rev = '396'; 10 10 } 11 11 define('SVN_REV', $svn_rev); -
dev/common/thumb.php
r190 r396 2 2 require_once('common/includes/class.thumb.php'); 3 3 4 $thumb = new thumb($_GET['id'], $_GET['size'], $_GET['type']); 4 if(isset($_GET['int'])) $thumb = new thumbInt(intval($_GET['id']), intval($_GET['size'])); 5 else $thumb = new thumb(intval($_GET['id']), intval($_GET['size']), slashfix($_GET['type'])); 5 6 $thumb->display(); 6 7 ?> -
dev/mods/apiuser/checkphpbb.php
r365 r396 1 <? 1 <?php 2 2 print $_SESSION['phpOK'].'@'; 3 3 ?> -
dev/mods/apiuser/phpbbaccess.php
r365 r396 1 <? 1 <?php 2 2 //debut Mod PHPBB 3 3 // Gestion de la page -
dev/mods/example_mod/settings.php
r207 r396 1 <? 1 <?php 2 2 require_once( "common/admin/admin_menu.php" ); 3 3 -
dev/mods/forum_post/forum_post.php
r281 r396 1 popup| <? 1 popup| <?php 2 2 require_once('common/includes/class.killlist.php'); 3 3 require_once('common/includes/class.killlisttable.php'); -
dev/mods/forum_post/settings.php
r227 r396 1 <? 1 <?php 2 2 require_once( "common/admin/admin_menu.php" ); 3 3 require_once("common/includes/class.ship.php"); -
dev/templates/award_box.tpl
r390 r396 1 <!-- award_box.tpl --> 2 <p> 1 <!-- award_box.tpl --> 3 2 <table class=kb-table width=150 cellspacing="1"> 4 3 <tr> -
dev/templates/icon24.tpl
r370 r396 1 < divclass="item-icon" style="position:absolute; border: none; height:24px; width:24px; text-align:left;">1 <span class="item-icon" style="position:absolute; border: none; height:24px; width:24px; text-align:left;"> 2 2 <img border="0" style="position:absolute; left:-4px; top:-4px; height:32; width:32; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader( 3 3 src='{$icon}', sizingMethod='image');" src="{$icon}" alt=""> 4 4 <img border="0" style="position:absolute; height:24px; width:24px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader( 5 5 src='{$img}', sizingMethod='image');" src='{$img}' title="{$name}" alt="{$name}"> 6 </ div>6 </span> -
dev/templates/icon32.tpl
r370 r396 1 < divclass="item-icon" style="position:absolute; border: none; height:32px; width:32px; text-align:left;">1 <span class="item-icon" style="position:absolute; border: none; height:32px; width:32px; text-align:left;"> 2 2 <img border="0" style="position:absolute; height:32px; width:32px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader( 3 3 src='{$img}', sizingMethod='image');" src='{$img}' alt=""> 4 4 <img border="0" style="position:absolute; height:32px; width:32px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader( 5 5 src='{$icon}', sizingMethod='image');" src='{$icon}' title="{$name}" alt="{$name}"> 6 </ div>6 </span> -
dev/templates/icon48.tpl
r370 r396 1 < divclass="item-icon" style="position:absolute; border: none; height:48px; width:48px; text-align:left;">1 <span class="item-icon" style="position:absolute; border: none; height:48px; width:48px; text-align:left;"> 2 2 <img border="0" style="position:absolute; height:48px; width:48px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader( 3 3 src='{$img}', sizingMethod='image');" src='{$img}' alt=""> 4 4 <img border="0" style="position:absolute; height:48px; width:48px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader( 5 5 src='{$icon}', sizingMethod='image');" src='{$icon}' title="{$name}" alt="{$name}"> 6 </ div>6 </span> -
dev/templates/summarytable.tpl
r393 r396 1 <!-- summarytable. php--><table class=kb-subtable width="100%" border="0" cellspacing=0>1 <!-- summarytable.tpl --><table class=kb-subtable width="100%" border="0" cellspacing=0> 2 2 <tr> 3 3 <td valign=top width="{$width}%"> … … 66 66 {/if} 67 67 {if $clearfilter}<table align=center><tr><td align=center valign=top class=weeknav>[<a href="{$clearfilter}">clear filter</a>]</td></tr></table>{/if} 68 <!-- /summarytable. php-->68 <!-- /summarytable.tpl -->