1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
<!DOCTYPE html>
<html lang="es">
<head>
<title>Estadísticas@Bienvenido a Internet</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
body{font-family:arial,sans-serif;background:#090909 url('/bg3.png');color:#fff;margin:0;text-align:center;text-shadow:1px 1px #000}
a,a:visited{color:#fdfdfd;text-decoration:none}
a:hover{text-decoration:underline}
hr{margin:1em 0}
span{display:inline-block}
#title{margin-top:1em}
#title a{text-decoration:none}
.t1{font-size:1.8em;display:inline-block;line-height:1em}
.t2{font-size:1em;margin-top:2px}
h2{font-size:1.5em;margin:0 0 .2em 0}
table{font-size:1.4em;margin:0 auto 1em}
th,td{padding:10px;border-top:1px solid #222;border-left:1px solid #222}
.boards{padding:0}
td a{display:block;padding:10px}
.desc tr{text-align:right}
.desc td{text-align:left}
.r{text-align:right}
.l{text-align:left}
.pos{line-height:0em;text-align:center}
.b1{font-size:2em;color:red}
.b2{font-size:1.6em;color:orange}
.b3{font-size:1.3em;color:yellow}
.etc{color:grey}
#foot{margin:1em;font-size:.9em}
#foot a{color:#999}
@media (max-width:600px){c
.t1{font-size:1.6em}
.t2{font-size:.9em}
h2{font-size:1.2em}
table{font-size:1.1em}
table.desc{font-size:.9em}
th,td{padding:5px}
td a{display:block;padding:5px}
.b1{font-size:1.6em}
.b2{font-size:1.4em}
.b3{font-size:1.2em}
#boards th{font-size:.8em}
.long{word-break:break-all}
#foot{font-size:12px}
}
</style>
</head>
<body>
<div id="title">
<div class="t1">
<a href="/" style="font-weight:900">Bienvenido a Internet</a> Estadísticas
</div>
<div class="t2">
<span>Última actualización:</span> <span>${timestamp} GMT${tz}</span>
<?py if not regenerated: ?>
<span>(en caché)</span>
<?py #endif ?>
</div>
</div>
<hr />
<h2 class="rot">Mensajes totales <span>(última semana)</span></h2>
<table>
<tr>
<th>Día</th>
<th class="r">Hilos</th>
<th class="r">Resp.</th>
<th class="r">Total</th>
</tr>
<?py allthreads, allposts = 0, 0 ?>
<?py for day, posts, threads in reversed(days): ?>
<tr>
<td>${day}</td>
<td class="r">${threads}</td>
<td class="r">${int(posts)-int(threads)}</td>
<td class="r">${posts}</td>
</tr>
<?py allthreads += int(threads) ?>
<?py allposts += int(posts) ?>
<?py #endfor ?>
<tr style="font-weight:bold;">
<td class="l">Total</td>
<td class="r">${allthreads}</td>
<td class="r">${allposts-allthreads}</td>
<td class="r">${allposts}</td>
</tr>
</table>
<hr />
<h2 class="rot">Volumen de mensajes por sección <span>(últimos 30 días)</span></h2>
<table id="boards">
<tr>
<th class="pos">#</th>
<th class="l">Sección</th>
<th>Mensajes</th>
<th>Porcentaje</th>
</tr>
<?py iter = 1 ?>
<?py for dir, board, percent, num in boards_percent: ?>
<tr>
<td class="pos b${iter}">${iter}</td>
<td class="l boards"><a href="/${dir}/" target="_blank">${board}</a></td>
<td class="r">${num}</td>
<td class="r">${percent}%</td>
</tr>
<?py iter += 1 ?>
<?py #endfor ?>
</table>
<hr />
<h2>Sistema</h2>
<table class="desc">
<tr><th>Máquina</th>
<td>maria (Debian GNU/Linux)</td></tr>
<tr><th>OS</th>
<td class="long">${uname[0]} ${uname[2]}</td></tr>
<tr><th>Release/Arq.</th>
<td>${uname[3]} ${uname[4]}</td></tr>
<tr><th>Motor BBS/IB</th>
<td>weabot ${weabot_ver}</td></tr>
<tr><th>Templating</th>
<td>tenjin ${tenjin_ver}</td></tr>
<tr><th>Versión de Python</th>
<td>${python_ver}</td></tr>
<tr><th>Implementación</th>
<td>${python_impl}</td></tr>
<tr><th>Build</th>
<td>${python_build}</td></tr>
<tr><th>Compilado en</th>
<td>${python_compiler}</td></tr>
</table>
<hr />
<h2>Base de datos</h2>
<table class="desc">
<tr><th>Base de Datos</th>
<td>MariaDB</td></tr>
<tr><th>Versión</th>
<td>${mysql_ver} Linux x86_64</td></tr>
<tr><th>Mensajes totales activos</th>
<td>${total}</td></tr>
<tr><th>Archivos totales activos</th>
<td>${total_files}</td></tr>
<tr><th>Mensajes totales archivados (BBS)</th>
<td>${total_archived}</td></tr>
<tr><th>Mensajes totales archivados (IB)</th>
<td>0 (QEPD)</td></tr>
</table>
<hr />
<div id="foot">B.a.I. - 2010-2021 · Contacto: <a href="mailto:burocracia@bienvenidoainternet.org">burocracia@bienvenidoainternet.org</a></div>
</body>
</html>
|