Diff
checker
Text
Text
Bilder
Dokumente
Excel
Ordner
Legal
Enterprise
Desktop-App
Preise
Einloggen
Diffchecker Desktop herunterladen
Texte vergleichen
Finde den Unterschied zwischen zwei Textdateien
Werkzeuge
Verlauf
Live-Editor
Gleiches ausblenden
Zeilenumbruch aus
Ansicht
Zweispaltig
Einspaltig
Vergleichsgenauigkeit
Intelligent
Wort
Zeichen
Syntaxhervorhebung
Syntax auswählen
Ignorieren
Text umwandeln
Zur ersten Änderung
Eingabe bearbeiten
Diffchecker Desktop
Der sicherste Weg, Diffchecker zu nutzen. Hol dir die Desktop-App: Deine Diffs verlassen nie deinen Computer!
Desktop holen
login_create_new_account
Erstellt
vor 6 Jahren
Diff läuft nie ab
Löschen
Exportieren
Teilen
Erklären
11 Entfernungen
Zeilen
Gesamt
Entfernt
Zeichen
Gesamt
Entfernt
Um diese Funktion weiterhin zu nutzen, aktualisiere auf
Diff
checker
Pro
Preise anzeigen
129 Zeilen
Kopieren
14 Hinzufügungen
Zeilen
Gesamt
Hinzugefügt
Zeichen
Gesamt
Hinzugefügt
Um diese Funktion weiterhin zu nutzen, aktualisiere auf
Diff
checker
Pro
Preise anzeigen
132 Zeilen
Kopieren
<?php
<?php
class block_login_logout extends block_base {
class block_login_logout extends block_base {
public function init() {
public function init() {
$this->title = get_string('pluginname', 'block_login_logout');
$this->title = get_string('pluginname', 'block_login_logout');
}
}
public function applicable_formats() {
public function applicable_formats() {
return array('all' => true);
return array('all' => true);
}
}
public function specialization() {
public function specialization() {
if (!isloggedin() or isguestuser()) {
if (!isloggedin() or isguestuser()) {
$this->title = get_string('login');
$this->title = get_string('login');
} else {
} else {
$utz = get_user_timezone_offset();
$utz = get_user_timezone_offset();
if ($utz == 99) {
if ($utz == 99) {
$ut = (date('G')*3600 + date('i')*60 + date('s'))/3600;
$ut = (date('G')*3600 + date('i')*60 + date('s'))/3600;
} else {
} else {
$ut = ((gmdate('G') + get_user_timezone_offset())*3600 + gmdate('i')*60 + gmdate('s'))/3600;
$ut = ((gmdate('G') + get_user_timezone_offset())*3600 + gmdate('i')*60 + gmdate('s'))/3600;
If ($ut <= 0) { $ut = 24 + $ut; }
If ($ut <= 0) { $ut = 24 + $ut; }
If ($ut > 24) { $ut = $ut - 24; }
If ($ut > 24) { $ut = $ut - 24; }
}
}
if ($ut < 12) {
if ($ut < 12) {
$this->title = get_string('morning_greeting', 'block_login_logout');
$this->title = get_string('morning_greeting', 'block_login_logout');
} elseif (($ut >=12 ) and ($ut < 19 )) {
} elseif (($ut >=12 ) and ($ut < 19 )) {
$this->title = get_string('afternoon_greeting', 'block_login_logout');
$this->title = get_string('afternoon_greeting', 'block_login_logout');
} else {
} else {
$this->title = get_string('night_greeting', 'block_login_logout');
$this->title = get_string('night_greeting', 'block_login_logout');
}
}
}
}
}
}
public function get_content () {
public function get_content () {
global $USER, $CFG, $OUTPUT, $SESSION, $COURSE;
global $USER, $CFG, $OUTPUT, $SESSION, $COURSE;
$wwwroot = '';
$wwwroot = '';
$signup = '';
$signup = '';
if ($this->content !== NULL) {
if ($this->content !== NULL) {
return $this->content;
return $this->content;
}
}
if (empty($CFG->loginhttps)) {
if (empty($CFG->loginhttps)) {
$wwwroot = $CFG->wwwroot;
$wwwroot = $CFG->wwwroot;
} else {
} else {
$wwwroot = str_replace("http://", "https://", $CFG->wwwroot);
$wwwroot = str_replace("http://", "https://", $CFG->wwwroot);
}
}
if (!empty($CFG->registerauth)) {
if (!empty($CFG->registerauth)) {
$authplugin = get_auth_plugin($CFG->registerauth);
$authplugin = get_auth_plugin($CFG->registerauth);
if ($authplugin->can_signup()) {
if ($authplugin->can_signup()) {
$signup = $wwwroot . '/login/signup.php';
$signup = $wwwroot . '/login/signup.php';
}
}
}
}
$forgot = $wwwroot . '/login/forgot_password.php';
$forgot = $wwwroot . '/login/forgot_password.php';
$username = get_moodle_cookie();
$username = get_moodle_cookie();
$this->content = new StdClass;
$this->content = new StdClass;
$this->content->footer = ''; //'' Frankie
$this->content->footer = ''; //'' Frankie
$this->content->text = ''; //'' Frankie
$this->content->text = ''; //'' Frankie
if (!isloggedin() or isguestuser()) {
if (!isloggedin() or isguestuser()) {
$this->content->text .= html_writer::start_tag('form', array('class'=>'loginform', 'id'=>'login', 'method'=>'post', 'action'=>get_login_url()));
$this->content->text .= html_writer::start_tag('form', array('class'=>'loginform', 'id'=>'login', 'method'=>'post', 'action'=>get_login_url()));
$this->content->text .= html_writer::start_tag('div', array('class'=>'c1 fld username'));
$this->content->text .= html_writer::start_tag('div', array('class'=>'c1 fld username'));
$this->content->text .= html_writer::tag('label', get_string('username'), array('for'=>'login_username'));
$this->content->text .= html_writer::tag('label', get_string('username'), array('for'=>'login_username'));
$this->content->text .= html_writer::empty_tag('input', array('type'=>'text', 'name'=>'username', 'id'=>'login_username', 'value'=>s($username)));
$this->content->text .= html_writer::empty_tag('input', array('type'=>'text', 'name'=>'username', 'id'=>'login_username', 'value'=>s($username)));
$this->content->text .= html_writer::end_tag('div');
$this->content->text .= html_writer::end_tag('div');
$this->content->text .= html_writer::start_tag('div', array('class'=>'c1 fld password'));
$this->content->text .= html_writer::start_tag('div', array('class'=>'c1 fld password'));
$this->content->text .= html_writer::tag('label', get_string('password'), array('for'=>'login_password'));
$this->content->text .= html_writer::tag('label', get_string('password'), array('for'=>'login_password'));
if (!empty($CFG->loginpasswordautocomplete)) {
if (!empty($CFG->loginpasswordautocomplete)) {
$this->content->text .= html_writer::empty_tag('input', array('type'=>'password', 'name'=>'password', 'id'=>'login_password', 'value'=>'', 'autocomplete'=>'off'));
$this->content->text .= html_writer::empty_tag('input', array('type'=>'password', 'name'=>'password', 'id'=>'login_password', 'value'=>'', 'autocomplete'=>'off'));
} else {
} else {
$this->content->text .= html_writer::empty_tag('input', array('type'=>'password', 'name'=>'password', 'id'=>'login_password', 'value'=>''));
$this->content->text .= html_writer::empty_tag('input', array('type'=>'password', 'name'=>'password', 'id'=>'login_password', 'value'=>''));
}
}
$this->content->text .= html_writer::end_tag('div');
$this->content->text .= html_writer::end_tag('div');
if (isset($CFG->rememberusername) and $CFG->rememberusername == 2) {
if (isset($CFG->rememberusername) and $CFG->rememberusername == 2) {
$this->content->text .= html_writer::start_tag('div', array('class'=>'c1 rememberusername'));
$this->content->text .= html_writer::start_tag('div', array('class'=>'c1 rememberusername'));
if ($username) {
if ($username) {
$this->content->text .= html_writer::empty_tag('input', array('type'=>'checkbox', 'name'=>'rememberusername', 'id'=>'rememberusername', 'value'=>'1', 'checked'=>'checked'));
$this->content->text .= html_writer::empty_tag('input', array('type'=>'checkbox', 'name'=>'rememberusername', 'id'=>'rememberusername', 'value'=>'1', 'checked'=>'checked'));
} else {
} else {
$this->content->text .= html_writer::empty_tag('input', array('type'=>'checkbox', 'name'=>'rememberusername', 'id'=>'rememberusername', 'value'=>'1'));
$this->content->text .= html_writer::empty_tag('input', array('type'=>'checkbox', 'name'=>'rememberusername', 'id'=>'rememberusername', 'value'=>'1'));
}
}
$label_rememberusername = ' '.get_string('rememberusername', 'admin');
$label_rememberusername = ' '.get_string('rememberusername', 'admin');
$this->content->text .= html_writer::tag('label', $label_rememberusername, array('for'=>'rememberusername'));
$this->content->text .= html_writer::tag('label', $label_rememberusername, array('for'=>'rememberusername'));
$this->content->text .= html_writer::end_tag('div');
$this->content->text .= html_writer::end_tag('div');
}
}
$this->content->text .= html_writer::start_tag('div', array('class'=>'c1 btn'));
$this->content->text .= html_writer::start_tag('div', array('class'=>'c1 btn'));
$this->content->text .= html_writer::empty_tag('input', array('type'=>'submit', 'value'=>get_string('login')));
$this->content->text .= html_writer::empty_tag('input', array('type'=>'submit', 'value'=>get_string('login')));
Kopieren
Kopiert
Kopieren
Kopiert
if (!empty($signup)) {
$this->content->text .= html_writer::start_tag('br');
$this->content->text .= html_writer::end_tag('br');
$linkkam = new moodle_url('./login/signup.php');
$this->content->text .= html_writer::link($linkkam, get_string('startsignup'), ['class' => 'btn btn-navbar']);
}
if (!empty($forgot)) {
$this->content->text .= html_writer::start_tag('div');
$this->content->text .= html_writer::link(new moodle_url($forgot), get_string('forgotaccount'));
$this->content->text .= html_writer::end_tag('div');
}
$this->content->text .= html_writer::end_tag('div');
$this->content->text .= html_writer::end_tag('div');
$this->content->text .= html_writer::end_tag('form');
$this->content->text .= html_writer::end_tag('form');
Kopieren
Kopiert
Kopieren
Kopiert
if (!empty($signup)) {
$this->content->footer .= html_writer::start_tag('div');
$this->content->footer .= html_writer::link(new moodle_url($signup), get_string('startsignup'));
$this->content->footer .= html_writer::end_tag('div');
}
if (!empty($forgot)) {
$this->content->footer .= html_writer::start_tag('div');
$this->content->footer .= html_writer::link(new moodle_url($forgot), get_string('forgotaccount'));
$this->content->footer .= html_writer::end_tag('div');
}
} else {
} else {
$this->content->text .= html_writer::start_tag('div', array('class'=>'logoutusername'));
$this->content->text .= html_writer::start_tag('div', array('class'=>'logoutusername'));
$this->content->text .= html_writer::link(new moodle_url('/user/profile.php', array('id'=>$USER->id)), fullname($USER));
$this->content->text .= html_writer::link(new moodle_url('/user/profile.php', array('id'=>$USER->id)), fullname($USER));
$this->content->text .= html_writer::end_tag('div');
$this->content->text .= html_writer::end_tag('div');
$this->content->text .= html_writer::tag('div', $OUTPUT->user_picture($USER, array('size'=>90, 'class'=>'profilepicture')), array('class'=>'logoutuserimg'));
$this->content->text .= html_writer::tag('div', $OUTPUT->user_picture($USER, array('size'=>90, 'class'=>'profilepicture')), array('class'=>'logoutuserimg'));
$this->content->text .= html_writer::start_tag('div', array('class'=>'logoutbtn'));
$this->content->text .= html_writer::start_tag('div', array('class'=>'logoutbtn'));
$this->content->text .= html_writer::link(new moodle_url('/login/logout.php', array('sesskey'=>sesskey())), html_writer::tag('button', get_string('logout'), array('type'=>'button')));
$this->content->text .= html_writer::link(new moodle_url('/login/logout.php', array('sesskey'=>sesskey())), html_writer::tag('button', get_string('logout'), array('type'=>'button')));
$this->content->text .= html_writer::end_tag('div');
$this->content->text .= html_writer::end_tag('div');
$this->content->text .= html_writer::start_tag('div', array('class'=>'logoutfooter'));
$this->content->text .= html_writer::start_tag('div', array('class'=>'logoutfooter'));
$this->content->text .= html_writer::link(new moodle_url('/user/editadvanced.php', array('id'=>$USER->id)), get_string('updatemyprofile'));
$this->content->text .= html_writer::link(new moodle_url('/user/editadvanced.php', array('id'=>$USER->id)), get_string('updatemyprofile'));
$this->content->text .= html_writer::end_tag('div');
$this->content->text .= html_writer::end_tag('div');
if($USER->lastlogin){
if($USER->lastlogin){
$logout_footer = get_string('lastlogin').'<br>'.userdate($USER->lastlogin, get_string('strftimerecentfull')).'<br> ('.format_time(time() - $USER->lastlogin).')';
$logout_footer = get_string('lastlogin').'<br>'.userdate($USER->lastlogin, get_string('strftimerecentfull')).'<br> ('.format_time(time() - $USER->lastlogin).')';
$this->content->text .= html_writer::tag('div', $logout_footer, array('class'=>'logoutfooter'));
$this->content->text .= html_writer::tag('div', $logout_footer, array('class'=>'logoutfooter'));
}
}
}
}
return $this->content;
return $this->content;
}
}
}
}
Gespeicherte Diffs
Originaltext
Datei öffnen
<?php class block_login_logout extends block_base { public function init() { $this->title = get_string('pluginname', 'block_login_logout'); } public function applicable_formats() { return array('all' => true); } public function specialization() { if (!isloggedin() or isguestuser()) { $this->title = get_string('login'); } else { $utz = get_user_timezone_offset(); if ($utz == 99) { $ut = (date('G')*3600 + date('i')*60 + date('s'))/3600; } else { $ut = ((gmdate('G') + get_user_timezone_offset())*3600 + gmdate('i')*60 + gmdate('s'))/3600; If ($ut <= 0) { $ut = 24 + $ut; } If ($ut > 24) { $ut = $ut - 24; } } if ($ut < 12) { $this->title = get_string('morning_greeting', 'block_login_logout'); } elseif (($ut >=12 ) and ($ut < 19 )) { $this->title = get_string('afternoon_greeting', 'block_login_logout'); } else { $this->title = get_string('night_greeting', 'block_login_logout'); } } } public function get_content () { global $USER, $CFG, $OUTPUT, $SESSION, $COURSE; $wwwroot = ''; $signup = ''; if ($this->content !== NULL) { return $this->content; } if (empty($CFG->loginhttps)) { $wwwroot = $CFG->wwwroot; } else { $wwwroot = str_replace("http://", "https://", $CFG->wwwroot); } if (!empty($CFG->registerauth)) { $authplugin = get_auth_plugin($CFG->registerauth); if ($authplugin->can_signup()) { $signup = $wwwroot . '/login/signup.php'; } } $forgot = $wwwroot . '/login/forgot_password.php'; $username = get_moodle_cookie(); $this->content = new StdClass; $this->content->footer = ''; //'' Frankie $this->content->text = ''; //'' Frankie if (!isloggedin() or isguestuser()) { $this->content->text .= html_writer::start_tag('form', array('class'=>'loginform', 'id'=>'login', 'method'=>'post', 'action'=>get_login_url())); $this->content->text .= html_writer::start_tag('div', array('class'=>'c1 fld username')); $this->content->text .= html_writer::tag('label', get_string('username'), array('for'=>'login_username')); $this->content->text .= html_writer::empty_tag('input', array('type'=>'text', 'name'=>'username', 'id'=>'login_username', 'value'=>s($username))); $this->content->text .= html_writer::end_tag('div'); $this->content->text .= html_writer::start_tag('div', array('class'=>'c1 fld password')); $this->content->text .= html_writer::tag('label', get_string('password'), array('for'=>'login_password')); if (!empty($CFG->loginpasswordautocomplete)) { $this->content->text .= html_writer::empty_tag('input', array('type'=>'password', 'name'=>'password', 'id'=>'login_password', 'value'=>'', 'autocomplete'=>'off')); } else { $this->content->text .= html_writer::empty_tag('input', array('type'=>'password', 'name'=>'password', 'id'=>'login_password', 'value'=>'')); } $this->content->text .= html_writer::end_tag('div'); if (isset($CFG->rememberusername) and $CFG->rememberusername == 2) { $this->content->text .= html_writer::start_tag('div', array('class'=>'c1 rememberusername')); if ($username) { $this->content->text .= html_writer::empty_tag('input', array('type'=>'checkbox', 'name'=>'rememberusername', 'id'=>'rememberusername', 'value'=>'1', 'checked'=>'checked')); } else { $this->content->text .= html_writer::empty_tag('input', array('type'=>'checkbox', 'name'=>'rememberusername', 'id'=>'rememberusername', 'value'=>'1')); } $label_rememberusername = ' '.get_string('rememberusername', 'admin'); $this->content->text .= html_writer::tag('label', $label_rememberusername, array('for'=>'rememberusername')); $this->content->text .= html_writer::end_tag('div'); } $this->content->text .= html_writer::start_tag('div', array('class'=>'c1 btn')); $this->content->text .= html_writer::empty_tag('input', array('type'=>'submit', 'value'=>get_string('login'))); $this->content->text .= html_writer::end_tag('div'); $this->content->text .= html_writer::end_tag('form'); if (!empty($signup)) { $this->content->footer .= html_writer::start_tag('div'); $this->content->footer .= html_writer::link(new moodle_url($signup), get_string('startsignup')); $this->content->footer .= html_writer::end_tag('div'); } if (!empty($forgot)) { $this->content->footer .= html_writer::start_tag('div'); $this->content->footer .= html_writer::link(new moodle_url($forgot), get_string('forgotaccount')); $this->content->footer .= html_writer::end_tag('div'); } } else { $this->content->text .= html_writer::start_tag('div', array('class'=>'logoutusername')); $this->content->text .= html_writer::link(new moodle_url('/user/profile.php', array('id'=>$USER->id)), fullname($USER)); $this->content->text .= html_writer::end_tag('div'); $this->content->text .= html_writer::tag('div', $OUTPUT->user_picture($USER, array('size'=>90, 'class'=>'profilepicture')), array('class'=>'logoutuserimg')); $this->content->text .= html_writer::start_tag('div', array('class'=>'logoutbtn')); $this->content->text .= html_writer::link(new moodle_url('/login/logout.php', array('sesskey'=>sesskey())), html_writer::tag('button', get_string('logout'), array('type'=>'button'))); $this->content->text .= html_writer::end_tag('div'); $this->content->text .= html_writer::start_tag('div', array('class'=>'logoutfooter')); $this->content->text .= html_writer::link(new moodle_url('/user/editadvanced.php', array('id'=>$USER->id)), get_string('updatemyprofile')); $this->content->text .= html_writer::end_tag('div'); if($USER->lastlogin){ $logout_footer = get_string('lastlogin').'<br>'.userdate($USER->lastlogin, get_string('strftimerecentfull')).'<br> ('.format_time(time() - $USER->lastlogin).')'; $this->content->text .= html_writer::tag('div', $logout_footer, array('class'=>'logoutfooter')); } } return $this->content; } }
Bearbeitung
Datei öffnen
<?php class block_login_logout extends block_base { public function init() { $this->title = get_string('pluginname', 'block_login_logout'); } public function applicable_formats() { return array('all' => true); } public function specialization() { if (!isloggedin() or isguestuser()) { $this->title = get_string('login'); } else { $utz = get_user_timezone_offset(); if ($utz == 99) { $ut = (date('G')*3600 + date('i')*60 + date('s'))/3600; } else { $ut = ((gmdate('G') + get_user_timezone_offset())*3600 + gmdate('i')*60 + gmdate('s'))/3600; If ($ut <= 0) { $ut = 24 + $ut; } If ($ut > 24) { $ut = $ut - 24; } } if ($ut < 12) { $this->title = get_string('morning_greeting', 'block_login_logout'); } elseif (($ut >=12 ) and ($ut < 19 )) { $this->title = get_string('afternoon_greeting', 'block_login_logout'); } else { $this->title = get_string('night_greeting', 'block_login_logout'); } } } public function get_content () { global $USER, $CFG, $OUTPUT, $SESSION, $COURSE; $wwwroot = ''; $signup = ''; if ($this->content !== NULL) { return $this->content; } if (empty($CFG->loginhttps)) { $wwwroot = $CFG->wwwroot; } else { $wwwroot = str_replace("http://", "https://", $CFG->wwwroot); } if (!empty($CFG->registerauth)) { $authplugin = get_auth_plugin($CFG->registerauth); if ($authplugin->can_signup()) { $signup = $wwwroot . '/login/signup.php'; } } $forgot = $wwwroot . '/login/forgot_password.php'; $username = get_moodle_cookie(); $this->content = new StdClass; $this->content->footer = ''; //'' Frankie $this->content->text = ''; //'' Frankie if (!isloggedin() or isguestuser()) { $this->content->text .= html_writer::start_tag('form', array('class'=>'loginform', 'id'=>'login', 'method'=>'post', 'action'=>get_login_url())); $this->content->text .= html_writer::start_tag('div', array('class'=>'c1 fld username')); $this->content->text .= html_writer::tag('label', get_string('username'), array('for'=>'login_username')); $this->content->text .= html_writer::empty_tag('input', array('type'=>'text', 'name'=>'username', 'id'=>'login_username', 'value'=>s($username))); $this->content->text .= html_writer::end_tag('div'); $this->content->text .= html_writer::start_tag('div', array('class'=>'c1 fld password')); $this->content->text .= html_writer::tag('label', get_string('password'), array('for'=>'login_password')); if (!empty($CFG->loginpasswordautocomplete)) { $this->content->text .= html_writer::empty_tag('input', array('type'=>'password', 'name'=>'password', 'id'=>'login_password', 'value'=>'', 'autocomplete'=>'off')); } else { $this->content->text .= html_writer::empty_tag('input', array('type'=>'password', 'name'=>'password', 'id'=>'login_password', 'value'=>'')); } $this->content->text .= html_writer::end_tag('div'); if (isset($CFG->rememberusername) and $CFG->rememberusername == 2) { $this->content->text .= html_writer::start_tag('div', array('class'=>'c1 rememberusername')); if ($username) { $this->content->text .= html_writer::empty_tag('input', array('type'=>'checkbox', 'name'=>'rememberusername', 'id'=>'rememberusername', 'value'=>'1', 'checked'=>'checked')); } else { $this->content->text .= html_writer::empty_tag('input', array('type'=>'checkbox', 'name'=>'rememberusername', 'id'=>'rememberusername', 'value'=>'1')); } $label_rememberusername = ' '.get_string('rememberusername', 'admin'); $this->content->text .= html_writer::tag('label', $label_rememberusername, array('for'=>'rememberusername')); $this->content->text .= html_writer::end_tag('div'); } $this->content->text .= html_writer::start_tag('div', array('class'=>'c1 btn')); $this->content->text .= html_writer::empty_tag('input', array('type'=>'submit', 'value'=>get_string('login'))); if (!empty($signup)) { $this->content->text .= html_writer::start_tag('br'); $this->content->text .= html_writer::end_tag('br'); $linkkam = new moodle_url('./login/signup.php'); $this->content->text .= html_writer::link($linkkam, get_string('startsignup'), ['class' => 'btn btn-navbar']); } if (!empty($forgot)) { $this->content->text .= html_writer::start_tag('div'); $this->content->text .= html_writer::link(new moodle_url($forgot), get_string('forgotaccount')); $this->content->text .= html_writer::end_tag('div'); } $this->content->text .= html_writer::end_tag('div'); $this->content->text .= html_writer::end_tag('form'); } else { $this->content->text .= html_writer::start_tag('div', array('class'=>'logoutusername')); $this->content->text .= html_writer::link(new moodle_url('/user/profile.php', array('id'=>$USER->id)), fullname($USER)); $this->content->text .= html_writer::end_tag('div'); $this->content->text .= html_writer::tag('div', $OUTPUT->user_picture($USER, array('size'=>90, 'class'=>'profilepicture')), array('class'=>'logoutuserimg')); $this->content->text .= html_writer::start_tag('div', array('class'=>'logoutbtn')); $this->content->text .= html_writer::link(new moodle_url('/login/logout.php', array('sesskey'=>sesskey())), html_writer::tag('button', get_string('logout'), array('type'=>'button'))); $this->content->text .= html_writer::end_tag('div'); $this->content->text .= html_writer::start_tag('div', array('class'=>'logoutfooter')); $this->content->text .= html_writer::link(new moodle_url('/user/editadvanced.php', array('id'=>$USER->id)), get_string('updatemyprofile')); $this->content->text .= html_writer::end_tag('div'); if($USER->lastlogin){ $logout_footer = get_string('lastlogin').'<br>'.userdate($USER->lastlogin, get_string('strftimerecentfull')).'<br> ('.format_time(time() - $USER->lastlogin).')'; $this->content->text .= html_writer::tag('div', $logout_footer, array('class'=>'logoutfooter')); } } return $this->content; } }
Unterschied finden