source:
trunk/xgraph/jpgraph/Examples/listallflags_helper.php
Last change on this file was 42, checked in by , 10 years ago | |
---|---|
File size: 449 bytes |
Line | |
---|---|
1 | <?php // content="text/plain; charset=utf-8" |
2 | require_once 'jpgraph/jpgraph.php'; |
3 | require_once 'jpgraph/jpgraph_flags.php'; |
4 | |
5 | if( empty($_GET['size']) ) { |
6 | $size = FLAGSIZE2; |
7 | } |
8 | else { |
9 | $size = $_GET['size']; |
10 | } |
11 | |
12 | if( empty($_GET['idx']) ) { |
13 | $idx = 'ecua'; |
14 | } |
15 | else { |
16 | $idx = $_GET['idx']; |
17 | } |
18 | |
19 | |
20 | $flags = new FlagImages($size) ; |
21 | $img = $flags->GetImgByIdx($idx); |
22 | header ("Content-type: image/png"); |
23 | ImagePng ($img); |
24 | |
25 | ?> |
Note: See TracBrowser
for help on using the repository browser.