Files
Testing/tbs/wp-content/plugins/easy-age-verifier/lib/app/age.php
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

36 lines
682 B
PHP

<?php
/**
* Age class for the verifier
* @author: Alex Standiford
* @date : 1/15/2017
*/
namespace eav\app;
if(!defined('ABSPATH')) exit;
/**
* Verifier Age Class
* Handles all things related to the visitor's age. Works from the cookie set by the Verifier form
* @package eav\app
*/
class age{
/**
* Parses the age from the date of birth
* @see self::getAgeFrom();
* @return bool|false|null|string
*/
public static function get(){
//Sets default value when a dob isn't specified
if(isset($_COOKIE['eav_age'])){
$age = $_COOKIE['eav_age'];
}
else{
$age = null;
}
return $age;
}
}