This file is indexed.

/usr/share/arc/ldap-monitor/mon-icons/icon_bar.php is in nordugrid-arc-ldap-monitor 5.0.5-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
 
// Author: oxana.smirnova@quark.lu.se

/**
 * @return void
 * @param x int
 * @param xg int
 * @param y int
 * @param text string
 * @desc Plots an occupancy bar (PNG)
 */
function do_bar ($x, $xg, $y, $text)
{
  /**
   * Input:
   *        x    - total occupancy
   *        xg   - dedicated occupancy (Grid)
   *        y    - bar width
   *        text - occupancy figure
   */
  header ("Content-type: image/png");
  $x1 = ceil($x*200);
  $x2 = 200-$x1;
  //  $x3 = $x1-8;
  $x3 = 92;
  $xg1 = ceil($xg*200);
  // if ($text > 9) {$x3 = $x1-16;}
  if (strlen($text) > 5) $x3 = 84;
  if (strlen($text) > 10) $x3 = 36;
  $im      = @imagecreate(200,$y);
  $bgcolor = imagecolorallocate($im,204,204,204);
  $red     = imagecolorallocate($im,97,144,0);
  $grey    = imagecolorallocate($im,176,176,176);
  //  $white   = imagecolorallocate($im,255,255,255);
  $white   = imagecolorallocate($im,48,48,48);
  if ( $x1 < $x3 ) $white   = imagecolorallocate($im,82,82,82);
  if ( $x1 )  imagefilledrectangle($im,0,0,$x1,$y,$grey);
  if ( $xg1 ) imagefilledrectangle($im,0,0,$xg1,$y,$red);
  imagestring ($im, 3, $x3, 0, $text, $white);
  imagepng ($im);
  ImageDestroy($im);
}

$x    = $_GET["x"];
$xg   = $_GET["xg"];
$y    = $_GET["y"];
$text = $_GET["text"];
do_bar($x,$xg,$y,$text);

?>