# HG changeset patch # User Dominic Cleal # Date 1232889247 0 # Node ID de10d02dc7154f446197130a7304b8be2e9bbe4f # Parent 6b98a17fbe22b5425c69cbe2d134898bafb16907 Using item images for non-IGB browsers diff -r 6b98a17fbe22 -r de10d02dc715 reproctool.cgi --- a/reproctool.cgi Sun Jan 25 13:06:33 2009 +0000 +++ b/reproctool.cgi Sun Jan 25 13:14:07 2009 +0000 @@ -122,6 +122,8 @@ END +my $igb = ($ENV{HTTP_USER_AGENT} =~ /EVE-minibrowser/i); + for my $item (@output) { if ($col == $cols) @@ -135,8 +137,16 @@ if (defined $item->{id}) { $style = "meta$item->{meta}"; - $img = "typeicon:$item->{id}"; - $link = "showinfo:$item->{id}"; + if ($igb) + { + $img = "typeicon:$item->{id}"; + $link = "showinfo:$item->{id}"; + } + else + { + $img = "$img_http_path/icons/icons_items_png/64_64/icon$item->{icon}.png"; + } + if ($item->{meta} == 4) { $text = $item->{name};