Replace the DOCUMENT_ROOT and PROJECT_ROOT variables

Use the __DIR__ constant and dirname as needed
This commit is contained in:
FusionPBX
2025-12-08 14:12:19 -07:00
committed by GitHub
parent df90513f86
commit 6b063f2c28
84 changed files with 217 additions and 210 deletions

View File

@@ -77,8 +77,8 @@
//includes
//require_once('resources/pop3/mime_parser.php');
//require_once('resources/pop3/rfc822_addresses.php');
//if (file_exists($_SERVER["PROJECT_ROOT"]."/app/emails/email_transcription.php")) {
// require_once($_SERVER["PROJECT_ROOT"]."/app/emails/email_transcription.php");
//if (file_exists(dirname(__DIR__, 1)."/app/emails/email_transcription.php")) {
// require_once(dirname(__DIR__, )."/app/emails/email_transcription.php");
//}
//parse the email