Addded cifurl and -cable url to Preordercampaign

This commit is contained in:
Frank Schubert
2024-02-23 16:37:12 +01:00
parent ec1d6f803c
commit 8fbea5f824
7 changed files with 122 additions and 7 deletions

View File

@@ -287,8 +287,6 @@ class mfBaseController {
// Helper functions
public static function dateToTimestamp($date) {
$t = array(0,0,0);
// extract day, month, year
if (!preg_match('/^(\d{1,2})\.(\d{1,2})\.(\d{2,4})/',$date,$d)) {
return false;
@@ -298,6 +296,8 @@ class mfBaseController {
if (!$t[3]) {
$t[3] = 0;
}
} else {
$t = array(0,0,0);
}
// make and return timestamp
$ts = mktime($t[1],$t[2],$t[3],$d[2],$d[1],$d[3]);