diff --git a/Pic/WebClip.png b/Pic/WebClip.png index 233e813..b507500 100644 Binary files a/Pic/WebClip.png and b/Pic/WebClip.png differ diff --git a/Update.bat b/Update.bat index f302a6c..ae31e7c 100644 --- a/Update.bat +++ b/Update.bat @@ -1,7 +1,9 @@ -git.exe pull +findstr "http://webclip.ml" config.php >nul 2>&1 +if errorlevel 1 echo Already Updated +if errorlevel 0 cscript replace.vbs "config.php" "http://webclip.ml" "http://klips.cf" findstr "knews.cf" config.php >nul 2>&1 if errorlevel 1 findstr "k-loud.cf" config.php >nul 2>&1 if errorlevel 1 findstr "konvos.cf" config.php >nul 2>&1 if errorlevel 1 ImportLines.bat -if errorlevel 0 echo Complete \ No newline at end of file +if errorlevel 0 echo Already Updated \ No newline at end of file diff --git a/config.php.sample b/config.php.sample index c3ffba8..a15c59c 100644 --- a/config.php.sample +++ b/config.php.sample @@ -145,7 +145,7 @@ $local = "1"; $ftp = "ftp://$base"; $http = "http:/"; $myurl = "http://$base"; -$webclip = "http://webclip.ml"; +$webclip = "http://klips.cf"; $kknowledge = "http://kknowledge.tk"; $kspot = "http://spot.k-world.me.uk"; $knews = "http://knews.cf"; diff --git a/feeds/webclipfeed.php b/feeds/webclipfeed.php index 1b95178..5f8b488 100644 --- a/feeds/webclipfeed.php +++ b/feeds/webclipfeed.php @@ -13,11 +13,11 @@ - + diff --git a/replace.vbs b/replace.vbs new file mode 100644 index 0000000..5e10c8b --- /dev/null +++ b/replace.vbs @@ -0,0 +1,17 @@ +Const ForReading = 1 +Const ForWriting = 2 + +strFileName = Wscript.Arguments(0) +strOldText = Wscript.Arguments(1) +strNewText = Wscript.Arguments(2) + +Set objFSO = CreateObject("Scripting.FileSystemObject") +Set objFile = objFSO.OpenTextFile(strFileName, ForReading) + +strText = objFile.ReadAll +objFile.Close +strNewText = Replace(strText, strOldText, strNewText) + +Set objFile = objFSO.OpenTextFile(strFileName, ForWriting) +objFile.Write strNewText +objFile.Close \ No newline at end of file
WebClip FeedKlips Feed
-
+