1
0
mirror of https://github.com/LinkStackOrg/LinkStack.git synced 2025-04-20 05:07:22 +02:00

Added uri function

This commit is contained in:
Julian Prieber 2023-05-25 18:00:00 +02:00
parent d1d1e86993
commit 8caf099eaa

@ -11,3 +11,8 @@ function external_file_get_contents($url) {
curl_close($ch); curl_close($ch);
return $data; return $data;
} }
function uri($path) {
$url = str_replace(['http://', 'https://'], '', url(''));
return "//" . $url . "/" . $path;
}