| Conditions | 4 |
| Paths | 4 |
| Total Lines | 22 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | function pix_url($pixname, $size = 16) |
||
| 34 | { |
||
| 35 | global $_configuration; |
||
| 36 | |||
| 37 | if (file_exists( |
||
| 38 | $_configuration['root_sys'].'/plugin/customplugin/pix/'.$pixname.'.png' |
||
| 39 | )) { |
||
| 40 | return $_configuration['root_web'].'/plugin/customplugin/pix/'.$pixname.'.png'; |
||
| 41 | } |
||
| 42 | if (file_exists( |
||
| 43 | $_configuration['root_sys'].'/plugin/customplugin/pix/'.$pixname.'.jpg' |
||
| 44 | )) { |
||
| 45 | return $_configuration['root_web'].'/plugin/customplugin/pix/'.$pixname.'.jpg'; |
||
| 46 | } |
||
| 47 | if (file_exists( |
||
| 48 | $_configuration['root_sys'].'/plugin/customplugin/pix/'.$pixname.'.gif' |
||
| 49 | )) { |
||
| 50 | return $_configuration['root_web'].'/plugin/customplugin/pix/'.$pixname.'.gif'; |
||
| 51 | } |
||
| 52 | |||
| 53 | return $_configuration['root_web'].'/main/img/icons/'.$size.'/'.$pixname.'.png'; |
||
| 54 | } |
||
| 55 | } |