1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-27 08:12:47 +01:00

Correzioni minori per individuazione modifiche

This commit is contained in:
Dasc3er 2020-11-20 16:38:37 +01:00
parent f032b4a381
commit e5c1c4e0f7

View File

@ -30,12 +30,11 @@ function customStructure()
'modules', 'modules',
'templates', 'templates',
'plugins', 'plugins',
'include',
]; ];
// Controlli di personalizzazione fisica // Controlli di personalizzazione fisica
foreach ($dirs as $dir) { foreach ($dirs as $dir) {
$files = glob(base_dir().'/'.$dir.'/*/custom/*.{php,html}', GLOB_BRACE); $files = glob(base_dir().'/'.$dir.'/*/custom/**/*.{php,html}', GLOB_BRACE);
foreach ($files as $file) { foreach ($files as $file) {
$file = str_replace(base_dir().'/', '', $file); $file = str_replace(base_dir().'/', '', $file);
$result = explode('/custom/', $file)[0]; $result = explode('/custom/', $file)[0];
@ -44,55 +43,16 @@ function customStructure()
$results[] = $result; $results[] = $result;
} }
} }
}
$files = glob(base_dir().'/'.$dir.'/*/custom/src/*.{php,html}', GLOB_BRACE); // Gestione cartella include
foreach ($files as $file) { $files = glob(base_dir().'/include/custom/**/*.{php,html}', GLOB_BRACE);
$file = str_replace(base_dir().'/', '', $file); foreach ($files as $file) {
$result = explode('/custom/', $file)[0]; $file = str_replace(base_dir().'/', '', $file);
$result = explode('/custom/', $file)[0];
if (!in_array($result, $results)) { if (!in_array($result, $results)) {
$results[] = $result; $results[] = $result;
}
}
$files = glob(base_dir().'/'.$dir.'/*/custom/src/Components/*.{php,html}', GLOB_BRACE);
foreach ($files as $file) {
$file = str_replace(base_dir().'/', '', $file);
$result = explode('/custom/', $file)[0];
if (!in_array($result, $results)) {
$results[] = $result;
}
}
$files = glob(base_dir().'/'.$dir.'/*/custom/src/API/*.{php,html}', GLOB_BRACE);
foreach ($files as $file) {
$file = str_replace(base_dir().'/', '', $file);
$result = explode('/custom/', $file)[0];
if (!in_array($result, $results)) {
$results[] = $result;
}
}
$files = glob(base_dir().'/'.$dir.'/*/custom/ajax/*.{php,html}', GLOB_BRACE);
foreach ($files as $file) {
$file = str_replace(base_dir().'/', '', $file);
$result = explode('/custom/', $file)[0];
if (!in_array($result, $results)) {
$results[] = $result;
}
}
$files = glob(base_dir().'/'.$dir.'/*/custom/widgets/*.{php,html}', GLOB_BRACE);
foreach ($files as $file) {
$file = str_replace(base_dir().'/', '', $file);
$result = explode('/custom/', $file)[0];
if (!in_array($result, $results)) {
$results[] = $result;
}
} }
} }