|
@@ 6057-6061 (lines=5) @@
|
| 6054 |
|
|
| 6055 |
|
return FunctionsDate::timestampToGedcomDate((int) $user->getPreference('reg_timestamp'))->display(false, $datestamp); |
| 6056 |
|
case 'regtime': |
| 6057 |
|
if (is_array($params) && isset($params[0]) && $params[0] != '') { |
| 6058 |
|
$datestamp = $params[0]; |
| 6059 |
|
} else { |
| 6060 |
|
$datestamp = str_replace('%', '', I18N::timeFormat()); |
| 6061 |
|
} |
| 6062 |
|
|
| 6063 |
|
return date($datestamp, (int) $user->getPreference('reg_timestamp')); |
| 6064 |
|
case 'loggedin': |
|
@@ 6065-6069 (lines=5) @@
|
| 6062 |
|
|
| 6063 |
|
return date($datestamp, (int) $user->getPreference('reg_timestamp')); |
| 6064 |
|
case 'loggedin': |
| 6065 |
|
if (is_array($params) && isset($params[0]) && $params[0] != '') { |
| 6066 |
|
$yes = $params[0]; |
| 6067 |
|
} else { |
| 6068 |
|
$yes = I18N::translate('yes'); |
| 6069 |
|
} |
| 6070 |
|
if (is_array($params) && isset($params[1]) && $params[1] != '') { |
| 6071 |
|
$no = $params[1]; |
| 6072 |
|
} else { |
|
@@ 6070-6074 (lines=5) @@
|
| 6067 |
|
} else { |
| 6068 |
|
$yes = I18N::translate('yes'); |
| 6069 |
|
} |
| 6070 |
|
if (is_array($params) && isset($params[1]) && $params[1] != '') { |
| 6071 |
|
$no = $params[1]; |
| 6072 |
|
} else { |
| 6073 |
|
$no = I18N::translate('no'); |
| 6074 |
|
} |
| 6075 |
|
|
| 6076 |
|
return Database::prepare("SELECT SQL_NO_CACHE 1 FROM `##session` WHERE user_id=? LIMIT 1")->execute([$user->getUserId()])->fetchOne() ? $yes : $no; |
| 6077 |
|
} |