Files
CRM/fix_permissions.php
BACHIR SOULDI 2a647b138a feat: Enhance email functionality and PDF generation for Sales Orders
- Enabled SMTP debugging in PHPMailer for better error tracking.
- Added a "Test send email" link in the Inventory Detail View for quick email testing.
- Implemented automatic PDF generation and email sending upon Sales Order creation.
- Created a new action for sending Sales Order emails with attached PDFs.
- Added a new AJAX action for testing outgoing email server configurations.
- Updated outgoing server settings to use new SMTP credentials.
- Improved email templates for better user experience.
- Added test scripts for validating PDF generation and email sending.
2026-02-17 15:59:31 +01:00

25 lines
604 B
PHP

<?php
function chmodRecursive($path, $filePerm = 0644, $dirPerm = 0755)
{
if (!file_exists($path)) return false;
if (is_file($path)) {
return chmod($path, $filePerm);
}
if (is_dir($path)) {
$dir = new DirectoryIterator($path);
foreach ($dir as $item) {
if ($item->isDot()) continue;
chmodRecursive($item->getPathname(), $filePerm, $dirPerm);
}
return chmod($path, $dirPerm);
}
return false;
}
$storagePath = __DIR__ . '/storage';
chmodRecursive($storagePath);
echo "✅ Permissions fixed for storage folder.";
?>