- if (isset($_GET['sql_patches'])) {
- // Special logout redirect for sql_patchrs
- LOAD_TEMPLATE("admin_logout_sql_patches");
+ if (isset($_GET['register'])) {
+ // Secure input
+ $register = secureString(SQL_ESCAPE($_GET['register']));
+
+ // Special logout redirect for installation of given extension
+ LOAD_TEMPLATE(sprintf("admin_logout_%s_install", $register));
+ } elseif (isset($_GET['remove'])) {
+ // Secure input
+ $remove = secureString(SQL_ESCAPE($_GET['remove']));
+
+ // Special logout redirect for removal of given extension
+ LOAD_TEMPLATE(sprintf("admin_logout_%s_remove", $remove));