X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=inc%2Futils.php;h=cee9d9a2a2d7e26650f144e351a214366f7396fc;hp=04aeff9817cc424dc83b4060082e39bbfbbfc027;hb=2342c1689c6155fc545c372e24dbcac27fcf21e9;hpb=4acc8da49e3d4083fd9906388dd8fe0212bb9f42 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;