Add version checking to daemon and panel

Also includes some buttons for users to get help from the panel.
This commit is contained in:
Dane Everitt 2016-11-26 19:29:57 -05:00
parent 261535d83d
commit 90cd2b677e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 157 additions and 9 deletions

View file

@ -24,6 +24,7 @@
namespace Pterodactyl\Console\Commands;
use Illuminate\Console\Command;
use Version;
class ShowVersion extends Command
{
@ -58,6 +59,6 @@ class ShowVersion extends Command
*/
public function handle()
{
$this->info('You are running Pterodactyl Panel ' . config('app.version'));
$this->info('You are running Pterodactyl Panel v' . Version::getCurrentPanel() . ' (' . ((Version::isLatestPanel()) ? 'Up to Date' : 'Latest: ' . Version::getDaemon()) . ')');
}
}