From 2cf1c90aa2e828882816bfef9d44a5bff647b03f Mon Sep 17 00:00:00 2001 From: Arnaud Lier Date: Sat, 30 Mar 2024 13:47:45 +0000 Subject: [PATCH] Add Uninstalling Automatic phpMyAdmin for Pterodactyl --- ...ng-Automatic-phpMyAdmin-for-Pterodactyl.md | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Uninstalling-Automatic-phpMyAdmin-for-Pterodactyl.md diff --git a/Uninstalling-Automatic-phpMyAdmin-for-Pterodactyl.md b/Uninstalling-Automatic-phpMyAdmin-for-Pterodactyl.md new file mode 100644 index 0000000..c634f23 --- /dev/null +++ b/Uninstalling-Automatic-phpMyAdmin-for-Pterodactyl.md @@ -0,0 +1,61 @@ +# Pterodactyl +### Remove the changed files and replace them with the originals +Let's start with the modified files that must be returned to their original state. +The list below contains the file to be modified, and the attached link the original file to be used to replace the file to be modified + +(Uninstallation instructions for Automatic-phpMyAdmin >= 2.0.0 will be done by the end of next week) + +### For Pterodactyl 1.10 and higher (Automatic-phpMyAdmin < 2.0.0): +- [`app/Http/Controllers/Api/Client/Servers/DatabaseController.php`](https://github.com/pterodactyl/panel/blob/release/v1.10.1/app/Http/Controllers/Api/Client/Servers/DatabaseController.php) +- [`app/Models/Permission.php`](https://github.com/pterodactyl/panel/blob/release/v1.10.1/app/Models/Permission.php) +- [`app/Services/Databases/DatabaseManagementService.php`](https://github.com/pterodactyl/panel/blob/release/v1.10.1/app/Services/Databases/DatabaseManagementService.php) +- [`routes/api-client.php`](https://github.com/pterodactyl/panel/blob/release/v1.10.1/routes/api-client.php) +- [`resources/scripts/components/server/databases/DatabaseRow.tsx`](https://github.com/pterodactyl/panel/blob/release/v1.10.1/resources/scripts/components/server/databases/DatabaseRow.tsx) +- Delete `resources/scripts/api/server/databases/gettokenDatabase.ts` +- Delete `app/Http/Requests/Api/Client/Servers/Databases/GetTokenDatabaseRequest.php` + +### For Pterodactyl 1.9 (Automatic-phpMyAdmin < 2.0.0): +- [`app/Http/Controllers/Api/Client/Servers/DatabaseController.php`](https://github.com/pterodactyl/panel/blob/release/v1.9.2/app/Http/Controllers/Api/Client/Servers/DatabaseController.php) +- [`app/Models/Permission.php`](https://github.com/pterodactyl/panel/blob/release/v1.9.2/app/Models/Permission.php) +- [`app/Services/Databases/DatabaseManagementService.php`](https://github.com/pterodactyl/panel/blob/release/v1.9.2/app/Services/Databases/DatabaseManagementService.php) +- [`routes/api-client.php`](https://github.com/pterodactyl/panel/blob/release/v1.9.2/routes/api-client.php) +- [`resources/scripts/components/server/databases/DatabaseRow.tsx`](https://github.com/pterodactyl/panel/blob/release/v1.9.2/resources/scripts/components/server/databases/DatabaseRow.tsx) +- Delete `resources/scripts/api/server/databases/gettokenDatabase.ts` +- Delete `app/Http/Requests/Api/Client/Servers/Databases/GetTokenDatabaseRequest.php` + +### For Pterodactyl 1.8.X (Automatic-phpMyAdmin < 2.0.0): +- [`app/Http/Controllers/Api/Client/Servers/DatabaseController.php`](https://github.com/pterodactyl/panel/blob/release/v1.8.1/app/Http/Controllers/Api/Client/Servers/DatabaseController.php) +- [`app/Models/Permission.php`](https://github.com/pterodactyl/panel/blob/release/v1.8.1/app/Models/Permission.php) +- [`app/Services/Databases/DatabaseManagementService.php`](https://github.com/pterodactyl/panel/blob/release/v1.8.1/app/Services/Databases/DatabaseManagementService.php) +- [`routes/api-client.php`](https://github.com/pterodactyl/panel/blob/release/v1.8.1/routes/api-client.php) +- [`resources/scripts/components/server/databases/DatabaseRow.tsx`](https://github.com/pterodactyl/panel/blob/release/v1.8.1/resources/scripts/components/server/databases/DatabaseRow.tsx) +- Delete `resources/scripts/api/server/databases/gettokenDatabase.ts` +- Delete `app/Http/Requests/Api/Client/Servers/Databases/GetTokenDatabaseRequest.php` + +### For Pterodactyl prior to 1.8 (Automatic-phpMyAdmin < 2.0.0): +- [`app/Http/Controllers/Api/Client/Servers/DatabaseController.php`](https://github.com/pterodactyl/panel/blob/release/v1.7.0/app/Http/Controllers/Api/Client/Servers/DatabaseController.php) +- [`app/Models/Permission.php`](https://github.com/pterodactyl/panel/blob/release/v1.7.0/app/Models/Permission.php) +- [`app/Services/Databases/DatabaseManagementService.php`](https://github.com/pterodactyl/panel/blob/release/v1.7.0/app/Services/Databases/DatabaseManagementService.php) +- [`routes/api-client.php`](https://github.com/pterodactyl/panel/blob/release/v1.7.0/routes/api-client.php) +- [`resources/scripts/components/server/databases/DatabaseRow.tsx`](https://github.com/pterodactyl/panel/blob/release/v1.7.0/resources/scripts/components/server/databases/DatabaseRow.tsx) +- Delete `resources/scripts/api/server/databases/gettokenDatabase.ts` +- Delete `app/Http/Requests/Api/Client/Servers/Databases/GetTokenDatabaseRequest.php` + +Now that all the files modified by the addon are back to their original content, you can rebuild the panel by running these commands in your SSH terminal: +```bash +cd /var/www/pterodactyl +yarn build:production +``` + +# phpMyAdmin +- Delete `token.php` +- Delete `token-logout.php` + +Don't forget to remove all these lines from every server from your config files : +```php +$cfg['Servers'][$i]['SignonSession'] = 'TokenSession'; +$cfg['Servers'][$i]['SignonURL'] = 'token.php'; +$cfg['Servers'][$i]['LogoutURL'] = 'token-logout.php'; +``` + +Automatic-phpMyAdmin is now uninstalled from your system. \ No newline at end of file