X-Git-Url: https://dev.renevier.net/gitweb.cgi?a=blobdiff_plain;f=inc%2Futils.php;h=cee9d9a2a2d7e26650f144e351a214366f7396fc;hb=d31c25de8cf1735ca350f55b3520f7bbcb5e2c2e;hp=04aeff9817cc424dc83b4060082e39bbfbbfc027;hpb=e4a4e5149d55cf01a86f26392c52fdca803654ce;p=syp.git diff --git a/inc/utils.php b/inc/utils.php index 04aeff9..cee9d9a 100644 --- a/inc/utils.php +++ b/inc/utils.php @@ -14,6 +14,10 @@ function gethost() { return $host; } +function basename_safe ($path) { + return end (explode ("/", $path)); +} + function unquote($gpc_str) { if (!isset ($gpc_str)) { return $gpc_str;