65 |
'swarm', 'swirl', 't3d', 'tetris', 'thornbird', 'tik_tak', 'toneclock', 'triangle', 'tube', 'turtle', |
'swarm', 'swirl', 't3d', 'tetris', 'thornbird', 'tik_tak', 'toneclock', 'triangle', 'tube', 'turtle', |
66 |
'vines', 'voters', 'wator', 'wire', 'world', 'worm', 'xcl', 'xjack'); |
'vines', 'voters', 'wator', 'wire', 'world', 'worm', 'xcl', 'xjack'); |
67 |
|
|
68 |
|
|
69 |
// ACHTUNG!!! wlan_-Felder heißen eigentlich wireless_ |
// ACHTUNG!!! wlan_-Felder heißen eigentlich wireless_ |
70 |
$drop['wireless_mode'] = array('', 'managed', 'ad-hoc', 'master', 'repeater', 'secondary', 'monitor', 'auto'); |
$drop['wireless_mode'] = array('', 'managed', 'ad-hoc', 'master', 'repeater', 'secondary', 'monitor', 'auto'); |
71 |
$drop['wireless_auth_mode'] = array('', 'wep', 'wpa', 'off'); |
$drop['wireless_auth_mode'] = array('', 'wep', 'wpa', 'off'); |
138 |
|
|
139 |
// ANZEIGEN - KLAPPFUNKTIONEN |
// ANZEIGEN - KLAPPFUNKTIONEN |
140 |
$absnames = array(); |
$absnames = array(); |
141 |
|
|
142 |
function openabs($heading, $helpfile='') |
function openabs($heading, $helpfile='') |
143 |
{ |
{ |
144 |
global $absnames; |
global $absnames; |
145 |
$absnames[] = $heading; |
$absnames[] = $heading; |
146 |
|
|
147 |
// <AufZuLink> <Bild/> <Heading/> </AufZuLink><BR/> <Absatz> |
// <AufZuLink> <Bild/> <Heading/> </AufZuLink><BR/> <Absatz> |
148 |
|
|
149 |
if( $_SESSION['openclose'][$heading] ) |
if( $_SESSION['openclose'][$heading] ) |
150 |
{ |
{ |
151 |
echo '<a href="JavaScript:openclose(\''.$heading.'\',1);"><img border="0" src="pics/minus.gif" title="CLOSE" id="sch_bild_'.$heading.'"> <b>['.$heading.']</b></a>'; |
echo '<a href="JavaScript:openclose(\''.$heading.'\',1);"><img border="0" src="pics/minus.gif" title="CLOSE" id="sch_bild_'.$heading.'"> <b>['.$heading.']</b></a>'; |
159 |
echo '<br><div id="sch_absatz_'.$heading.'" style="position:absolute; top:0px; visibility:hidden">'; |
echo '<br><div id="sch_absatz_'.$heading.'" style="position:absolute; top:0px; visibility:hidden">'; |
160 |
} |
} |
161 |
} |
} |
162 |
|
|
163 |
function closeabs() |
function closeabs() |
164 |
{ |
{ |
165 |
// </Absatz> <BR/> |
// </Absatz> <BR/> |
166 |
|
|
167 |
echo '</div><br>'; |
echo '</div><br>'; |
168 |
} |
} |
|
|
|
169 |
|
|
170 |
// ANZEIGEN |
|
171 |
|
// ANZEIGEN |
172 |
|
|
173 |
function parsearr($name, $arr, $del=false, $wireless=false) |
function parsearr($name, $arr, $del=false, $wireless=false) |
174 |
{ |
{ |
175 |
global $drop; |
global $drop; |
182 |
foreach($arr as $k=>$v) |
foreach($arr as $k=>$v) |
183 |
{ |
{ |
184 |
//if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue; |
//if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue; |
185 |
|
|
186 |
$d = $drop[$name.'_'.$k]; if($d==null) $d = $drop[$k]; |
$d = $drop[$name.'_'.$k]; if($d==null) $d = $drop[$k]; |
187 |
//$k = str_replace('wireless_', '', $k); |
//$k = str_replace('wireless_', '', $k); |
188 |
$k2 = $k; |
$k2 = $k; |
209 |
if($del) echo '<tr><td class="key">delete</td><td>=<input type=checkbox name="'.$name.'_delete" value="1"></td></tr>'; |
if($del) echo '<tr><td class="key">delete</td><td>=<input type=checkbox name="'.$name.'_delete" value="1"></td></tr>'; |
210 |
echo '</table>'; |
echo '</table>'; |
211 |
closeabs(); |
closeabs(); |
212 |
|
|
213 |
//if($name=='cfg_network' && !$wireless) parsearr($name.'_wireless', $arr, $del, true); |
//if($name=='cfg_network' && !$wireless) parsearr($name.'_wireless', $arr, $del, true); |
214 |
} |
} |
215 |
function parsearrs($name, $arr) |
function parsearrs($name, $arr) |
229 |
</style> |
</style> |
230 |
<script language="JavaScript" src="openclose_ajax.js"></script> |
<script language="JavaScript" src="openclose_ajax.js"></script> |
231 |
<script language="JavaScript"> |
<script language="JavaScript"> |
232 |
|
|
233 |
function openclose(nummer, act) |
function openclose(nummer, act) |
234 |
{ |
{ |
235 |
var bild = document.images['sch_bild_'+nummer]; |
var bild = document.images['sch_bild_'+nummer]; |
236 |
var absatz = document.all['sch_absatz_'+nummer].style; |
var absatz = document.all['sch_absatz_'+nummer].style; |
237 |
var senden = false; |
var senden = false; |
260 |
act = 2; |
act = 2; |
261 |
} |
} |
262 |
} |
} |
263 |
|
|
264 |
if(senden) sendopenclose(nummer,act); |
if(senden) sendopenclose(nummer,act); |
265 |
} |
} |
266 |
|
|
267 |
function showhelp(name) |
function showhelp(name) |
268 |
{ window.open(name, 'HelpWin', 'width=620,height=500,scrollbars=yes'); } |
{ window.open(name, 'HelpWin', 'width=620,height=500,scrollbars=yes'); } |
269 |
|
|
270 |
</script> |
</script> |
271 |
</head> |
</head> |
272 |
|
|
273 |
<body><? |
<body><? |
274 |
|
|
275 |
|
|
276 |
//echo '<body style="background-image:URL(logo.jpg);background-repeat:no-repeat; background-position:0px 0px; margin-top:25px">'; |
//echo '<body style="background-image:URL(logo.jpg);background-repeat:no-repeat; background-position:0px 0px; margin-top:25px">'; |
277 |
echo '<form action="show.php" method=post onreset="return confirm(\'UNDO CHANGES?\')">'; |
echo '<form action="show.php" method=post onreset="return confirm(\'UNDO CHANGES?\')">'; |
278 |
echo '<input type=hidden name="do_upl" value="1">'; |
echo '<input type=hidden name="do_upl" value="1">'; |
292 |
echo '</td><td valign=top width="300">'; |
echo '</td><td valign=top width="300">'; |
293 |
|
|
294 |
foreach($tabs as $k=>$t) if($multi[$k]) parsearrs($t, $data[$t]); |
foreach($tabs as $k=>$t) if($multi[$k]) parsearrs($t, $data[$t]); |
295 |
|
|
296 |
echo '<script language="JavaScript">'; |
echo '<script language="JavaScript">'; |
297 |
echo 'function opencloseall(act) { '; |
echo 'function opencloseall(act) { '; |
298 |
|
|
299 |
foreach($absnames as $absname) |
foreach($absnames as $absname) |
300 |
echo 'openclose("'.$absname.'", act); '; |
echo 'openclose("'.$absname.'", act); '; |
301 |
|
|
302 |
echo '}</script>'; |
echo '}</script>'; |
303 |
|
|
304 |
// ANZEIGEN => NAVI |
// ANZEIGEN => NAVI |
360 |
} |
} |
361 |
if($osver[0] == '') $osver[0]='unkown'; |
if($osver[0] == '') $osver[0]='unkown'; |
362 |
if($osver[1] == '') $osver[1]='unkown'; |
if($osver[1] == '') $osver[1]='unkown'; |
363 |
echo '<u>OS:</u> '.$osver[0].'<br>'; |
echo '<u>OS:</u> '.$osver[0].'<br>'; |
364 |
echo '<u>Utils:</u> '.$osver[1].'<br>'; |
echo '<u>Utils:</u> '.$osver[1].'<br>'; |
365 |
} |
} |
366 |
|
|
367 |
echo '</b></div>'; |
echo '</b></div>'; |
373 |
echo '<input class="but" type=button value="SHUTDOWN" style="width:150px" onclick="if(confirm(\'SHUTDOWN CLIENT #'.$id.' ?\')) window.open(\'reboot.php?client='.$id.'&ip='.$conn['ip'].'&op=halt\', \'ShutdownWin\', \'width=200,height=100\')"><br>'; |
echo '<input class="but" type=button value="SHUTDOWN" style="width:150px" onclick="if(confirm(\'SHUTDOWN CLIENT #'.$id.' ?\')) window.open(\'reboot.php?client='.$id.'&ip='.$conn['ip'].'&op=halt\', \'ShutdownWin\', \'width=200,height=100\')"><br>'; |
374 |
|
|
375 |
echo '<br>'; |
echo '<br>'; |
376 |
echo '<div style="border:solid black 1px; padding:5px; background-color:#d5e5ff" align="center"><b>'; |
echo '<div style="border:solid black 1px; padding:5px; background-color:#d5e5ff" align="center"><b>'; |
377 |
echo 'Client Update:</b></div>'; |
echo 'Client Update:</b></div>'; |
378 |
echo '<input class="but" type=button value="UPDATE MAGE DB" style="width:150px" onclick="if(confirm(\'UPDATE DB ON CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=update\', \'ShutdownWin\', \'width=800,height=600\')"><br>'; |
echo '<input class="but" type=button value="UPDATE MAGE DB" style="width:150px" onclick="if(confirm(\'UPDATE DB ON CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=update\', \'ShutdownWin\', \'width=800,height=600\')"><br>'; |
379 |
echo '<input class="but" type=button value="CALC DEPS" style="width:150px" onclick="if(confirm(\'CALC DEPS FOR CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=calc\', \'ShutdownWin\', \'width=800,height=600\')"><br>'; |
echo '<input class="but" type=button value="CALC DEPS" style="width:150px" onclick="if(confirm(\'CALC DEPS FOR CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=calc\', \'ShutdownWin\', \'width=800,height=600\')"><br>'; |
380 |
echo '<input class="but" type=button value="UPGRADE CLIENT" style="width:150px" onclick="if(confirm(\'UPGRADE ALL PACKAGES ON CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=upgrade\', \'ShutdownWin\', \'width=800,height=600\')"><br>'; |
echo '<input class="but" type=button value="UPGRADE CLIENT" style="width:150px" onclick="if(confirm(\'UPGRADE ALL PACKAGES ON CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=upgrade\', \'ShutdownWin\', \'width=800,height=600\')"><br>'; |