chore: full project audit cleanup, dead code removal, and documentation update
Dead code removed: - Module.php: remove assignBackupPlan(), getSelfServiceCurrencies() (no callers) - Cache.php: remove forgetPattern() (no callers, no-op on filesystem) - module.js: remove vfLoadSelfServiceReport() (no UI trigger) Stale files removed: - .releaserc.json (orphaned, conflicts with tag-based workflow) - .github/workflows/api-sync-check.yml (baseline never populated) - docs/openapi-baseline.yaml (placeholder stub) - scripts/generate-endpoint-doc.sh (broken grep patterns) Security fixes: - AdminHTML: cast $serverId to (int), cast $serviceId to (int) - admin.php: add explicit break after every output() call, sanitize error msgs File hygiene: - Move modify.sql into modules/servers/VirtFusionDirect/ (matches README docs) - Fix CHANGELOG.md: remove duplicate 1.0.0 entry, clean up mixed git host URLs Documentation: - CLAUDE.md: full rewrite with current architecture, Cache class, development rules (try/catch, ownership validation, HTTP methods, caching policy) - README.md: remove stale IPv4 removal references, add new features (traffic, backups, VNC toggle, password reset, OS gallery, copy buttons), add Cache.php to file structure, remove "Primary IPv4 Protection" known issue Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
49
modules/servers/VirtFusionDirect/modify.sql
Normal file
49
modules/servers/VirtFusionDirect/modify.sql
Normal file
@@ -0,0 +1,49 @@
|
||||
-- Insert records for Initial Operating System if they don't already exist
|
||||
INSERT INTO tblcustomfields
|
||||
(type, relid, fieldname, fieldtype, description, fieldoptions, regexpr, adminonly, required, showorder, showinvoice,
|
||||
sortorder, created_at, updated_at)
|
||||
SELECT 'product',
|
||||
id,
|
||||
'Initial Operating System',
|
||||
'text',
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'on',
|
||||
'',
|
||||
0,
|
||||
UTC_TIMESTAMP(),
|
||||
UTC_TIMESTAMP()
|
||||
FROM tblproducts
|
||||
WHERE servertype = 'VirtFusionDirect'
|
||||
AND NOT EXISTS (SELECT 1
|
||||
FROM tblcustomfields
|
||||
WHERE fieldname = 'Initial Operating System'
|
||||
AND relid = tblproducts.id);
|
||||
|
||||
-- Insert records for Initial SSH Key if they don't already exist
|
||||
INSERT INTO tblcustomfields
|
||||
(type, relid, fieldname, fieldtype, description, fieldoptions, regexpr, adminonly, required, showorder, showinvoice,
|
||||
sortorder, created_at, updated_at)
|
||||
SELECT 'product',
|
||||
id,
|
||||
'Initial SSH Key',
|
||||
'text',
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'on',
|
||||
'',
|
||||
0,
|
||||
UTC_TIMESTAMP(),
|
||||
UTC_TIMESTAMP()
|
||||
FROM tblproducts
|
||||
WHERE servertype = 'VirtFusionDirect'
|
||||
AND NOT EXISTS (SELECT 1
|
||||
FROM tblcustomfields
|
||||
WHERE fieldname = 'Initial SSH Key'
|
||||
AND relid = tblproducts.id);
|
||||
Reference in New Issue
Block a user