Changeset 391

Show
Ignore:
Timestamp:
06/24/09 14:17:02 (11 years ago)
Author:
kovell
Message:

Fixes: kill_detail comment posting works and non-existent kll_id gives correct error, t3 subsystems have correct location, potential conflicts with old mods and db classes removed.

Location:
dev
Files:
12 modified

Legend:

Unmodified
Added
Removed
  • dev/common/includes/class.db.mysqli.php

    r370 r391  
    22// mssql: select SCOPE_IDENTITY() AS id 
    33// postgresql: INSERT INTO mytable (lastname) VALUES ('Cher') RETURNING id; 
     4 
     5require_once('db.php'); 
    46 
    57//! mysqli connection class. 
  • dev/common/includes/class.db.php

    r370 r391  
    11<?php 
     2require_once('db.php'); 
    23 
    34class DBConnection 
  • dev/common/includes/class.db_cache.php

    r370 r391  
    11<?php 
     2 
     3require_once('db.php'); 
    24 
    35//! mysqli file-cached query class. Manages SQL queries to a MySQL DB using mysqli. 
  • dev/common/includes/class.db_memcache.php

    r370 r391  
    11<?php 
     2 
     3require_once('db.php'); 
    24 
    35class DBMemcachedQuery 
  • dev/common/includes/globals.php

    r386 r391  
    77else 
    88{ 
    9         $svn_rev = '386'; 
     9        $svn_rev = '391'; 
    1010} 
    1111define('SVN_REV', $svn_rev); 
  • dev/common/kill_detail.php

    r388 r391  
    11<?php 
    22require_once('common/includes/class.kill.php'); 
     3 
     4$page = new Page('Kill details'); 
    35 
    46$kll_id = intval($_GET['kll_id']); 
     
    4042require_once('common/includes/class.corp.php'); 
    4143require_once('common/includes/class.alliance.php'); 
    42  
    43 $page = new Page('Kill details'); 
    4444 
    4545if(config::get('kd_lgreen')) 
     
    240240        $i_name = $item->getName(); 
    241241                $i_location = $destroyed->getLocationID(); 
     242                if($i_location == 7) $i_location = 4; 
    242243                $i_id = $item->getID(); 
    243244                $i_usedgroup = $item->get_used_launcher_group(); 
     
    313314        $i_name = $item->getName(); 
    314315        $i_location = $dropped->getLocationID(); 
     316        if($i_location == 7) $i_location = 4; 
    315317        $i_id = $item->getID(); 
    316318        $i_usedgroup = $item->get_used_launcher_group(); 
  • dev/mods/apoc_fitting/kill_detail.php

    r388 r391  
    11<?php 
    22require_once('common/includes/class.kill.php'); 
     3 
     4$page = new Page('Kill details'); 
    35 
    46$kll_id = intval($_GET['kll_id']); 
  • dev/mods/ext_fitting/kill_detail.php

    r370 r391  
    257257        } 
    258258        $i_name = $item->getName(); 
    259         $i_location = $destroyed->getLocationID(); 
    260         $i_id = $item->getID(); 
    261         $i_usedgroup = $item->get_used_launcher_group($i_name); 
    262         $dest_array[$i_location][] = array('Icon' => $item->getIcon(32), 'Name' => $i_name, 'Quantity' => $i_qty, 'Value' => $formatted, 'single_unit' => $value, 'itemID' => $i_id,'slotID' => $i_location); 
     259                $i_location = $destroyed->getLocationID(); 
     260                if($i_location == 7) $i_location = 4; 
     261                $i_id = $item->getID(); 
     262                $i_usedgroup = $item->get_used_launcher_group($i_name); 
     263                $dest_array[$i_location][] = array('Icon' => $item->getIcon(32), 'Name' => $i_name, 'Quantity' => $i_qty, 'Value' => $formatted, 'single_unit' => $value, 'itemID' => $i_id,'slotID' => $i_location); 
    263264                 
    264265                //Fitting, KE - add destroyed items to an array of all fitted items. 
     
    317318        } 
    318319        $i_name = $item->getName(); 
    319         $i_location = $dropped->getLocationID(); 
    320         $i_id = $item->getID(); 
    321         $i_usedgroup = $item->get_used_launcher_group($i_name); 
     320                $i_location = $dropped->getLocationID(); 
     321                if($i_location == 7) $i_location = 4; 
     322                $i_id = $item->getID(); 
     323                $i_usedgroup = $item->get_used_launcher_group($i_name); 
    322324        $drop_array[$i_location][] = array('Icon' => $item->getIcon(32), 'Name' => $i_name, 'Quantity' => $i_qty, 'Value' => $formatted, 'single_unit' => $value, 'itemID' => $i_id,'slotID' => $i_location); 
    323325                 
  • dev/mods/signature_generator/sig.php

    r390 r391  
    3333    errorPic('That pilot doesnt exist.'); 
    3434} 
    35 $pilot->getPortraitURL(128); 
     35$pilot->getPortraitURL(256); 
    3636$corp = $pilot->getCorp(); 
    3737$alliance = $corp->getAlliance(); 
  • dev/mods/value_fetch/cron.php

    r338 r391  
    2020 
    2121require_once('kbconfig.php'); 
    22 require_once('common/includes/class.db.php'); 
     22require_once('common/includes/db.php'); 
    2323require_once('mods/value_fetch/fetcher.php'); 
    2424