Location: PHPKode > projects > Monyet > plotter/jpgraph-2.2/src/Examples/listallflags_helper.php
<?php
require_once '../jpgraph.php';
require_once '../jpgraph_flags.php';

if( empty($_GET['size']) ) {
    $size = FLAGSIZE2;
}
else {
    $size = $_GET['size'];
}

if( empty($_GET['idx']) ) {
    $idx = 'ecua';
}
else {
    $idx = $_GET['idx'];
}


$flags = new FlagImages($size) ;
$img = $flags->GetImgByIdx($idx);
header ("Content-type: image/png");
ImagePng ($img);

?>
Return current item: Monyet