This file is indexed.

/usr/share/ltsp-cluster-control/Admin/util/HWGroupManagerView.php is in ltsp-cluster-control 2.0.3-0ubuntu1.

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
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php
/*
# Copyright 2006, CRIM,Martin Rioux
#
# This file is part of the MILLE-XTERM distribution.
# See the MILLE-XTERM (english) and/or the MILLE (french) project web site
#
# http://www.revolutionlinux.com/mille-xterm/
# http://www.mille.ca/
#
# The MILLE-XTERM framework is covered by the GNU General Public License. See
# the COPYING file in the top-level MILLE-XTERM directory. Software packages
# that are included in the MILLE-XTERM distribution have their own licenses.
#
# -------------------------------------------------------------------------
*/

function printHwGroupInput(&$hwGroupRule,$id) {
?>
	<tr valign="top">
	<td>
	  <input type="checkbox" name="selection[]" value="<?= $id ?>"/>
	</td>
<?php
			if ($hwGroupRule->getHwKey()) {
				$key = "value=".qstr($hwGroupRule->getHwKey())."";
			}
			else {
				$key = "";
			}
			if ($hwGroupRule->getHwValue()) {
				$value = "value=".qstr($hwGroupRule->getHwValue())."";
			}
			else {
				$value = "";
			}
?>
	<td>
	  <input type="text" name="key<?= $id ?>" <?= $key ?> />
	  <!--input type="hidden" name="hiddenkey<?= $id ?>" <?= $value ?> /-->
	<?php
	$opers = $hwGroupRule->getOperators();
	if(!empty($opers)){
	?>
	<select name="operator<?= $id ?>" id="operator<?= $id ?>">
	  	<?php
	  	foreach ($hwGroupRule->getOperators() as $operator) {
	  	?>
  		<option value="<?=$operator?>" <?php if(trim($operator) == trim($hwGroupRule->getOperator())) print 'selected="selected"';?>><?=$operator?></option>
  		<?php
	  	}
  		?>
	</select>
	<?php
	}
	?>
	<input type="text" name="value<?= $id ?>" <?= $value ?> />
	</td>

<?php
	if (strtolower(get_class($hwGroupRule))== "???") {
?>
	<input type="hidden" name="newAttributes[]" value="<?= $attribute->getAttributeDefID() ?>">
<?php
	}
?>
	</tr>
<?php
}
?>
<h3><?= getMessage('configuration_manage_hwg_rule') ?></h3>
<form  name="hwGroupRules" action="admin.php?<?= getGETParam() ?>" method="post">
<table border=0>
<?php
if (is_array($this->hwGroupRules)){
	$id=0;
	foreach ($this->hwGroupRules as $hwGroupRule) {
		printHwGroupInput($hwGroupRule,++$id);
	}
}

?>
</table>
<p>
<?php if(is_array($this->hwGroupRules)) { ?>
<input type="submit" name="delete_hwg" value="<?= getMessage('delete') ?>" />
<input type="submit" name="modify_hwg" value="<?= getMessage('modify') ?>" />
<input type="submit" name="cancel" value="<?= getMessage('cancel') ?>" />
<?php } ?>
</p>
<p>
<?= getMessage('set_hwgroup_key') ?>
	<input type="text" name="hwGroupKey" value="key" />
	<?php
	if(!empty($this->operators)){
	?>
	<select name="hwGroupOperator" id="operator">
	  	<?php
	  	foreach ($this->operators as $operator) {
	  	?>
  		<option value="<?=$operator?>"><?=$operator?></option>
  		<?php
	  	}
  		?>
	</select>
	<?php
	}
	?>
	<input type="text" name="hwGroupValue" value="Value" />
	<input type="submit" name="add_hwg" value="<?= getMessage("add") ?>" />
</p>
</form>

<?php $this->printErrors(); ?>
<hr size="1" noshade="noshade" width="66%" align="left" />