Project

General

Profile

« Previous | Next » 

Revision f0fe3d30

Added by Scott Ullrich almost 21 years ago

Convert description font color to white

View differences:

usr/local/www/services_wol.php
39 39

  
40 40
if ($_POST || $_GET['mac']) {
41 41
	unset($input_errors);
42
	
42

  
43 43
	if ($_GET['mac']) {
44 44
		$mac = $_GET['mac'];
45 45
		$if = $_GET['if'];
......
54 54
	if (!$if)
55 55
		$input_errors[] = "A valid interface must be specified.";
56 56

  
57
	if (!$input_errors) {		
57
	if (!$input_errors) {
58 58
		/* determine broadcast address */
59 59
		$bcip = gen_subnet_max($config['interfaces'][$if]['ipaddr'],
60 60
			$config['interfaces'][$if]['subnet']);
61
		
61

  
62 62
		mwexec("/usr/local/bin/wol -i {$bcip} {$mac}");
63 63
		$savemsg = "Sent magic packet to {$mac}.";
64 64
	}
......
88 88
<?php if ($savemsg) print_info_box($savemsg); ?>
89 89
			<form action="services_wol.php" method="post" name="iform" id="iform">
90 90
			  <table width="100%" border="0" cellpadding="6" cellspacing="0">
91
			  <tr> 
91
			  <tr>
92 92
                  <td width="22%" valign="top" class="vncellreq">Interface</td>
93 93
                  <td width="78%" class="vtable">
94 94
<select name="interface" class="formfld">
......
99 99
					  		$interfaces['opt' . $i] = $config['interfaces']['opt' . $i]['descr'];
100 100
					  }
101 101
					  foreach ($interfaces as $iface => $ifacename): ?>
102
                      <option value="<?=$iface;?>" <?php if ($iface == $if) echo "selected"; ?>> 
102
                      <option value="<?=$iface;?>" <?php if ($iface == $if) echo "selected"; ?>>
103 103
                      <?=htmlspecialchars($ifacename);?>
104 104
                      </option>
105 105
                      <?php endforeach; ?>
......
114 114
                      Enter a MAC address <span class="vexpl"> in the following format: xx:xx:xx:xx:xx:xx</span></td></tr>
115 115
				<tr>
116 116
				  <td width="22%" valign="top">&nbsp;</td>
117
				  <td width="78%"> 
117
				  <td width="78%">
118 118
                    <input name="Submit" type="submit" class="formbtn" value="Send">
119 119
				</td>
120 120
				</tr>
121 121
			</table>
122 122
			<span class="vexpl"><span class="red"><strong>Note:<br>
123 123
            </strong></span>This service can be used to wake up (power on) computers by sending special &quot;Magic Packets&quot;. The NIC in the computer that is to be woken up must support Wake on LAN and has to be configured properly (WOL cable, BIOS settings). </span><br>
124
                      <br> 
124
                      <br>
125 125
                      You may store MAC addresses below for your convenience.
126 126
Click the MAC address to wake up a computer. <br>
127 127
&nbsp;
......
145 145
                    <a href="?mac=<?=$wolent['mac'];?>&if=<?=$wolent['interface'];?>"><?=strtolower($wolent['mac']);?></a>&nbsp;
146 146
                  </td>
147 147
                  <td class="listbg">
148
                    <?=htmlspecialchars($wolent['descr']);?>&nbsp;
148
                    <font color="#FFFFFF"><?=htmlspecialchars($wolent['descr']);?>&nbsp;
149 149
                  </td>
150 150
                  <td valign="middle" nowrap class="list"> <a href="services_wol_edit.php?id=<?=$i;?>"><img src="e.gif" width="17" height="17" border="0"></a>
151 151
                     &nbsp;<a href="services_wol.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this entry?')"><img src="x.gif" width="17" height="17" border="0"></a></td>
152 152
				</tr>
153 153
			  <?php $i++; endforeach; ?>
154
                <tr> 
154
                <tr>
155 155
                  <td class="list" colspan="3"></td>
156 156
                  <td class="list"> <a href="services_wol_edit.php"><img src="plus.gif" width="17" height="17" border="0"></a></td>
157 157
				</tr>

Also available in: Unified diff