Commit graph

203 commits

Author SHA1 Message Date
purple
8b15d1577b Import BlueprintClientLibrary directly in the client wrapper instead of BaseController. 2023-09-13 21:31:19 +02:00
purple
efc5bd6763 Remove Admin/BaseController.php as it's not needed anymore. 2023-09-11 16:06:22 +02:00
purple
021d115578 Think about potentional ways to fix $blueprint in admin wrappers. 2023-09-07 22:11:58 +02:00
purple
00fd7975bf Attempt at making BlueprintExtensionLibrary usable on all admin views without overwriting all of their controllers. 2023-09-07 21:12:33 +02:00
purple
cbfb8f9ce1 Improve admin notification api by using Pterodactyl database instead of local files. 2023-09-07 20:51:45 +02:00
purple
d6b854c7ea Fine, I'll rename the legacy $blueprint back to "BlueprintExtensionLibrary" 2023-09-07 18:31:23 +02:00
purple
2b951c36eb Move backwards-compatible ExtensionLibrary back to Services/Helpers/ 2023-09-07 18:26:27 +02:00
purple
55d7595ad4 Move legacy BlueprintExtensionLibrary to the BlueprintFramework app folder for backwards compatability 2023-09-07 18:06:43 +02:00
purple
09f9c6fc68 Fix yet another incorrect class name. 2023-09-07 16:24:28 +02:00
purple
474a4f52ff Fix unedited class names for importing the BlueprintExtensionLibrary. 2023-09-07 16:21:27 +02:00
purple
942285cab3 Move all Blueprint libraries into a new "BlueprintFramework" folder in the app directory.
I also added a "legacy" extensionlibrary for backwards compatability for now.
2023-09-07 16:17:04 +02:00
purple
444df78718 Add fileMake and fileWipe to BlueprintExtensionLibrary 2023-09-03 15:45:54 +02:00
purple
93d56b5710 Make $blueprint accessible in admin wrappers. 2023-09-03 15:33:39 +02:00
purple
fe7ae61e6c Attempt at making $blueprint accessible in dashboard wrappers. 2023-09-03 14:53:36 +02:00
purple
ce46c8b6f5 Add yet even more comments and tell what a lot of things do.
Improves readability a ton, trust me.
2023-08-31 10:51:44 +02:00
purple
bc93e6d4c3 Add more comments and make code more readable. 2023-08-29 14:18:07 +02:00
purple
5a5154aeb9 Developer commands are now hidden when developer mode is not enabled. 2023-08-07 15:50:54 +02:00
purple
bb86229500 Add better support for panels installed in other locations. 2023-07-25 22:42:32 +02:00
purple
ecd0997113 dashboard_wrapper is now inserted outside of <head> and modify error text for users with a unfinished installation. 2023-07-20 11:46:42 +02:00
purple
087a129aef Remove developer:cmd from BlueprintExtensionController input validation.
developer:cmd has been removed in previous versions.
2023-07-17 13:48:15 +02:00
purple
4dc411503b Use config instead of exec in BlueprintExtensionController 2023-07-17 13:29:32 +02:00
purple
c3a007f7df
Start using new -config instead of -exec. 2023-07-16 20:28:38 +02:00
purple
254bf47d7b Add a semicolon at the end of the shell command ran by fileRead(path) 2023-07-12 13:43:58 +02:00
purple
f0598972e3 Add notifyNow("text") and fix error in comment. 2023-07-12 13:39:42 +02:00
purple
fb7dfcf054 Remove developer terminal completely and more.
Make Blueprint more secure, restore blueprint.sh if upgrading fails, fix problems with the BlueprintAdminFormRequest resulting in errors.
2023-06-28 16:57:05 +02:00
purple
e6fa4895fe Admin requests are now deprecated. Use them in your controller instead. 2023-06-28 15:48:44 +02:00
purple
8244cdda29 Change alphabet placeholders to __placeholder__ and more.
Add readFiles(path) to BlueprintExtensionLibrary.
2023-06-28 15:16:29 +02:00
purple
46158e6079 Arguments parsed through shell are now checked by escapeshellarc($var).
Panel administrators will no longer have access to the shell. This includes the developer terminal turning into a Blueprint execute terminal. (something you'll probably never use anyways.)
2023-06-27 21:40:35 +02:00
purple
75907bd5df Re-do the entire .blueprint folder structure.
Changing all documentation is going to suck lmao
2023-06-27 21:08:01 +02:00
purple
a52ec1a3c1 Fix indentation on VariableService and fix installation check.
Now the installation will be marked as installed after the installation script ends.
2023-06-20 18:08:25 +02:00
purple
1aec415db4 Fix indentation on PlaceholderService and make sure user has ran the installation script before using Blueprint. 2023-06-20 17:53:08 +02:00
purple
20a82b67f5 Switch to BlueprintVariableService for -exec 2023-06-18 20:29:35 +02:00
purple
6698d304ba Add telemetry test tool to blueprint.sh and fix missing dot. 2023-06-18 20:13:12 +02:00
purple
691581270b Missing semicolon decided to screw everything up 2023-06-18 19:56:42 +02:00
purple
7e9253e857 Make blueprint.sh work-in-progress telemetry more reliable. 2023-06-18 18:33:39 +02:00
purple
eb30597ff3 Add work-in-progress telemetry to blueprint.sh 2023-06-18 18:32:02 +02:00
purple
dfdb37b967 Add more comments to blueprint.sh and create new conf.yml option 2023-06-18 16:37:46 +02:00
purple
a8517cfb02 Fix some grammar. 2023-06-16 18:10:26 +02:00
purple
0b68d4dfc0 Switch to 4 space to 2 space indentation.
Not all files are included yet, but this at least improves readability for me.
2023-06-02 16:37:38 +02:00
purple
c948cb4b2f Telemetry IDs now regenerate every time you update. 2023-05-31 14:29:48 +02:00
purple
a3ce388275 Use telemetry on a different port. 2023-05-31 14:19:13 +02:00
purple
e6d710205d Make version request to BlueprintVariableService instead of attempting to access local function. 2023-05-31 10:43:14 +02:00
purple
839b602b6c Telemetry ID is now replaced with a Panel ID.
This ID contains a random string and the version of Blueprint and will be used for API calls and telemetry once that has been added.
2023-05-31 10:40:03 +02:00
purple
b5bbc75c74 Adjust BlueprintSettingsFormRequest.php for Telemetry 2023-05-09 21:48:28 +02:00
purple
3e8a596591 Fix for telemetry not being able to be enabled. 2023-05-09 21:35:06 +02:00
purple
8c938482a5 Fix small issues as a cry for help 2023-05-09 21:15:13 +02:00
purple
cb84cd76c5
Use BlueprintExtensionLibrary in BlueprintExtensionController.php
This will be used instead of manually changing the notification file.
2023-05-07 13:20:07 +02:00
purple
4ac2930ab1 Implement custom folder name support.
Attempt at supporting Docker.
2023-05-06 16:21:22 +02:00
purple
0a6d995f33 Add notifyAfter to BlueprintExtensionLibrary 2023-04-28 14:55:12 +02:00
purple
a37d82185e Remove basic user-side extension support until I'm happy with the result. 2023-04-28 14:44:23 +02:00
purple
fa5e3759fc Implement notification api for BlueprintExtensionLibrary 2023-04-24 17:34:02 +02:00
purple
f02bd90210 Allow Blueprint to function on other marketplaces without placeholder drama 2023-04-24 16:43:31 +02:00
purple
d268c35f4d Implement notifications and back-end onboarding variables 2023-04-23 20:21:09 +02:00
purple
311b2b5e2b Add else statement to onboarding check to fix undefined variable. 2023-04-23 18:37:28 +02:00
purple
294c3c85c5 Fix wrongly placed ")". 2023-04-23 18:35:26 +02:00
purple
5da90b51e9 Parse onboarding variable to /admin/extensions view. 2023-04-23 17:34:21 +02:00
purple
ed829e292b Add extra description to BlueprintExtensionLibrary 2023-04-19 10:45:50 +02:00
purple
215016d97d Add dbGet and dbSet to BlueprintExtensionLibrary 2023-04-18 17:06:54 +02:00
purple
d3cf89945b Removed a ";" breaking a whole file. 2023-04-17 14:30:29 +02:00
purple
ad7118a68c Remove commented out license validation code. 2023-04-17 13:52:14 +02:00
purple
6817e43905 Keep removing licensing systems 2023-04-17 13:48:45 +02:00
purple
ebfa1e8253
Start working on removing licensing 2023-04-17 13:15:47 +02:00
purple
0e005fb67a Work in progress fix for db. 2023-04-14 17:18:24 +02:00
purple
b2f9be203a Use different method for license obfuscation
The main method didn't work so here we are lmao
2023-04-11 21:55:28 +02:00
purple
b63c9951e0 Finish implementing telemetry 2023-04-11 21:54:57 +02:00
purple
c897348d8a Import all services into other services. 2023-04-11 20:48:17 +02:00
purple
1d8a2018bd Start working on the TelemetryService 2023-04-11 20:47:38 +02:00
purple
864cd14887 Get back once again to the obfuscated code
This allows me to simplify development by having one less thing to change for distribution. Updating the obfuscated code is just going back to this commit and just changing a couple things and obfuscating it once again.
2023-04-10 19:23:09 +02:00
purple
50b23d58b2 Revert obfuscated code for development 2023-04-10 17:25:16 +02:00
purple
adcf711111 Obfuscate the VariableService for distribution 2023-04-10 17:13:03 +02:00
purple
17fc004c93 Make things ready for distribution. 2023-04-10 16:50:23 +02:00
purple
a7c2311d0e Forgot to add /validate/ to the api request 2023-04-10 11:46:12 +02:00
purple
a593a40686 Finish implementation of backup endpoints
Also fixed a missing ";"
2023-04-10 11:37:33 +02:00
purple
5774c8a53e First steps in making backup endpoints work
with tamper prevention, only allowing specific endpoints to be used.
2023-04-10 11:35:54 +02:00
purple
001acf0515 Finalize developer terminal 2023-04-09 21:15:11 +02:00
purple
3e7d4b0e3f Attempt to work with select menu's in admin views. 2023-04-08 21:31:20 +02:00
purple
93bc533aed Fixed the settings form request for the newer migration 2023-04-08 16:16:03 +02:00
purple
b1e32ca8ae Switch to UNIX line breaks instead of DOS for not breaking linux. 2023-04-05 21:29:58 +02:00
purple
9b9480596a Remove commented out code in BlueprintExtensionController 2023-03-29 10:40:48 +02:00
purple
e964988e5f why define variables for this
honestly, younger me had a problem.
2023-03-29 10:29:49 +02:00
purple
93c891a815 No approval of a $rootPath variable
i don't even know the actual use for the $rootPath variable
2023-03-29 10:28:51 +02:00
purple
9d04faca83 Added BlueprintExtensionLibrary 2023-03-26 18:18:54 +02:00
purple
2a0198c227 deobfuscated variableservice a little bit
found a site we should use for obfuscation anyways. not much handwork needed
2023-03-19 19:48:04 +01:00
purple
8447457243 Change license server url and license key 2023-03-17 15:47:12 +01:00
purple
5c1182f927 Reverted to transactionid placeholder 2023-03-17 12:56:13 +01:00
purple
f2d8890cb6 Moved the sync function higher in the file 2023-03-08 18:26:22 +01:00
purple
c9b8fc3391 Communicate between bash and php
Allow bash and php to communicate with each other through the Blueprint command
2023-03-08 10:44:53 +01:00
purple
2b179045f0 Added a sync function
This function syncs the license key provided in the variableservice with the MySQL database. In the future, this allows us to prevent tampering with the variableservice and license service. We may even obfuscate the code in the end with ioncube once the variableservice is finished.
2023-03-08 09:56:23 +01:00
purple
3538465dfe Added a "little bit" of obfuscation 2023-03-06 20:45:55 +01:00
purple
57919d0948 Changed a few strings to just be placeholders
the power of placeholders
2023-03-06 19:11:23 +01:00
purple
b498c393c9 Obfuscated the license validation code
:)
2023-03-06 19:10:47 +01:00
purple
13ef819880 Added 2 variables to BlueprintVariableService
Just for reading and writing to the Blueprint database table made simpler.
2023-02-26 14:39:44 +01:00
purple
af7b4c30cb Updated BlueprintExtensionController
Made the code look a bit better and added a way for the admin options to save. (I later realized I could have done this using a much easier way. I'm just built different and it works. If it aint broke don't fix it.)
2023-02-26 14:38:39 +01:00
purple
ee5dd0c19c Attached dev license and altered timeout 2023-02-23 22:01:51 +01:00
purple
bf4fcd2fc7 Returned to main api instead of legacy 2023-02-22 21:13:48 +01:00
purple
322e0bb145 Version is now a variable. 2023-02-22 19:47:18 +01:00
purple
a90efac281 Switched api to domain name 2023-02-21 10:36:33 +01:00
purple
9d457fae79 Changed the license placeholder to market variable.
The license should now be autofilled by PterodactylMarket.
2023-02-21 09:24:15 +01:00
purple
180f4e1929 Added WIP license validation
The license server now has pretty spammy requests to PterodactylMarket. I'm going to fix this in a future update or in the licensing server.
2023-02-21 09:21:45 +01:00
purple
33d3403995 Replaced placeholder and added "global variables"
The replacement of the placeholder is just a work in progress. I've also discovered a few more things about PHP now, including how to do variables and stuff.
2023-02-19 19:30:47 +01:00
purple
e96596741d Moved Blueprint admin view
Changed the location of the Blueprint admin extension page to allow for better organization.
2023-02-06 20:48:21 +01:00
purple
f3472d9407 Added placeholder extension page
Added an extension page for upcoming Blueprint extensions.
2023-01-30 14:52:22 +01:00
Jack G
8851d4c0c3 Extensions Page
Extensions admin page
2023-01-27 19:30:42 +00:00