From 63f73bd6f42944025f6570d8d7b28a84b092a86a Mon Sep 17 00:00:00 2001 From: Neon Date: Tue, 30 Jun 2020 19:51:36 +0400 Subject: [PATCH] v5.10.3 LGSL now has an update page at admin panel Added Chivalry: Medieval Warfare icon --- README.md | 29 +++--- .../icons/source/chivalrymedievalwarfare.gif | Bin 0 -> 1825 bytes lgsl_files/lgsl_admin.php | 92 +++++++++++++++++- lgsl_files/lgsl_protocol.php | 2 +- 4 files changed, 105 insertions(+), 18 deletions(-) create mode 100644 lgsl_files/icons/source/chivalrymedievalwarfare.gif diff --git a/README.md b/README.md index 98d76cf..3f7867b 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![GitHub forks](https://img.shields.io/github/forks/tltneon/lgsl?style=for-the-badge)](https://github.com/tltneon/lgsl/fork) [![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/tltneon/lgsl?style=for-the-badge)](https://github.com/tltneon/lgsl/archive/master.zip) [![Packagist](https://img.shields.io/packagist/l/tltneon/lgsl?style=for-the-badge)](https://github.com/tltneon/lgsl/blob/master/LICENSE) -# LGSL v5.10.2 (Live Game Server List) for PHP 7+ +# LGSL v5.10.3 (Live Game Server List) for PHP 7+ Based-off LGSL v5.8 (stand-alone version) from www.greycube.com. This is almost original version of LGSL with [new features](https://github.com/tltneon/lgsl#changelog) and working on PHP 5.4-7.x and MySQL 5.5.27-8.0.x or MariaDB 5.5-10.5.x ## [Live Demos](http://lgsl-demo.freesite.vip/) | [Wiki](https://github.com/tltneon/lgsl/wiki) | [How to install]( https://github.com/tltneon/lgsl/wiki/How-to-install-LGSL) | [Supported games](https://github.com/tltneon/lgsl/wiki/Supported-Games) | [Custom styles](https://github.com/tltneon/lgsl/wiki/Styles) @@ -21,6 +21,15 @@ Feel free to make [pull request](https://github.com/tltneon/lgsl) with your cust ![lgsl Server List on mobile device](https://i.imgur.com/oui8Nya.png) ## [Changelog](https://github.com/tltneon/lgsl/wiki/Changelog) +#### v5.10.3 +- **LGSL now has update page** +- **Added Rage:MP protocol** +- **Added FiveM protocol** +- **Added Discord protocol** +- **Added few game icons** +- **Improvements for installation page** +- **Major changes for Wallpaper style** +- **Better view on mobile devices** #### v5.10.2 - **LGSL now with IMG Mod!** - *Author playzone46@yandex.ru* @@ -60,19 +69,7 @@ Feel free to make [pull request](https://github.com/tltneon/lgsl) with your cust - **Added translation feature** - [*You can help to translate LGSL to your language!*](https://github.com/tltneon/lgsl/tree/master/lgsl_files/languages) - **Added Russian language** -#### v5.9.2 -- **Now LGSL can use custom styles** -- **Added Breeze Style** [[Live Demo](http://lgsl-demo.freesite.vip/lgsl/index.php)] -- **Default style was changed to: Breeze** - - *Suggest your custom styles!* - - *Classic style is still exists to use* [[Live Demo](http://lgsl-demo.freesite.vip/lgsl3/index.php)] -#### v5.8.2 -- **LGSL now working with PHP 7+** -- **Added game types:** - - Arma 3, DayZ - - Counter-Strike: Global Offensive - - Minecraft - - Teamspeak, Teamspeak 3 - - *Thanks to @Wussie* -Original author of LGSL - Richard Perry (www.greycube.com) +##### [:: Older versions](https://github.com/tltneon/lgsl/wiki/Changelog) + +Original author of LGSL - Richard Perry (www.greycube.com) \ No newline at end of file diff --git a/lgsl_files/icons/source/chivalrymedievalwarfare.gif b/lgsl_files/icons/source/chivalrymedievalwarfare.gif new file mode 100644 index 0000000000000000000000000000000000000000..117cfea5d6dbab2168fdd5540647e8fc8423c9b3 GIT binary patch literal 1825 zcmV++2j2KcNk%w1VL$*t0J8u9UtVY8;M+DcHWLjHI6FyGFe!LrRf}>;*U}YNMLy)&MA+3SJN-d-;9v)5ajPTiNT;scWd0wxX!5I`ZY zpaTIIJVfg>%L_JT*Rpl-lCNUE1bR#q+(7(AKyWa!W=CcqUyP(T5WK%krw{M@30OBb&W zUKMD7AkBfLurLJ-IPj*&5HAN{y&wS7TxI3To;BO;6_^AB3JKim2m@ zi2w&>GRS8(m_VRSUESu!NFagnz;&F2z}*81Q0QU-?195d3kP5rND-IG7uanR`SAb) z4`Ac~8J#r1A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872..a2d5120 100644 --- a/lgsl_files/lgsl_admin.php +++ b/lgsl_files/lgsl_admin.php @@ -125,6 +125,95 @@ } } +//------------------------------------------------------------------------------------------------------------+ + + if (!empty($_POST['lgsl_check_updates'])) + { + + $context = stream_context_create( + array( + "http" => array( + "header" => "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36" + ) + ) + ); + $lgsl_fp = file_get_contents("https://api.github.com/repos/tltneon/lgsl/branches/master", false, $context); + $buffer1 = json_decode($lgsl_fp, true); + + $lgsl_fp = file_get_contents("https://api.github.com/repos/tltneon/lgsl/releases/latest", false, $context); + $buffer2 = json_decode($lgsl_fp, true); + + $output .= ' +
+
+
+

Latest commit (beta)

+
+
+
'.$buffer1["commit"]["commit"]["message"].'
+ '.date("Y-m-d H:i:s", strtotime($buffer1["commit"]["commit"]["author"]["date"])).' +
+ Download or Changes +
+
+
+
+
+

Latest release (stable)

+
+
+
'.$buffer2["name"].'
+ '.date("Y-m-d H:i:s", strtotime($buffer2["published_at"])).' + +
+
+
+ + '; + + $output .= " +
+
+
+
+ + +
+
+
+
"; + + return; + } + //------------------------------------------------------------------------------------------------------------+ if (!empty($_POST['lgsl_map_image_paths'])) @@ -349,6 +438,7 @@ + @@ -364,7 +454,7 @@ function lgsl_help_info() return "


- [ LGSL ONLINE WIKI ] [ LGSL GITHUB (UPDATES) ]

+ [ LGSL ONLINE WIKI ] [ LGSL GITHUB ]

- To remove a server, delete the IP, then click Save.

- Leave the query port blank to have LGSL try to fill it in for you.

- Software port is only needed for a few games so it being set 0 is normal.

diff --git a/lgsl_files/lgsl_protocol.php b/lgsl_files/lgsl_protocol.php index 3a2f595..fdfd466 100644 --- a/lgsl_files/lgsl_protocol.php +++ b/lgsl_files/lgsl_protocol.php @@ -4280,7 +4280,7 @@ function lgsl_gs_crypt($type, &$buffer, $encrypt = FALSE) function lgsl_version() { - return "LGSL By Richard Perry | v 5.10.2"; // little dirty trick + return "LGSL By Richard Perry | v 5.10.3"; // little dirty trick } //------------------------------------------------------------------------------------------------------------+