KLanding/ManUpdate.php

18 lines
327 B
PHP

<?php
if(isset($_POST['submit']))
{
//echo exec('Update.bat');
// DEBUG
echo exec('Update.bat', $output);
print_r($output);
//echo '<script>parent.window.location.reload(true);</script>';
} else {
// display the form
?>
<form action="" method="post">
<input type="submit" name="submit" value="GET IT!">
</form>
<?php
}
?>