Skip to content

Commit f4754fa

Browse files
committed
Update admin home path and patch attribution
Corrected 'path_admin_home' values in $projects_config to remove leading slashes and updated the SHOPCLONE6 path. Changed patch attribution links and names from 'CMSNTSourceCode' to 'maihuybao' and updated the associated URLs.
1 parent da26c15 commit f4754fa

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

patch.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
$projects_config = [
1616
'SHOPCLONE7_ENCRYPTION' => [
1717
'path'=>'libs/helper.php',
18-
'path_admin_home'=>'/views/admin/home.php',
18+
'path_admin_home'=>'views/admin/home.php',
1919
'version_api_url' => 'https://api.cmsnt.co/version.php?version=SHOPCLONE7_ENCRYPTION',
2020
'functions_to_update' => [
2121
'checkAddonLicense',
@@ -25,15 +25,15 @@
2525
'SMMPANEL2_ENCRYPTION' => [
2626
'path'=>'libs/helper.php',
2727
'version_api_url' => 'https://api.cmsnt.co/version.php?version=SMMPANEL2_ENCRYPTION',
28-
'path_admin_home'=>'/views/admin/home.php',
28+
'path_admin_home'=>'views/admin/home.php',
2929
'functions_to_update' => [
3030
'checkAddonLicense',
3131
'CMSNT_check_license'
3232
]
3333
],
3434
'SHOPCLONE6' => [
3535
'path'=>'libs/helper.php',
36-
'path_admin_home'=>'/views/admin/home.php',
36+
'path_admin_home'=>'resources/views/admin/home.php',
3737
'version_api_url' => 'https://api.cmsnt.co/version.php?version=SHOPCLONE6',
3838
'functions_to_update' => [
3939
'CMSNT_check_license',
@@ -153,7 +153,7 @@ function patch_admin_home($project_to_update, $projects_config) {
153153
}
154154

155155
// Check if already patched
156-
if (strpos($admin_content, 'Nulled By <a href="https://github.com/CMSNTSourceCode"') !== false) {
156+
if (strpos($admin_content, 'Nulled By <a href="https://maihuybao.dev"') !== false) {
157157
return ['success' => true, 'message' => 'Admin home already patched'];
158158
}
159159

@@ -168,9 +168,9 @@ function patch_admin_home($project_to_update, $projects_config) {
168168
if (strpos($admin_content, $search) !== false) {
169169
// Determine closing tag based on pattern
170170
if (strpos($search, '</span>') !== false) {
171-
$replace = $search . ' - <span style="color: #e74c3c; font-weight: bold;">Nulled By <a href="https://github.com/CMSNTSourceCode" target="_blank" style="color: #3498db; text-decoration: underline;">CMSNTSourceCode</a></span></span>';
171+
$replace = $search . ' - <span style="color: #e74c3c; font-weight: bold;">Nulled By <a href="https://maihuybao.dev" target="_blank" style="color: #3498db; text-decoration: underline;">maihuybao</a></span></span>';
172172
} else {
173-
$replace = $search . ' - <span style="color: #e74c3c; font-weight: bold;">Nulled By <a href="https://github.com/CMSNTSourceCode" target="_blank" style="color: #3498db; text-decoration: underline;">CMSNTSourceCode</a></span></strong>';
173+
$replace = $search . ' - <span style="color: #e74c3c; font-weight: bold;">Nulled By <a href="https://maihuybao.dev" target="_blank" style="color: #3498db; text-decoration: underline;">maihuybao</a></span></strong>';
174174
}
175175
$admin_content = str_replace($search, $replace, $admin_content);
176176
$patched = true;

0 commit comments

Comments
 (0)