update from web

This commit is contained in:
Karl Hudgell 2016-01-12 20:56:15 +00:00
parent 039b33aecf
commit 8d3e4a3f3b
3 changed files with 21 additions and 5 deletions

View File

@ -193,8 +193,8 @@ findstr "localversion" config.php >nul 2>&1
goto END goto END
:END :END
:ONE :ONE
cscript replace.vbs "config.php" "1.1" "1.2" cscript replace.vbs "config.php" "1.2" "1.3"
echo Version Updated echo Version Updated to 1.3
goto END goto END
:END :END

View File

@ -3,7 +3,23 @@
New Update Available, New Update Available,
Update via update.bat Update via update.bat
<div id="popupfoot"> <a href="#" class="close agree">Ok, Thank you :)</a></div> <?php
</div> if(isset($_POST['submit']))
{
echo exec('Update.bat');
echo '<script>parent.window.location.reload(true);</script>';
} else {
// display the form
?>
<form action="" method="post">
<input type="submit" name="submit" value="DO IT!">
</form>
<?php
}
?>
<div id="popupfoot"> <a href="#" class="close agree" >Not Now...</a></div>
</div>
<div id="mask"></div> <div id="mask"></div>
</div> </div>

View File

@ -1,4 +1,4 @@
<?php <?php
//// KLANDING VERSION //// KLANDING VERSION
$remoteversion = "1.2"; // $remoteversion = "1.3"; //
?> ?>