From 8b3cfb514b07e044526f48a980ece3dfb71f22d2 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 8 Aug 2025 21:43:51 -0400 Subject: [PATCH] fix names --- app/Controllers/Provision.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controllers/Provision.php b/app/Controllers/Provision.php index 78b46db..4562571 100644 --- a/app/Controllers/Provision.php +++ b/app/Controllers/Provision.php @@ -177,7 +177,7 @@ class Provision extends BaseController $composer_template_contents = str_replace("CNT_DB_PASS", $provisionUID, $composer_template_contents); $composer_template_contents = str_replace("CNT_DB_DATA", '172.16.4.96:3307', $composer_template_contents); $composer_template_contents = str_replace("PROVISION_UID_REPLACE", $provisionUID, $composer_template_contents); - $templateRandom = rand(1,6).'p'; + $templateRandom = 'p'. rand(1,6); $composer_template_contents = str_replace("TEMPLATE_NAME_REPLACE", $templateRandom, $composer_template_contents); @@ -375,7 +375,7 @@ class Provision extends BaseController $composer_template_contents = str_replace("CNT_DB_PASS", $provisionUID, $composer_template_contents); $composer_template_contents = str_replace("CNT_DB_DATA", '172.16.4.96:3307', $composer_template_contents); $composer_template_contents = str_replace("PROVISION_UID_REPLACE", $provisionUID, $composer_template_contents); - $templateRandom = rand(1,6).'p'; + $templateRandom = 'p'. rand(1,6); $composer_template_contents = str_replace("TEMPLATE_NAME_REPLACE", $templateRandom, $composer_template_contents); //Save to the specific path $composerFile = fopen($destination_composer_path, "w") or die("Unable to open file!");