defender::pageHash PHP Метод

pageHash() публичный статический Метод

Generates a md5 hash of the current page to make token session unique Eg. /php-fusion/infusions/blog/blog.php for Non
public static pageHash ( $file = "" ) : string
Результат string
    public static function pageHash($file = "")
    {
        if (fusion_get_settings("site_seo") == 1 && !preg_match('/administration/i', $_SERVER['PHP_SELF'])) {
            //$hash = md5($_SERVER['REQUEST_URI']);
            $hash = md5("seo");
        } else {
            if (!empty($file)) {
                $hash = md5($file);
            } else {
                $hash = md5($_SERVER['PHP_SELF']);
            }
        }
        return (string) $hash;
    }