Skip to content

Commit

Permalink
v5.10.3 LGSL now has an update page at admin panel
Browse files Browse the repository at this point in the history
Added Chivalry: Medieval Warfare icon
  • Loading branch information
tltneon committed Jun 30, 2020
1 parent 8bfe125 commit 63f73bd
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 18 deletions.
29 changes: 13 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 [email protected]*
Expand Down Expand Up @@ -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)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 91 additions & 1 deletion lgsl_files/lgsl_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= '
<div class="tt">
<div class="inlined">
<div>
<h4>Latest commit (beta)</h4>
</div>
<div>
<div>'.$buffer1["commit"]["commit"]["message"].'</div>
<tt>'.date("Y-m-d H:i:s", strtotime($buffer1["commit"]["commit"]["author"]["date"])).'</tt>
<div>
<a href="https://github.com/tltneon/lgsl/archive/master.zip">Download</a> or <a href="'.$buffer1["commit"]["html_url"].'">Changes</a>
</div>
</div>
</div>
<div class="inlined">
<div>
<h4>Latest release (stable)</h4>
</div>
<div>
<div>'.$buffer2["name"].'</div>
<tt>'.date("Y-m-d H:i:s", strtotime($buffer2["published_at"])).'</tt>
<div>
<a href="'.$buffer2["assets"][0]["browser_download_url"].'">Download</a> or <a href="'.$buffer2["html_url"].'">Changelog</a>
</div>
</div>
</div>
</div>
<style>
.inlined {
display: inline-block;
width: 300px;
vertical-align: top;
}
.tt{
margin: auto;
width: 610px;
}
.tt > .inlined:nth-child(2) {
text-align: end;
}
.inlined > div > div:first-child {
height: 50px;
}
@media(max-width: 414px){
.inlined {
display: block;
width: 100%;
vertical-align: top;
}
.tt{
width: auto;
}
}
</style>
';

$output .= "
<form method='post' action=''>
<div>
<br />
<br />
<input type='hidden' name='lgsl_management' value='{$_POST['lgsl_management']}' />
<input type='submit' name='lgsl_return' value='RETURN TO ADMIN' />
<br />
<br />
</div>
</form>";

return;
}

//------------------------------------------------------------------------------------------------------------+

if (!empty($_POST['lgsl_map_image_paths']))
Expand Down Expand Up @@ -349,6 +438,7 @@
<td><input type='submit' name='lgsl_save_2' value='".$lgsl_config['text']['srh']."' /> </td>
<td><input type='submit' name='lgsl_map_image_paths' value='".$lgsl_config['text']['mip']."' /> </td>
<td><input type='submit' name='lgsl_switch' value='".$lgsl_config['text']['avm']."' /></td>
<td><input type='submit' name='lgsl_check_updates' value='Updates' /></td>
</tr>
</table>
</div>
Expand All @@ -364,7 +454,7 @@ function lgsl_help_info()
return "
<div style='text-align:center; line-height:1em; font-size:1em;'>
<br /><br />
<a href='https://github.com/tltneon/lgsl/wiki'>[ LGSL ONLINE WIKI ]</a> <a href='https://github.com/tltneon/lgsl'>[ LGSL GITHUB (UPDATES) ]</a> <br /><br />
<a href='https://github.com/tltneon/lgsl/wiki'>[ LGSL ONLINE WIKI ]</a> <a href='https://github.com/tltneon/lgsl'>[ LGSL GITHUB ]</a> <br /><br />
- To remove a server, delete the IP, then click Save. <br /><br />
- Leave the query port blank to have LGSL try to fill it in for you. <br /><br />
- Software port is only needed for a few games so it being set 0 is normal. <br /><br />
Expand Down
2 changes: 1 addition & 1 deletion lgsl_files/lgsl_protocol.php
Original file line number Diff line number Diff line change
Expand Up @@ -4280,7 +4280,7 @@ function lgsl_gs_crypt($type, &$buffer, $encrypt = FALSE)

function lgsl_version()
{
return "LGSL By Richard Perry</a> | <a href='https://github.com/tltneon/lgsl'>v 5.10.2"; // little dirty trick
return "LGSL By Richard Perry</a> | <a href='https://github.com/tltneon/lgsl'>v 5.10.3"; // little dirty trick
}

//------------------------------------------------------------------------------------------------------------+
Expand Down

0 comments on commit 63f73bd

Please sign in to comment.