Location: PHPKode > projects > easydialup > easydialup/action.php
<?php

if ($_GET[submit] == "Internet On") {
exec("/usr/bin/pon www");

$display_block = "The Internet is now ON, <br>To disconnect from the Internet please  click Internet Off

<th colspan=2></th>
</tr>


</tr>


</table>
<p><input type=submit name=\"submit\" value=\"Internet Off\"></p>

"

;

}

elseif ($_POST[poff] == "poff") {
exec("/usr/bin/poff");

$display_block = "The Internet is now OFF, <br>To connect from the Internet please  click Internet On

<th colspan=2></th>
</tr>


</tr>


</table>
<p><input type=submit name=\"submit\" value=\"Internet On\"></p>



;


";
}

else {

	if (file_exists("/var/run/ppp0-up")) {
	$display_block = "The Internet is now On - ppp0-up, ";
}
	elseif (!file_exists("/var/run/ppp0-up")) {
	$display_block = "The Internet is now OFF, <br>To connect from the Internet please  click Internet On

<th colspan=2></th>
</tr>


</tr>


</table>
<p><input type=submit name=\"submit\" value=\"Internet On\"></p>
 ppp0-up, ";

}
}

?>
<html>
<head>
<title> EasyDialUp
</title>
<BODY>
<link rel="stylesheet" type="text/css" href="themes/obs/style.css">
<br>

<FORM ACTION="action.php" METHOD=PUT>

<P>EasyDialUp<BR><br>
<table align=center>
<tr>
<?php echo $display_block; ?>

<?php echo $_GET[submit]; ?>
<?php echo $_POST[op]; ?>
<?php echo $_GET[op]; ?>
<?php echo $_POST[poff]; ?>

</FORM>
</BODY>
</HTML>
Return current item: easydialup