V25 enrol dateVisit
This commit is contained in:
parent
4bfadddab2
commit
d76b0295df
@ -474,7 +474,7 @@ class core extends common
|
||||
in_array($this->getUrl(0), array_keys($this->getData(['page'])))
|
||||
) {
|
||||
$this->setData(['enrolment', self::$siteContent, $this->getUser('id'), 'lastPageId', $this->getUrl(0)]);
|
||||
$this->setData(['enrolment', self::$siteContent, $this->getUser('id'), 'lastDateVisited', time()]);
|
||||
$this->setData(['enrolment', self::$siteContent, $this->getUser('id'), 'dateVisit', time()]);
|
||||
}
|
||||
|
||||
// Journalisation
|
||||
|
@ -50,7 +50,7 @@ class common
|
||||
const ACCESS_TIMER = 1800;
|
||||
|
||||
// Numéro de version
|
||||
const ZWII_VERSION = '1.0.24';
|
||||
const ZWII_VERSION = '1.0.25';
|
||||
|
||||
// URL autoupdate
|
||||
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/lms/';
|
||||
|
@ -368,10 +368,10 @@ class course extends common
|
||||
$userId,
|
||||
$this->getData(['user', $userId, 'firstname']) . ' ' . $this->getData(['user', $userId, 'lastname']),
|
||||
$userValue['lastPageId'],
|
||||
helper::dateUTF8('%d %B %Y - %H:%M', $userValue['lastDateVisited']),
|
||||
helper::dateUTF8('%d %B %Y - %H:%M', $userValue['dateVisit']),
|
||||
template::button('courseDelete' . $userId, [
|
||||
'class' => 'categoryDelete buttonRed',
|
||||
'href' => helper::baseUrl() . 'course/categoryDelete/' . $userId,
|
||||
'href' => helper::baseUrl() . 'course/userDelete/' . $userId,
|
||||
'value' => template::ico('trash'),
|
||||
'help' => 'Supprimer'
|
||||
])
|
||||
@ -600,7 +600,7 @@ class course extends common
|
||||
$userId,
|
||||
[
|
||||
'lastPageId' => '',
|
||||
'lastVisit' => 0
|
||||
'dateVisit' => 0
|
||||
]
|
||||
]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user