mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Replace the DOCUMENT_ROOT and PROJECT_ROOT variables
Use the __DIR__ constant and dirname as needed
This commit is contained in:
@@ -124,7 +124,7 @@ function upload_file($sql, $broadcast_phone_numbers) {
|
||||
if (if_group("superadmin")) {
|
||||
$broadcast_accountcode = $_POST["broadcast_accountcode"];
|
||||
}
|
||||
else if (if_group("admin") && file_exists($_SERVER["PROJECT_ROOT"]."/app/billing/app_config.php")){
|
||||
else if (if_group("admin") && file_exists(dirname(__DIR__, 2)."/app/billing/app_config.php")){
|
||||
$sql = "select count(*) ";
|
||||
$sql .= "from v_billings ";
|
||||
$sql .= "where domain_uuid = :domain_uuid ";
|
||||
|
||||
Reference in New Issue
Block a user