show verion

This commit is contained in:
Karl Hudgell 2016-01-12 19:40:20 +00:00
parent a1fc531551
commit 039b33aecf
2 changed files with 13 additions and 3 deletions

View File

@ -172,8 +172,13 @@ findstr "localversion" config.php >nul 2>&1
goto END goto END
:END :END
rem show version
findstr "showversion" config.php >nul 2>&1 rem Update Version
findstr "localversion" config.php >nul 2>&1
if errorlevel 1 goto ONE
if errorlevel 0 goto ZERO
:ZERO
findstr "showversion" config.php >nul 2>&1
if errorlevel 1 goto ONE if errorlevel 1 goto ONE
if errorlevel 0 goto ZERO if errorlevel 0 goto ZERO
goto END goto END
@ -187,5 +192,10 @@ findstr "showversion" config.php >nul 2>&1
echo showversion Updated echo showversion Updated
goto END goto END
:END :END
:ONE
cscript replace.vbs "config.php" "1.1" "1.2"
echo Version Updated
goto END
:END
PAUSE PAUSE

View File

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