source: trunk/xgraph/jpgraph/Examples/listallflags_helper.php

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