-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfunc_inputs.php
More file actions
98 lines (98 loc) · 3.67 KB
/
func_inputs.php
File metadata and controls
98 lines (98 loc) · 3.67 KB
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
<?php
$header = 'Input Switches';
if ( ! isset($pioneer) )
require_once(dirname(__FILE__).'/Z8Config.php');
require_once(dirname(__FILE__).'/PioneerRebel/pioneer.lib.php');
ob_start();
$ourFile = 'PioneerRebel/ssCommon.php';
require_once($ourFile);
?>
<script type="text/javascript">
function pvRebel_setSource(fnInput) {
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
} else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","<?php echo( $ourFile . '?input=' ); ?>"+fnInput+"&pioneer=<?php echo($pioneer); ?>",true);
xmlhttp.send();
}
function vztvDbg_GoPioneer() {
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
} else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","index.php?VizioTV_GoPioneer=Y",true);
xmlhttp.send();
}
function vztvDbg_GoTaKa() {
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
} else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","index.php?VizioTV_GoTaKa=Y",true);
xmlhttp.send();
}
function comboDbg_GoTiVo() {
pvRebel_setSource('06');
vztvDbg_GoPioneer();
}
function comboDbg_GoTaKa() {
pvRebel_setSource('05');
vztvDbg_GoTaKa();
}
function comboDbg_GoVGA() {
pvRebel_setSource('05');
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
} else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","index.php?VizioTV_GoVGA=Y",true);
xmlhttp.send();
}
</script>
<?php
$inNames["17"] = "iPod/USB Device";
$inNames["05"] = "TV Loopback";
$inNames["01"] = "CD Player";
$inNames["02"] = "FM/AM Tuner";
$inNames["33"] = "Bluetooth Adapter";
$inNames["25"] = "Blu-ray Player";
$inNames["04"] = "DVD Player";
$inNames["06"] = "Satellite/Cable";
$inNames["15"] = "DVR/BD Recorder";
$inNames["10"] = "Video Input";
$inNames["49"] = "Game System";
$inNames["38"] = "Internet Radio";
$inNames["41"] = "Pandora Radio";
$inNames["44"] = "LAN Media";
$inNames["45"] = "Favorites";
$in_code = '';
foreach ($inNames as $num => $value) {
$in_code .= '<input style="width: 100%;" type="button" onClick="pvRebel_setSource(\''.strval($num).'\')" name="'.strval($value).'" value="'.strval($value).'" />'."\n";
}
$in_code = str_replace("\n","<br />",rtrim($in_code));
?>
<table border="1" cellspacing="1" cellpadding="4" style="padding: 0px; margin: 0px; margin-left: 24px; margin-bottom: 16px;">
<tr><td><h3>Pioneer VSX-1022-K</h3></td></tr>
<tr><td style="margin-right:0px;padding-right:9px;"><p style="margin-right:0px;padding-right:0px;"><?php echo($in_code); ?></p></td></tr>
</table>
<table border="1" cellspacing="1" cellpadding="4" style="padding: 0px; margin: 0px; margin-left: 24px; margin-bottom: 16px;">
<tr><td><h3>Vizio VL370M</h3></td></tr>
<tr><td style="margin-right:0px;padding-right:9px;"><p style="margin-right:0px;padding-right:0px;"><input type="button" onClick="vztvDbg_GoPioneer()" name="Switch to Pioneer VSX-1022-K" value="Switch to Pioneer VSX-1022-K" /></p></td></tr>
</table>
<table border="1" cellspacing="1" cellpadding="4" style="padding: 0px; margin: 0px; margin-left: 24px; margin-bottom: 16px;">
<tr><td><h3>COMMAND COMBO: Pioneer VSX-1022-K + Vizio VL370M</h3></td></tr>
<tr><td style="margin-right:0px;padding-right:9px;"><p style="margin-right:0px;padding-right:0px;">
<input type="button" onClick="comboDbg_GoTiVo()" name="Switch system to TiVo" value="Switch system to TiVo" />
<input type="button" onClick="comboDbg_GoVGA()" name="Switch system to VGA" value="Switch system to VGA" />
<input type="button" onClick="comboDbg_GoTaKa()" name="Switch system to Visualizer" value="Switch system to Visualizer" />
</p></td></tr>
</table>
<?php
$body = ob_get_contents();
ob_end_clean();
?>