22 lines
422 B
PHP
22 lines
422 B
PHP
<html>
|
|
<head>
|
|
<title>Manual Update</title>
|
|
</head>
|
|
<body>
|
|
<?php
|
|
if(isset($_POST['submit']))
|
|
{
|
|
exec('cmd /c Update.bat', $output);
|
|
print_r($output);
|
|
echo "Done!";
|
|
} else {
|
|
// display the form
|
|
?>
|
|
<form action="" method="post">
|
|
<input type="submit" name="submit" value="DO IT!">
|
|
</form>
|
|
<?php
|
|
}
|
|
?>
|
|
</body>
|
|
</html>
|