mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
feat: Restore bb_realpath
This commit is contained in:
parent
3471487091
commit
be50cb1d9c
1 changed files with 5 additions and 0 deletions
|
@ -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'] ?? '/')));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue