no message

This commit is contained in:
StudioTem committed 2025-07-04 15:54:49 +02:00
1 parent 1b7dc98915
commit 7964753a83
2 files changed
+26 -13

No files matched your search

@@ -20,18 +20,20 @@ Odkaz na Task: {{ url( env( 'APP_URL_FE' ) . '/#/app/dashboard/tasks?subtask=' .
$pattern_mac = '/\\\\serverjl\\\\[^ ]*/';
// Define the callback function to replace links
function replace_smb_links($matches) {
$link = $matches[0];
if (strpos($link, 'smb://serverjl') === 0) {
// Windows link
$windows_link = str_replace('smb://serverjl', '\\\\serverjl\\', $link);
return "<br>Windows: $windows_link <br> Mac: $link <br>";
} elseif (strpos($link, '\\\\serverjl\\') === 0) {
// Mac link
$mac_link = str_replace('\\\\serverjl\\', 'smb://serverjl', $link);
return "<br>Windows: $link <br> Mac: $mac_link <br>";
}
return $link; // In case no pattern matches, return the original link
if (!function_exists('replace_smb_links')) {
function replace_smb_links($matches) {
$link = $matches[0];
if (strpos($link, 'smb://serverjl') === 0) {
// Windows link
$windows_link = str_replace('smb://serverjl', '\\\\serverjl\\', $link);
return "<br>Windows: $windows_link <br> Mac: $link <br>";
} elseif (strpos($link, '\\\\serverjl\\') === 0) {
// Mac link
$mac_link = str_replace('\\\\serverjl\\', 'smb://serverjl', $link);
return "<br>Windows: $link <br> Mac: $mac_link <br>";
}
return $link; // In case no pattern matches, return the original link
}
}
// Replace SMB links using the callback function