-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdisplay.php
77 lines (58 loc) · 2.32 KB
/
display.php
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
<!--
==========================================================================
SnomControl - A General purpose web control system for Snom VoIP Phones
Copyright (C) 2014 Ashley Unwin
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
==========================================================================
-->
<html>
<?php
// Gets IP CSV and sets as an array
$getipcsv = htmlspecialchars($_GET["ipcsv"]);
if ($getipcsv == "") {unset ($getipcsv);}
if (isset($getipcsv)) {$ipcsv = $getipcsv; } else {$end = 1 ;}
$iplist = explode(",",$ipcsv);
// gets the refresh rate from url
$getrefresh = htmlspecialchars($_GET["refresh"]);
if ($getrefresh == "") {unset ($getrefresh);}
if (isset($getrefresh)) {$refresh=$getrefresh;} else {$refresh = 600 ;}
// gets the hide variable from url
$gethide = htmlspecialchars($_GET["hide"]);
if ($gethide == "") {unset ($gethide);}
if (isset($gethide)) {$hide=$gethide;}
echo '
<head>
<meta http-equiv="refresh" content="'.$refresh.'">
</head>
<body>
<div align=center width="700"> ';
if ($hide!="1")
{echo '
<a href="/index.php">Return to Main Menu</a> <br />
<form method=get>
Select IP\'s to Display: <br />
Separate each value with commas - Do not use Spaces or New Lines <br />
<textarea rows="1" cols="100" name="ipcsv">'.$ipcsv.'</textarea> <br />
Set Re-Scan frequency in seconds:<input type="text" size="3" name="refresh" value="'.$refresh.'"> Hide the input boxes on the next screen: <input type="checkbox" name="hide" value="1"> <br />
<input type="submit" value="submit">
</form>
' ; }
foreach ($iplist as $value){
$value = str_replace(' ', '', $value);
// echo $value." " ;
if ($value == "") {unset ($value);}
if (isset($value)) { echo "<img src=\"http://".$value."/screen.bmp\" border=1 /> "; }
}
?>
</div>
</body>
</html>