Make a shell script that shuts down the router the way you want it to and execute it in php by using exec(). Example:
Code:
The HTML:
<form action='shutdown.php' method='post'>
<input type='submit' name='submit' value='Shutdown'><br>
</form><br>
THE PHP:
<?php
if(isset($_POST['submit']))
//if submit has been pressed
{
exec("shutrouter");
//NOTE change 'shutrouter' for the name of the script you are executing
}
php?>
Something like that should work. Hope this helps. More information:
www.php.net/exec