Skip to content

Commit fc38b09

Browse files
committed
Merge branch 'develop' into feature/service-changes
2 parents a2d2069 + c3775f4 commit fc38b09

File tree

169 files changed

+2256
-2277
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+2256
-2277
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 4 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,6 @@
1-
<!-- The checkboxes below can be clicked once you submit this report if you'd like -->
2-
<!-- You can also use "- [x]" to mark it as checked. -->
3-
## Product
4-
Please check the corresponding boxes below for which products this is about.
1+
Please describe your issue in full below. Include what products are affected, as well as what version(s) you are running. Please also include information about your system, such as `uname -a` and `php -v` and `docker info` if applicable.
52

6-
- [ ] Panel
7-
- [ ] Daemon
8-
- [ ] Dockerfile(s) [Please list if so: __ ]
3+
If you're just making a suggestion, be descriptive, and link to any issues that might be releated as well.
94

10-
## Type
11-
- [ ] Bug or Issue
12-
- [ ] Feature Request
13-
- [ ] Enhancement
14-
- [ ] Other
15-
16-
<!-- You only need to fill out the information below if this is a bug report. -->
17-
<!-- Please delete this line and everything below if this is NOT a bug report. -->
18-
19-
## What Happens
20-
<!-- Please include a description of what is happening when you encounter this bug. -->
21-
22-
## How to Reproduce
23-
<!-- Please provide us a list of step for how to reproduce this issue. -->
24-
25-
1. Step 1
26-
2. Step 2
27-
3. etc.
28-
29-
## Error Logs
30-
<!-- Please include a paste output of the errors if they are logged. They can be found in: -->
31-
<!-- Panel: /var/www/pterodactyl/html/storage/logs/ Daemon: /srv/daemon/logs -->
32-
<!-- You can also paste them on https://gist.github.com and include their links below. -->
33-
34-
```
35-
error logs
36-
```
37-
38-
## System Information
39-
#### Output of `uname -a`:
40-
41-
```
42-
paste here
43-
```
44-
45-
#### Output of `php -v` (if Panel):
46-
47-
```
48-
paste here
49-
```
50-
51-
#### Output of `node -v` (if Daemon):
52-
53-
```
54-
paste here
55-
```
56-
57-
#### Output of `docker info` and `docker -v` (if Daemon or Dockerfiles):
58-
59-
```
60-
paste here
61-
```
5+
You can delete from this line up.
6+
---------------------

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,29 @@ This file is a running track of new features and fixes to each version of the pa
33

