Show
Ignore:
Timestamp:
11/25/06 16:03:34 (14 years ago)
Author:
exi
Message:

Created a signature generator list.
Removed the fonts and adjusted the signature generator default theme to bring his own fonts.

Files:
1 modified

Legend:

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

    r72 r87  
    4848    if (time() - $age < 30*60) 
    4949    { 
    50         header('Content-Type: image/jpg'); 
     50        if (file_exists('mods/signature_generator/signatures/'.$sig_name.'/typ.png')) 
     51        { 
     52            header('Content-Type: image/png'); 
     53        } 
     54        else 
     55        { 
     56            header('Content-Type: image/jpeg'); 
     57        } 
    5158        readfile('cache/data/sig_'.$id.'_'.$plt_id); 
    5259        return; 
     
    6168} 
    6269 
     70// let the template do the work, we just output $im 
    6371require('mods/signature_generator/signatures/'.$sig_name.'/'.$sig_name.'.php'); 
    6472 
    65 header('Content-Type: image/jpg'); 
     73if (file_exists('mods/signature_generator/signatures/'.$sig_name.'/typ.png')) 
     74{ 
     75    header('Content-Type: image/png'); 
     76} 
     77else 
     78{ 
     79    header('Content-Type: image/jpeg'); 
     80} 
    6681imagejpeg($im, 'cache/data/sig_'.$id.'_'.$plt_id, 95); 
    6782readfile('cache/data/sig_'.$id.'_'.$plt_id);