/usr/share/gosa/plugins/addons/goto/deploy-list.tpl is in gosa-plugin-goto 2.7.4+reloaded2-1+deb8u2.
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 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | <div id="mainlist">
<div class="mainlist-header">
<p>{$HEADLINE} {$SIZELIMIT}</p>
<div class="mainlist-nav">
<table summary="{$HEADLINE}">
<tr>
<td>{$RELOAD}</td>
<td class="left-border">{$ACTIONS}</td>
</tr>
</table>
</div>
</div>
{$LIST}
</div>
<div class="clear"></div>
<input type="hidden" name="ignore">
<!--
JS to reload the progress bars.
-->
{literal}
<script type="text/javascript">
/* Get request object handler for this type of browser
*/
if (typeof XMLHttpRequest != 'undefined')
{
xmlHttpObject = new XMLHttpRequest();
}
if (!xmlHttpObject)
{
try
{
xmlHttpObject = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try
{
xmlHttpObject = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e)
{
xmlHttpObject = null;
}
}
}
var fai_status = new Array();
function loadContent()
{
var c = 0;
/* Create array of available progress images once
*/
if(!fai_status.length){
var progressBars= document.getElementsByTagName ('*') ;
for(var i=0; i< progressBars.length; i++){
if(progressBars[i].id.match(/^progress_/)){
var mac = progressBars[i].id.replace(/^progress_/,'');
mac = mac.replace(/_/g,':');
fai_status[c] = new Object();
fai_status[c]['MAC'] = mac;
fai_status[c]['PROGRESS'] = -1;
c ++;
}
}
}
/* Create string of macs used as parameter for getFAIstatus.php
to retrieve all progress values.
*/
var macs = "";
for (var i = 0; i < fai_status.length; i++) {
macs += fai_status[i]['MAC'] + ","
}
/* Send request
*/
xmlHttpObject.open('get','getFAIstatus.php?mac=' + macs);
xmlHttpObject.onreadystatechange = handleContent;
xmlHttpObject.send(null);
return false;
}
function handleContent()
{
if (xmlHttpObject.readyState == 4)
{
/* Get text and split by newline
*/
var text = xmlHttpObject.responseText;
var data = text.split("\n");
/* Walk through progress images and check if the
progress status has changed
*/
for (var e = 0; e < fai_status.length; e++) {
/* Walk through returned values and parse out
mac and progress value */
var found = false;
/* Create object id out of mac address 12:34:56:12:34:56 => progress_12_34_56_12_34_56 */
var id = fai_status[e]["MAC"].replace(/:/g,"_");
id = "progress_" + id;
var progressBar = document.getElementById(id);
/* Continue if there is no image object iwth this id */
if(!progressBar){
continue;
}
for (var i = 0; i < data.length; i++) {
var mac = data[i].replace(/\|.*$/,"");
var progress= parseInt(data[i].replace(/^.*\|/,""));
/* Match mac returned by the support daemon and
the one out of our list */
if(fai_status[e]["MAC"] == mac){
found = true;
/* Check if progress has changed
*/
if(progress!= 'none'){
progressBar.innerHTML = progress + "%";
}
if(true || fai_status[e]["PROGRESS"] != progress){
var woffset= Math.floor(0.85 * (100-progress));
var tmp =
" 0 0 2px rgba(255, 255, 255, 0.4) inset," +
" 0 4px 6px rgba(255, 255, 255, 0.4) inset,"+
" 0 10px 0 -2px rgba(255, 255, 255, 0.2) inset,"+
" -" + woffset + "px 0 0 -2px rgba(255, 255, 255, 0.2) inset,"+
" -" + (woffset+1) + "px 0 0 -2px rgba(0, 0, 0, 0.6) inset,"+
" 0pt 11px 8px rgba(0, 0, 0, 0.3) inset,"+
" 0pt 1px 0px rgba(0, 0, 0, 0.2)";
progressBar.style.boxShadow = tmp;
progressBar.style.MozBoxShadow = tmp;
progressBar.style.WebkitBoxShadow = tmp;
fai_status[e]["PROGRESS"] = progress;
}
break;
}
}
//document.getElementById("text1").value += "\n ";
/* There was no status send for the current mac.
This means it was removed from the queue.
*/
if(!found){
document.mainform.submit();
}
}
timer=setTimeout('loadContent()',3000);
}
}
timer=setTimeout('loadContent()',3000);
</script>
{/literal}
|