feat: Restore bb_realpath

This commit is contained in:
Roman Kelesidis 2025-07-02 12:06:25 +03:00
commit be50cb1d9c
No known key found for this signature in database
GPG key ID: D8157C4D4C4C6DB4

View file

@ -1489,6 +1489,11 @@ function bb_simple_die($txt, $status_code = null)
die($txt); die($txt);
} }
function bb_realpath($path)
{
return realpath($path);
}
function login_redirect($url = '') function login_redirect($url = '')
{ {
redirect(LOGIN_URL . '?redirect=' . (($url) ?: ($_SERVER['REQUEST_URI'] ?? '/'))); redirect(LOGIN_URL . '?redirect=' . (($url) ?: ($_SERVER['REQUEST_URI'] ?? '/')));