THE ADAM COMPANY ERP - PHP 8.3 / MODERN UI PACKAGE ================================================== Purpose ------- This package upgrades the supplied Core PHP ERP for PHP 8.3 while preserving the existing workflows, calculations, URLs, database tables, and print layouts. Main changes ------------ 1. PHP short tags converted to portable PHP tags. 2. Removed PHP 8.3 startup fatals from the legacy PHPMailer autoloader. 3. Removed calls to the deleted get_magic_quotes_runtime() function. 4. Corrected the shared database wrapper to count SELECT result rows correctly. 5. Corrected the mysqli connection argument usage. 6. Corrected string-based error_reporting(E_ALL) calls across application and print files. 7. Disabled public display of production PHP errors while retaining server logging. 8. Added a shared responsive modern UI for forms, cards, navigation, tables, reports, login, buttons, dialogs, and mobile layouts. 9. Added print CSS for browser-printable screens. 10. Disabled directory listing and direct web access to common backup/data files. Installation (cPanel) --------------------- 1. Back up the current Adam ERP files and database. 2. Select PHP 8.3 for the target domain/subdomain in MultiPHP Manager. 3. Upload the upgraded ZIP to the document root and extract it. 4. If the URL should contain /sales, retain the included sales folder. 5. Update sales/classes/config.inc.php with the target database credentials and URL. 6. Import the supplied SQL only into a new/empty test database. Do not import it over a live database without a verified backup. 7. Use folders 755 and files 644. 8. Clear browser/CDN cache and sign in. Recommended cPanel PHP settings ------------------------------- display_errors = Off display_startup_errors = Off log_errors = On short_open_tag = Off (the application no longer depends on it) memory_limit = 512M or appropriate for your largest report max_execution_time = 300 Acceptance test checklist ------------------------- - Login, logout, forgot password, and change password - User menu rights for administrator and non-administrator accounts - Customer, supplier, product, employee, category, and bank setups - Purchase, purchase order, supplier payment, and expense workflows - Invoice creation, edit/cancel behavior, payment, refund, and bank transaction - Production batch, ingredient stock, finished stock, and packaging cost - Attendance, salary, loan, and leave workflows - Every active on-screen report, CSV/export button, and date filter - Every active PDF/print button including invoices and attendance - Totals, tax, discount, rate, stock, receivables, payables, and opening balances Important --------- The supplied source includes several historical duplicate files whose names contain dates, "old", "copy", or "staging". They have been retained so no unknown link or rollback workflow is removed. The active shared runtime has been upgraded globally.