1 |
191 |
ahitrov |
<& "/contenido/components/header.msn", style => 'index' &> |
2 |
|
|
|
3 |
|
|
<div style="text-align:center; padding:180px 20px;"> |
4 |
|
|
% if ( $keeper->{session}->state->storage eq 'POSTGRES' ) { |
5 |
|
|
<form action="./index.html" method="POST" |
6 |
|
|
onsubmit="return confirm('�� ������������� ����������� �������� ��� ���������������� ������?\n��� �������� � ��������������� ������ ������������� �� �������!')"> |
7 |
|
|
<input type="submit" class="input_btn" name="clear" value="������� ��� ���������������� ������"> |
8 |
|
|
|
9 |
|
|
</form> |
10 |
|
|
% } |
11 |
|
|
</div> |
12 |
|
|
|
13 |
|
|
</body> |
14 |
|
|
</html> |
15 |
|
|
<%args> |
16 |
|
|
|
17 |
|
|
$clear => undef |
18 |
|
|
|
19 |
|
|
</%args> |
20 |
|
|
<%init> |
21 |
|
|
|
22 |
|
|
if ( $clear && $keeper->{session}->state->storage eq 'POSTGRES' ) { |
23 |
|
|
warn "delete from sessions\n"; |
24 |
|
|
my $req = $keeper->SQL->do('delete from sessions', {}) || $keeper->t_abort(); |
25 |
|
|
$m->redirect ('./'); |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
</%init> |