ServerPress / local-ssl

Allow DesktopServer to use SSL
4 stars 2 forks source link

Support for multiple site_removed event. #12

Open Steveorevo opened 4 years ago

Steveorevo commented 4 years ago

Currently only removes cert and key files for one site; leaving behind any multiple selections. Modify code to cycle through indexes of removed sites.

https://github.com/ServerPress/local-ssl/blob/b2cbe7acb616e9f792389dae9e4e13688733b737/prepend_0.php#L204

shadowdao commented 4 years ago

is there an array that I can step through to get the domains in multi selection?

Steveorevo commented 4 years ago

Check the length of $ds_runtime->last_ui_event->info; currently the code only deletes element 0. Cycling through all the elements would sufficiently delete all the removed sites.