This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/templates/yuuno/settings/advanced.sessions.twig

42 lines
1.7 KiB
Twig
Raw Normal View History

2016-01-14 20:43:33 +00:00
<table class="settings-table">
<thead>
2016-01-17 01:58:31 +00:00
<tr><th style="width: 100px;">IP</th><th>Useragent</th><th style="width: 120px;">Login time</th><th></th></tr>
2016-01-14 20:43:33 +00:00
</thead>
<tfoot>
<tr><th>IP</th><th>Useragent</th><th>Login time</th><th></th></tr>
</tfoot>
<tbody>
2016-01-17 01:58:31 +00:00
{% for s in sessions %}
<tr {% if s.session_key == session.sessionId %} class="current-session"{% endif %}>
<td>
{{ s.user_ip }}
</td>
<td>
{{ s.user_agent }}
</td>
<td>
{{ s.session_start|date(sakura.dateFormat) }}
</td>
<td style="width: 90px;">
<form method="post" action="{{ sakura.currentPage }}">
2016-03-27 22:15:51 +00:00
<input type="hidden" name="sessid" value="{{ session_id() }}" />
<input type="hidden" name="timestamp" value="{{ date().timestamp }}" />
2016-01-17 01:58:31 +00:00
<input type="hidden" name="sessionid" value="{{ s.session_id }}" />
<input type="hidden" name="mode" value="sessions" />
<button class="inputStyling small" name="submit">Kill</button>
</form>
</td>
</tr>
2016-01-14 20:43:33 +00:00
{% endfor %}
</tbody>
</table>
2016-01-17 01:58:31 +00:00
<div class="profile-save">
<form method="post" action="{{ sakura.currentPage }}">
2016-03-27 22:15:51 +00:00
<input type="hidden" name="sessid" value="{{ session_id() }}" />
<input type="hidden" name="timestamp" value="{{ date().timestamp }}" />
2016-01-17 01:58:31 +00:00
<input type="hidden" name="sessionid" value="all" />
<input type="hidden" name="mode" value="sessions" />
<button class="inputStyling" name="submit">Kill all active sessions</button>
</form>
</div>