fix: ensure phpMyAdmin signin bridge + auto plugin migrations + PMA tmp dir

- Add plogical/phpmyadmin_utils.ensure_phpmyadmin_signin_bridge: restore
  phpmyadminsignin.php and tmp/ if missing (fixes 404 on /phpmyadmin/phpmyadminsignin.php).
- Call from databases phpMyAdmin page, fetchDetailsPHPMYAdmin, install, and upgrade PMA paths.
- install/upgrade: use makedirs(..., exist_ok=True) for phpmyadmin/tmp instead of mkdir.
- pluginInstaller: run migrate when migrations/ contains modules OR enable_migrations;
  use CyberCP venv python; --noinput for migrate; log non-zero exits.
This commit is contained in:
master3395
2026-03-27 01:15:33 +01:00
parent d66ea24997
commit 3af98321d3
6 changed files with 131 additions and 18 deletions

View File

@@ -31,6 +31,11 @@ class DatabaseManager:
return proc.render()
def phpMyAdmin(self, request = None, userID = None):
try:
from plogical.phpmyadmin_utils import ensure_phpmyadmin_signin_bridge
ensure_phpmyadmin_signin_bridge()
except BaseException:
pass
template = 'databases/phpMyAdmin.html'
proc = httpProc(request, template, None, 'createDatabase')
return proc.render()