method getIdFromMagicString documentation in bbn\User

Retrieves a user's ID from the hotlink's magic string.

function(string $id, string $key) { if ($val = $this->db->rselect( $this->class_cfg['tables']['hotlinks'], [ $this->class_cfg['arch']['hotlinks']['magic'], $this->class_cfg['arch']['hotlinks']['id_user'], ],[ $this->class_cfg['arch']['hotlinks']['id'] => $id, [$this->class_cfg['arch']['hotlinks']['expire'], '>', date('Y-m-d H:i:s')] ] ) ) { if (self::isMagicString($key, $val[$this->class_cfg['arch']['hotlinks']['magic']])) { return $val['id_user']; } } return null; }

Retrieves a user's ID from the hotlink's magic string. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.