From d73ea11215f285a72001293eb91b32b8e56c9590 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 20 Dec 2004 16:36:25 +0000 Subject: [PATCH] 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) --- common.inc.php | 9 +++++++++ images/16/button_cancel.gif | Bin 0 -> 604 bytes images/16/button_cancel.png | Bin 0 -> 890 bytes images/16/edit.gif | Bin 0 -> 1004 bytes images/16/edit.png | Bin 0 -> 691 bytes 5 files changed, 9 insertions(+) create mode 100644 images/16/button_cancel.gif create mode 100644 images/16/button_cancel.png create mode 100644 images/16/edit.gif create mode 100644 images/16/edit.png diff --git a/common.inc.php b/common.inc.php index 3bba873..c801f47 100644 --- a/common.inc.php +++ b/common.inc.php @@ -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) diff --git a/images/16/button_cancel.gif b/images/16/button_cancel.gif new file mode 100644 index 0000000000000000000000000000000000000000..fd47e6aecaa2234e19227da46b0bf294875665e8 GIT binary patch literal 604 zcmZ?wbhEHb6krfwIL5$m$=Lk5k=YXyiwA)rccSB-m|9#hGCO5#cG=kcnV0X^6{~(c zdHVa)r(dt%eAv1BNkq&!Bhxpj8DFkm`|;?}x4ZYAR@Iz0GJERf_wmTFZ?|s!`Sj__ zxpSY-oOv7_chtn<&4kJCcI^7~_U-@w|395P{psYXCo^VUHZpr)Ve@j~;#W(S{e1D_ z{jNQ4Hf;Ri>HFW>;jxLuBQL+Fz5UN7OnNqH%8$oSK24tbEg z^*^`p--U~RJba#b`Mpca`gP;xr=I?O=2mA+%pc_BKWk`uGk@V}6Z12s7PnI~p7&08 z(Kq3=sl|Car>pUack+vXj;9?^{K>+|#Zb?n!vF-JIALJl*-+oq+|t_0z{teR!pg?p zR?or7#m&RR%f~O!E+`~Ce}RbT>?SdB2}vpG)zT|vWaXOJ= z9~4vsDJm9GRx7>;7JbkP+Mu+QmR`~(sVz2HY-G(+bJ?($Y&Py>XU2zUv`s(w-p)C2 zzH>g|HgkDfzt3^qJ_ov7Tyc@>69B6HS zJC;m7>VNSC^pJ_Cr3EXW$EnrU7o{)~akO|0?YHTG%+3Y1NA{1Xi@kk54?O4Hw->uw zMUO_&fHMW54B&e65M`20E^##hxy5;v{#mJl`=ak)tx%fr6Lg;g#w~!pcIQozb5kd zV|Y8-G4>_^SUUU>fuB#{U0MbKpQhmv>CyqwEDJ3+gBS*482AbcFgFixzOi<_@d<)Q zzxgjWR{??}qLhnVcgkg=Q&}QcuF`yIj6f)a_kU!zrs0D_{|E@^8g-|^ib!5nbZxY3 z+hq|!G=-#l(B6G#4SetwcjjO>6XKOX#$gC179UVB& zKC|Ze(EAkYb&B_NQ~Wr?>QolFuZP;6L1vY(;L(re;;|b7Fw#HJ9I+dtEjxB}8ZFVa z2y?j&MKV$;s+Y!CICn1pQ(Nnk(}~#VdX>K)*xi}5tdVd!eYe@&jmXVp*M;ijB&CUo z{OM%kz^}>p=}ab5xe4~=?gv{_wUyTcfxwV)SIYD@H3LvD6|sKLEf?#59Xp?hAD&Lc zu4FQq%7$+Q7#>U@?=)SpVYx2KHYj68q7Z QjQ{`u07*qoM6N<$g2bwzdjJ3c literal 0 HcmV?d00001 diff --git a/images/16/edit.gif b/images/16/edit.gif new file mode 100644 index 0000000000000000000000000000000000000000..b127e775a56de96495d1a6cdd6d315bf287b25ea GIT binary patch literal 1004 zcmeH`YfqA406<@ryiht+T4?IVR+}@YW|!%(Ev?yHrLEOwt2Hle*<4QZOS9I>OL;At zCZL%b;v}8ZQu8+C;u5j~UPM6@5l|5E1_rM@@R0q9K6Q3}!P(BGwA6&eYyv_+3F!iOU>n|8aCo$Z(aQV`45L681jm9L z^(1B0?dd6TPv1CnyZ5GVK{NsmMQl~YN!ZP^N`3zz&uNl5XA__(3iie>zqv6lQ!Hvs zgCmnJhs~jQ0#(V7Pr;by(5@E!>ejN(JUA?Hx?Fp}iJ4?T{Q%Bfh5U5w+l&>haap%M zr_^@$jsW1YW58yR0M#=%lVj<>DetUPs&ukhwOBgO?jEx0WOl_DyNoHL6-fmG`P>pZ zvnWATpL)J((C=L4YqX(U-pr!y+r(;Y>S$ziyrXwC z(3zFB^!@(-`3D8adpHj~;zpv8ef~ay_=*q@9Eo(Ei+CP56oySvvk@F2I5Lyl_M*(k zKRl(}mt0!zM~u4Xv==ff4wB;Y6kKv{T4i|BQzS5D(wBBLkQ$k-#Z?od3RCXzK33Em ziOUfZshPoz4D&cvNhQZr5l=qCr3D?oOg~+uwfHqeUhlld&RM}X zMn7!NQ}S6gwAd_urHJzKO311ENLjKj-k*3TUolW*^-d2qxrTrbNhP-JwR)+z URrcJ|FZ5y;wf#bfmnTB`13q5xF#rGn literal 0 HcmV?d00001 diff --git a/images/16/edit.png b/images/16/edit.png new file mode 100644 index 0000000000000000000000000000000000000000..fc9884bf3e6213a50912d2e1c2f40bfccecbef2d GIT binary patch literal 691 zcmV;k0!;mhP)2=<5S)NfCoaB4T2rZj8hPO}NBfIT z;r`Y;V-c9^BH%9wA+SsX6|8g2eTgUs@a+x3m%$_&F8zQHUHJz8fIuUv^EjE0ux+9$ zHYYi(q#zWNm4Mf>7x5 zcd&~m(XEb#Vc_&R4CV)YpbC5XaExtLNvx>;Dq~-q#yvHGVVKyqjpyYk6!N&POE#O8 z?c&2R3ULs_r^m_Pdx&s7w1QMBEXzVEjZz9BMDIJ;*xX`a;ceG%)Gb;1U_rO`jfUSt Z@CRyC1nsu*GWh@i002ovPDHLkV1nPgHi`fM literal 0 HcmV?d00001