Line 57 | Line 57 |
---|
* @param \phpbb\language\language $lang phpBB's Language loader * @param string $datetime_class Class name of datetime class */
|
* @param \phpbb\language\language $lang phpBB's Language loader * @param string $datetime_class Class name of datetime class */
|
function __construct(\phpbb\language\language $lang, $datetime_class)
| public function __construct(\phpbb\language\language $lang, $datetime_class)
|
{ global $phpbb_root_path;
| { global $phpbb_root_path;
|
Line 76 | Line 76 |
---|
public function is_setup() { return $this->is_setup_flag;
|
public function is_setup() { return $this->is_setup_flag;
|
| }
/** * Get expiration time for user tokens, e.g. activation or reset password tokens * * @return int Expiration for user tokens */ public static function get_token_expiration(): int { return strtotime('+1 day') ?: 0;
|
}
/**
| }
/**
|
Line 326 | Line 336 |
---|
if (is_string($default_value)) {
|
if (is_string($default_value)) {
|
$this->style[$key] = htmlspecialchars($this->style[$key]);
| $this->style[$key] = htmlspecialchars($this->style[$key], ENT_COMPAT);
|
} }
| } }
|