Show
Ignore:
Timestamp:
01/03/07 09:06:54 (14 years ago)
Author:
exi
Message:

Added options to show loss and totalpoints in pilot details.
Tidied up class.box.php.
class.kill.php now checks better for item location ids.
Added victimalliancename to the killlisttable.
The signature generator now paints error messages if he doesnt like stuff.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/mods/signature_generator/sig.php

    r98 r165  
    66$sig_name = str_replace('.', '', $sig_name); 
    77$sig_name = str_replace('/', '', $sig_name); 
    8 $sig_name = str_replace('/', '', $sig_name); 
     8 
     9function errorPic($string) 
     10{ 
     11    $im = imagecreate(200, 60); 
     12    $black = imagecolorallocate($im, 0, 0, 0); 
     13    $red = imagecolorallocate($im, 250, 200, 20); 
     14    imagefill($im, 1, 1, $black); 
     15    imagestring($im, 3, 10, 10, 'Error: '.$string, $red); 
     16    header('Content-Type: image/jpeg'); 
     17    imagejpeg($im); 
     18    exit; 
     19} 
    920 
    1021if (!$plt_id = $_GET['i']) 
    1122{ 
    12     header('Location: mods/signature_generator/error.jpg'); 
    13     exit; 
     23    errorPic('No pilot id specified.'); 
    1424} 
    1525require_once("common/class.pilot.php"); 
     
    2131if (!$pilot->exists()) 
    2232{ 
    23     header('Location: mods/signature_generator/error.jpg'); 
    24     exit; 
     33    errorPic('That pilot doesnt exist.'); 
    2534} 
    2635$corp = $pilot->getCorp(); 
     
    3039if (ALLIANCE_ID && $alliance->getID() != ALLIANCE_ID) 
    3140{ 
    32     header('Location: mods/signature_generator/error.jpg'); 
    33     exit; 
     41    errorPic('Wrong alliance.'); 
    3442} 
    3543elseif (CORP_ID && $corp->getID() != CORP_ID) 
    3644{ 
    37     header('Location: mods/signature_generator/error.jpg'); 
    38     exit; 
     45    errorPic('Wrong corporation.'); 
    3946} 
    4047 
     
    6471if (!is_dir('mods/signature_generator/signatures/'.$sig_name)) 
    6572{ 
    66     header('Location: mods/signature_generator/error.jpg'); 
    67     exit; 
     73    errorPic('Template not found.'); 
    6874} 
    6975