roundcubemail/program/lib/Roundcube/rcube.php
public function get_request_token()
    {
        if (empty($_SESSION['request_token'])) {
            $plugin = $this->plugins->exec_hook('request_token', array(
                'value' => rcube_utils::random_bytes(32)));

            $_SESSION['request_token'] = $plugin['value'];
        }

        return $_SESSION['request_token'];
    }
public function get_request_token()
    {
        if (empty($_SESSION['request_token'])) {
            $plugin = $this->plugins->exec_hook('request_token', array(
                'value' => rcube_utils::random_bytes(32)));

            $_SESSION['request_token'] = $plugin['value'];
        }

        return $_SESSION['request_token'];
    }
public function get_request_token ( ) { if ( empty ( $ _SESSION [ 'request_token' ] ) ) { $ plugin = $ this -> plugins -> exec_hook ( 'request_token' , array ( 'value' => rcube_utils :: random_bytes ( 32 ) ) ) ; $ _SESSION [ 'request_token' ] = $ plugin [ 'value' ] ; } return $ _SESSION [ 'request_token' ] ; }
Generate a unique token to be used in a form request

@return string The request token
Generate a unique token to be used in a form request