44
This project follows [Semantic Versioning](http://semver.org) guidelines.
55

6+
## v0.5.5 (Bodacious Boreopterus)
7+
### Added
8+
* New API route to return allocations given a server ID. This adds support for a community-driven WHMCS module :rocket: available [here](https://github.com/hammerdawn/Pterodactyl-WHMCS).
9+
10+
### Fixed
11+
* Fixes subuser display when trying to edit an existing subuser.
12+
13+
## v0.5.4 (Bodacious Boreopterus)
14+
### Added
15+
* Changing node configuration values now automatically makes a call to the daemon and updates the configuration there. Changing daemon tokens now does not require any intervention, and takes effect immediately. SSL & Port configurations will still require a daemon reboot.
16+
* New button in file manager that triggers the right click menu to enable support on mobile devices and those who cannot right click (blessed be them).
17+
* Support for filtering users when listing all users on the system.
18+
* Container ID and User ID on the daemon are now shown when viewing a server in the panel.
19+
20+
### Changed
21+
* File uploads now account for a maximum file size that is assigned for the daemon, and gives cleaner errors when that limit is reached.
22+
* File upload limit can now be controlled from the panel.
23+
* Updates regex and default values for some Minecraft services to reflect current technology.
24+
25+
### Fixed
26+
* Fixes potential for generated password to not meet own validation requirements.
27+
* Fixes some regex checking issues with newer versions of Minecraft.
28+
629
## v0.5.3 (Bodacious Boreopterus)
730
### Fixed
831
* Fixed an error that occurred when viewing a node listing when no nodes were created yet due to a mis-declared variable. Also fixes a bug that would have all nodes trying to connect to the daemon using the same secret token on the node listing, causing only the last node to display properly.

app/Console/Commands/ClearServices.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Pterodactyl - Panel
4-
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>
4+
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>.
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -21,10 +21,10 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
*/
24+
2425
namespace Pterodactyl\Console\Commands;
2526

2627
use DB;
27-
2828
use Illuminate\Console\Command;
2929

3030
class ClearServices extends Command
@@ -60,8 +60,7 @@ public function __construct()
6060
*/
6161
public function handle()
6262
{
63-
64-
if (!$this->confirm('This is a destructive operation, are you sure you wish to continue?')) {
63+
if (! $this->confirm('This is a destructive operation, are you sure you wish to continue?')) {
6564
$this->error('Canceling.');
6665
exit();
6766
}

app/Console/Commands/ClearTasks.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Pterodactyl - Panel
4-
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>
4+
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>.
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -21,19 +21,16 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
*/
24+
2425
namespace Pterodactyl\Console\Commands;
2526

26-
use DB;
2727
use Carbon;
2828
use Pterodactyl\Models;
2929
use Illuminate\Console\Command;
3030
use Illuminate\Foundation\Bus\DispatchesJobs;
3131

32-
use Pterodactyl\Jobs\SendScheduledTask;
33-
3432
class ClearTasks extends Command
3533
{
36-
3734
use DispatchesJobs;
3835

3936
/**

app/Console/Commands/Inspire.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ class Inspire extends Command
2828
*/
2929
public function handle()
3030
{
31-
$this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
31+
$this->comment(PHP_EOL . Inspiring::quote() . PHP_EOL);
3232
}
3333
}

app/Console/Commands/MakeUser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Pterodactyl - Panel
4-
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>
4+
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>.
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -21,11 +21,10 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
*/
24+
2425
namespace Pterodactyl\Console\Commands;
2526

26-
use Hash;
2727
use Illuminate\Console\Command;
28-
2928
use Pterodactyl\Repositories\UserRepository;
3029

3130
class MakeUser extends Command
@@ -77,6 +76,7 @@ public function handle()
7776
try {
7877
$user = new UserRepository;
7978
$user->create($email, $password, $admin);
79+
8080
return $this->info('User successfully created.');
8181
} catch (\Exception $ex) {
8282
return $this->error($ex->getMessage());

app/Console/Commands/RunTasks.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Pterodactyl - Panel
4-
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>
4+
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>.
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -21,19 +21,17 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
*/
24+
2425
namespace Pterodactyl\Console\Commands;
2526

26-
use DB;
2727
use Carbon;
2828
use Pterodactyl\Models;
2929
use Illuminate\Console\Command;
30-
use Illuminate\Foundation\Bus\DispatchesJobs;
31-
3230
use Pterodactyl\Jobs\SendScheduledTask;
31+
use Illuminate\Foundation\Bus\DispatchesJobs;
3332

3433
class RunTasks extends Command
3534
{
36-
3735
use DispatchesJobs;
3836

3937
/**

app/Console/Commands/ShowVersion.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Pterodactyl - Panel
4-
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>
4+
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>.
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -21,10 +21,11 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
*/
24+
2425
namespace Pterodactyl\Console\Commands;
2526

26-
use Illuminate\Console\Command;
2727
use Version;
28+
use Illuminate\Console\Command;
2829

2930
class ShowVersion extends Command
3031
{

app/Console/Commands/UpdateEmailSettings.php

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Pterodactyl - Panel
4-
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>
4+
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>.
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -21,6 +21,7 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
*/
24+
2425
namespace Pterodactyl\Console\Commands;
2526

2627
use Illuminate\Console\Command;
@@ -66,7 +67,7 @@ public function handle()
6667
{
6768
$variables = [];
6869
$file = base_path() . '/.env';
69-
if (!file_exists($file)) {
70+
if (! file_exists($file)) {
7071
$this->error('Missing environment file! It appears that you have not installed this panel correctly.');
7172
exit();
7273
}
@@ -75,35 +76,35 @@ public function handle()
7576

7677
$this->table([
7778
'Option',
78-
'Description'
79+
'Description',
7980
], [
8081
[
8182
'smtp',
82-
'SMTP Server Email'
83+
'SMTP Server Email',
8384
],
8485
[
8586
'mail',
86-
'PHP\'s Internal Mail Server'
87+
'PHP\'s Internal Mail Server',
8788
],
8889
[
8990
'mailgun',
90-
'Mailgun Email Service'
91+
'Mailgun Email Service',
9192
],
9293
[
9394
'mandrill',
94-
'Mandrill Transactional Email Service'
95+
'Mandrill Transactional Email Service',
9596
],
9697
[
9798
'postmark',
98-
'Postmark Transactional Email Service'
99-
]
99+
'Postmark Transactional Email Service',
100+
],
100101
]);
101102
$variables['MAIL_DRIVER'] = is_null($this->option('driver')) ? $this->choice('Which email driver would you like to use?', [
102103
'smtp',
103104
'mail',
104105
'mailgun',
105106
'mandrill',
106-
'postmark'
107+
'postmark',
107108
]) : $this->option('driver');
108109

109110
switch ($variables['MAIL_DRIVER']) {

app/Console/Commands/UpdateEnvironment.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Pterodactyl - Panel
4-
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>
4+
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>.
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -21,6 +21,7 @@
2121
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222
* SOFTWARE.
2323
*/
24+
2425
namespace Pterodactyl\Console\Commands;
2526

2627
use Uuid;
@@ -66,23 +67,22 @@ public function __construct()
6667
*/
6768
public function handle()
6869
{
69-
7070
$variables = [];
7171
$file = base_path() . '/.env';
72-
if (!file_exists($file)) {
72+
if (! file_exists($file)) {
7373
$this->error('Missing environment file! It appears that you have not installed this panel correctly.');
7474
exit();
7575
}
7676

7777
$envContents = file_get_contents($file);
7878

7979
$this->info('Simply leave blank and press enter to fields that you do not wish to update.');
80-
if (!env('SERVICE_AUTHOR', false)) {
80+
if (! env('SERVICE_AUTHOR', false)) {
8181
$this->info('No service author set, setting one now.');
8282
$variables['SERVICE_AUTHOR'] = env('SERVICE_AUTHOR', (string) Uuid::generate(4));
8383
}
8484

85-
if (!env('QUEUE_STANDARD', false) || !env('QUEUE_DRIVER', false)) {
85+
if (! env('QUEUE_STANDARD', false) || ! env('QUEUE_DRIVER', false)) {
8686
$this->info('Setting default queue settings.');
8787
$variables['QUEUE_DRIVER'] = env('QUEUE_DRIVER', 'database');
8888
$variables['QUEUE_HIGH'] = env('QUEUE_HIGH', 'high');
@@ -91,25 +91,25 @@ public function handle()
9191
}
9292

9393
if (is_null($this->option('dbhost'))) {
94-
$variables['DB_HOST'] = $this->anticipate('Database Host', [ 'localhost', '127.0.0.1', env('DB_HOST') ], env('DB_HOST'));
94+
$variables['DB_HOST'] = $this->anticipate('Database Host', ['localhost', '127.0.0.1', env('DB_HOST')], env('DB_HOST'));
9595
} else {
9696
$variables['DB_HOST'] = $this->option('dbhost');
9797
}
9898

9999
if (is_null($this->option('dbport'))) {
100-
$variables['DB_PORT'] = $this->anticipate('Database Port', [ 3306, env('DB_PORT') ], env('DB_PORT'));
100+
$variables['DB_PORT'] = $this->anticipate('Database Port', [3306, env('DB_PORT')], env('DB_PORT'));
101101
} else {
102102
$variables['DB_PORT'] = $this->option('dbport');
103103
}
104104

105105
if (is_null($this->option('dbname'))) {
106-
$variables['DB_DATABASE'] = $this->anticipate('Database Name', [ 'pterodactyl', 'homestead', ENV('DB_DATABASE') ], env('DB_DATABASE'));
106+
$variables['DB_DATABASE'] = $this->anticipate('Database Name', ['pterodactyl', 'homestead', ENV('DB_DATABASE')], env('DB_DATABASE'));
107107
} else {
108108
$variables['DB_DATABASE'] = $this->option('dbname');
109109
}
110110

111111
if (is_null($this->option('dbuser'))) {
112-
$variables['DB_USERNAME'] = $this->anticipate('Database Username', [ ENV('DB_DATABASE') ], env('DB_USERNAME'));
112+
$variables['DB_USERNAME'] = $this->anticipate('Database Username', [ENV('DB_DATABASE')], env('DB_USERNAME'));
113113
} else {
114114
$variables['DB_USERNAME'] = $this->option('dbuser');
115115
}

0 commit comments

Comments
 (0)