Database refactoring and improving blog comments, blog post history and more
This commit is contained in:
@@ -53,9 +53,9 @@
|
||||
2 => "Twitter",
|
||||
3 => "GitHub"
|
||||
];
|
||||
$loginMethod = $loginMethods[$user['login_method']];
|
||||
$loginMethod = $loginMethods[$user['loginMethod']];
|
||||
|
||||
$dateCreated = strtotime($user['date_created']);
|
||||
$dateCreated = strtotime($user['dateCreated']);
|
||||
$lastLogin = strtotime($user['lastLogin']);
|
||||
$dateCreatedStr = DateTimeHumanizer::difference(new \DateTime(), new \DateTime("@$dateCreated"), "de_DE");
|
||||
if($lastLogin)
|
||||
@@ -82,12 +82,12 @@
|
||||
(<?= date("d.m.Y H:i", $dateCreated) ?>)
|
||||
</td>
|
||||
<td>
|
||||
<img src="<?= $user['profile_picture'] ?>?w=50" class="img-fluid rounded"
|
||||
<img src="<?= $user['profilePicture'] ?>?w=50" class="img-fluid rounded"
|
||||
alt="Profilbild"
|
||||
style="max-height: 50px;">
|
||||
</td>
|
||||
<td>
|
||||
<?= $user['is_activated'] ? "<i class='fa fa-check-circle'></i> Ja" : "<i class='fa fa-times-circle'></i> Nein" ?>
|
||||
<?= $user['activated'] ? "<i class='fa fa-check-circle'></i> Ja" : "<i class='fa fa-times-circle'></i> Nein" ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= $user['showAds'] ? '<i class="fa fa-check-circle"></i> Ja' : '<i class="fa fa-times-circle"></i> Nein' ?>
|
||||
@@ -128,7 +128,7 @@
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(get_instance()->hasPermission('user.ban')): ?>
|
||||
<a data-toggle="tooltip" data-placement="top" title="" data-original-title="Account löschen" onclick="showDeleteModal(<?= $user['ID'] ?>. <?= $user['username'] ?>)" target="_blank" class="btn btn-xs btn-red">
|
||||
<a data-toggle="tooltip" data-placement="top" title="" data-original-title="Account löschen" onclick="showDeleteModal(<?= $user['ID'] ?>.; <?= $user['username'] ?>)" target="_blank" class="btn btn-xs btn-red">
|
||||
<i class="fas fa-user-slash"></i>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
Reference in New Issue
Block a user