Blame view

site/jpgraph/Examples/listallflags_helper.php 424 Bytes
8ec98c9f   Guillaume   MAJ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  <?php // content="text/plain; charset=utf-8"
  require_once 'jpgraph/jpgraph.php';
  require_once 'jpgraph/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);
  
  ?>