Add images directory and size 16 icons dir

Update $config array to store the icon extension to use, based on whether MSIE or not.
  (IE cant do transparent PNG's, all other browsers can, so for IE, use GIF, else use PNG)
This commit is contained in:
james 2004-12-20 16:36:25 +00:00
parent 38638140b9
commit d73ea11215
5 changed files with 9 additions and 0 deletions

View File

@ -19,6 +19,15 @@ while($r=mysql_fetch_object($q))
$config[$r->var]=$r->val;
}
//detect the browser first, so we know what icons to use - we store this in the config array as well
//even though its not configurable by the fair
if(stristr($_SERVER['HTTP_USER_AGENT'],"MSIE"))
$config['icon_extension']="gif";
else
$config['icon_extension']="png";
//now get the languages, and make sure we have at least one active language
$q=mysql_query("SELECT * FROM languages WHERE active='Y' ORDER BY langname");
if(mysql_num_rows($q)==0)

BIN
images/16/button_cancel.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 B

BIN
images/16/button_cancel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 890 B

BIN
images/16/edit.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 B

BIN
images/16/edit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B