Actionhandler geimplementeerd.

This commit is contained in:
2019-05-17 16:33:24 +02:00
parent 89dcca3021
commit 4a050eda84
12 changed files with 105 additions and 13 deletions

View File

@@ -21,7 +21,6 @@ Class HUtils{
return true;
}
static function sqlDateToPhpDate($date){
return new DateTime($date);
}
static function getPage($fetchmethod){
@@ -42,5 +41,14 @@ Class HUtils{
static function getSiteTitle(){
return "hPHPForum";
}
static function generateRandomKey(){
$token = "";
$chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
$verificationKey = "";
for ($i=0; $i < 32 ; $i++) {
$token .= $chars[rand(0, strlen($chars) - 1)];
}
return $token;
}
}
?>