forked from Nookure/NookTheme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'pterodactyl/release/v0.7.10' into featu…
…re/add-dockerfile
- Loading branch information
Showing
116 changed files
with
7,039 additions
and
1,933 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ APP_CLEAR_TASKLOG=720 | |
APP_DELETE_MINUTES=10 | ||
APP_ENVIRONMENT_ONLY=true | ||
LOG_CHANNEL=daily | ||
APP_LOCALE=en | ||
|
||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
|
@@ -27,4 +28,4 @@ [email protected] | |
|
||
QUEUE_HIGH=high | ||
QUEUE_STANDARD=standard | ||
QUEUE_LOW=low | ||
QUEUE_LOW=low |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,5 +28,7 @@ misc | |
.phpstorm.meta.php | ||
.php_cs.cache | ||
|
||
coverage.xml | ||
|
||
# Vagrant | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
[![Logo Image](https://cdn.pterodactyl.io/logos/Banner%20Logo%[email protected])](https://pterodactyl.io) | ||
|
||
[![Build Status](https://travis-ci.org/pterodactyl/panel.svg?branch=develop)](https://travis-ci.org/pterodactyl/panel) [![StyleCI](https://styleci.io/repos/47508644/shield?branch=develop)](https://styleci.io/repos/47508644) [![codecov](https://codecov.io/gh/pterodactyl/panel/branch/develop/graph/badge.svg)](https://codecov.io/gh/Pterodactyl/Panel) | ||
[![Build status](https://img.shields.io/travis/pterodactyl/panel/develop.svg?style=flat-square)](https://travis-ci.org/pterodactyl/panel) | ||
[![StyleCI](https://styleci.io/repos/47508644/shield?branch=develop)](https://styleci.io/repos/47508644) | ||
[![Codecov](https://img.shields.io/codecov/c/github/pterodactyl/panel/develop.svg?style=flat-square)](https://codecov.io/gh/Pterodactyl/Panel) | ||
[![Discord](https://img.shields.io/discord/122900397965705216.svg?style=flat-square&label=Discord)](https://pterodactyl.io/discord) | ||
|
||
# Pterodactyl Panel | ||
|
||
Pterodactyl is the open-source game server management panel built with PHP7, Nodejs, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to administrators and users. | ||
What more are you waiting for? Make game servers a first class citizen on your platform today. | ||
|
||
![Image](https://cdn.pterodactyl.io/site-assets/mockup-macbook-grey.png) | ||
|
||
## Support & Documentation | ||
Support for using Pterodactyl can be found on our [Documentation Website](https://docs.pterodactyl.io), [Guides Website](https://guides.pterodactyl.io), or via our [Discord Chat](https://discord.gg/QRDZvVm). | ||
Support for using Pterodactyl can be found on our [Documentation Website](https://pterodactyl.io/project/introduction.html), [Guides Website](https://guides.pterodactyl.io), or via our [Discord Chat](https://discord.gg/QRDZvVm). | ||
|
||
### Supported Games | ||
We support a huge variety of games by utilizing Docker containers to isolate each instance, giving you the power to host your games across the world without having to bloat each physical machine with additional dependencies. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
<?php | ||
/** | ||
* Pterodactyl - Panel | ||
* Copyright (c) 2015 - 2017 Dane Everitt <[email protected]>. | ||
* | ||
* This software is licensed under the terms of the MIT license. | ||
* https://opensource.org/licenses/MIT | ||
*/ | ||
|
||
namespace Pterodactyl\Http\Middleware; | ||
|
||
use Closure; | ||
use Illuminate\Http\Request; | ||
use Illuminate\Foundation\Application; | ||
use Illuminate\Contracts\Config\Repository; | ||
|
||
class LanguageMiddleware | ||
{ | ||
|
@@ -21,33 +13,26 @@ class LanguageMiddleware | |
*/ | ||
private $app; | ||
|
||
/** | ||
* @var \Illuminate\Contracts\Config\Repository | ||
*/ | ||
private $config; | ||
|
||
/** | ||
* LanguageMiddleware constructor. | ||
* | ||
* @param \Illuminate\Foundation\Application $app | ||
* @param \Illuminate\Contracts\Config\Repository $config | ||
* @param \Illuminate\Foundation\Application $app | ||
*/ | ||
public function __construct(Application $app, Repository $config) | ||
public function __construct(Application $app) | ||
{ | ||
$this->app = $app; | ||
$this->config = $config; | ||
} | ||
|
||
/** | ||
* Handle an incoming request. | ||
* Handle an incoming request and set the user's preferred language. | ||
* | ||
* @param \Illuminate\Http\Request $request | ||
* @param \Closure $next | ||
* @return mixed | ||
*/ | ||
public function handle(Request $request, Closure $next) | ||
{ | ||
$this->app->setLocale($this->config->get('app.locale', 'en')); | ||
$this->app->setLocale($request->user()->language ?? config('app.locale', 'en')); | ||
|
||
return $next($request); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
app/Http/Requests/Api/Application/Locations/GetLocationRequest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.