-
Notifications
You must be signed in to change notification settings - Fork 0
/
funzioni.php
320 lines (279 loc) · 12.2 KB
/
funzioni.php
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<?php
/*
Copyright (C) 2015/2018 Italian Linux Society - http://www.linux.it
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.*/
?>
<?php
include ('vendor/autoload.php');
function lugheader ($title, $extracss = null, $extrajs = null, $custom_properties = array()) {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="italian" />
<meta name="robots" content="noarchive" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open+Sans|Nobile|Nobile:b" />
<link href="/css/main.css" rel="stylesheet" type="text/css" />
<meta name="dcterms.creator" content="Lavagna Libera" />
<meta name="dcterms.type" content="Text" />
<link rel="publisher" href="http://www.wiildos.it/" />
<?php
$properties = array ();
$properties ['og:site_name'] = 'Lavagna Libera';
$properties ['og:title'] = 'Lavagna Libera';
$properties ['og:url'] = 'http://www.wiildos.it/';
$properties ['og:image'] = 'http://www.wiildos.it/immagini/fb.png';
$properties ['og:description'] = 'Software e contenuti liberi a scuola';
foreach ($custom_properties as $k => $v)
$properties [$k] = $v;
foreach ($properties as $k => $v) {
?>
<meta property="<?php echo $k ?>" content="<?php echo $v ?>" />
<?php
}
?>
<meta property="og:type" content="website" />
<meta property="og:country-name" content="Italy" />
<meta property="og:email" content="[email protected]" />
<meta property="og:locale" content="it_IT" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"></script>
<?php
if ($extracss != null)
foreach ($extracss as $e) {
?>
<link href="<?php echo $e; ?>" rel="stylesheet" type="text/css" />
<?php
}
if ($extrajs != null)
foreach ($extrajs as $e) {
?>
<script type="text/javascript" src="<?php echo $e; ?>"></script>
<?php
}
?>
<title>Lavagna Libera | <?php echo $title; ?></title>
</head>
<body>
<div id="header">
<img src="/immagini/logo.png" class="logo" alt="Lavagna Libera" />
<div id="maintitle">Lavagna Libera</div>
<div id="payoff">Software e contenuti liberi per la scuola</div>
<div class="menu">
<a class="generalink" href="/">Home</a>
<a class="generalink" href="/faq/">FAQ</a>
<a class="generalink" href="/links/">Links</a>
<p class="social">
<!-- Icone prese da http://kooc.co.uk/need-some-up-to-date-social-media-icons -->
<a href="https://groups.google.com/forum/feed/lavagnalibera/msgs/rss.xml?num=15"><img src="/immagini/rss.png"></a>
</p>
</div>
</div>
<?php
}
function lugfooter () {
?>
<div style="clear: both; height: 35px"></div>
<div id="ils_footer">
<div class="contents">
<div class="block">
<span style="text-align: center; display: block">
<a href="http://www.gnu.org/licenses/agpl-3.0-standalone.html" rel="license">
<img src="/immagini/agpl3.svg" style="border-width:0" alt="AGPLv3 License">
</a>
<br />
<a href="http://creativecommons.org/publicdomain/zero/1.0/deed.en_US" rel="license">
<img src="/immagini/cczero.png" style="border-width:0" alt="Creative Commons License">
</a>
</span>
</div>
<div class="block">
<h2>RESTA AGGIORNATO!</h2>
<div class="content">
<div class="newsletter_subscribe">
<p>
Iscriviti alla newsletter per aggiornamenti periodici sul software libero in Italia!
</p>
<p>
Specificando la tua provincia di residenza riceverai anche gli annunci sulle <a href="http://www.linux.it/eventi">attività svolte dai LUG e dai gruppi amici</a> nella tua zona.
</p>
<form class="webform-client-form" action="http://www.linux.it/subscribe.php" method="get">
<input type="email" class="form-text" name="name" placeholder="Indirizzo Mail" />
<p style="display: none">
<input type="text" name="mail" />
</p>
<?php prov_select ('form-select'); ?>
<input type="submit" class="form-submit" value="Iscriviti" />
</form>
</div>
</div>
</div>
<div class="block">
<h2>Amici</h2>
<div class="content">
<p style="text-align: center">
<a href="http://www.ils.org/info#aderenti">
<img src="http://www.ils.org/sites/ils.org/files/associazioni/getrand.php" border="0" /><br />
Scopri tutte le associazioni che hanno aderito a ILS.
</a>
</p>
</div>
</div>
<div class="block">
<h2>Network</h2>
<div class="content">
<script type="text/javaScript" src="http://www.linux.it/external/widgetils.php?referrer=wiildos"></script>
<div id="widgetils"></div>
</div>
</div>
</div>
<div style="clear: both"></div>
</div>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["setCookieDomain", "*.wiildos.it"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//pergamena.lugbs.linux.it/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 18]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//pergamena.lugbs.linux.it/piwik.php?idsite=18" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
</body>
</html>
<?php
}
function prov_select ($class) {
?>
<select class="<?php echo $class ?>" name="prov">
<option value="-1" selected="selected">Seleziona una Provincia</option>
<option value="AG">Agrigento</option>
<option value="AL">Alessandria</option>
<option value="AN">Ancona</option>
<option value="AO">Aosta</option>
<option value="AR">Arezzo</option>
<option value="AP">Ascoli Piceno</option>
<option value="AT">Asti</option>
<option value="AV">Avellino</option>
<option value="BA">Bari</option>
<option value="BT">Barletta-Andria-Trani</option>
<option value="BL">Belluno</option>
<option value="BN">Benevento</option>
<option value="BG">Bergamo</option>
<option value="BI">Biella</option>
<option value="BO">Bologna</option>
<option value="BZ">Bolzano</option>
<option value="BS">Brescia</option>
<option value="BR">Brindisi</option>
<option value="CA">Cagliari</option>
<option value="CL">Caltanissetta</option>
<option value="CB">Campobasso</option>
<option value="CI">Carbonia-Iglesias</option>
<option value="CE">Caserta</option>
<option value="CT">Catania</option>
<option value="CZ">Catanzaro</option>
<option value="CH">Chieti</option>
<option value="CO">Como</option>
<option value="CS">Cosenza</option>
<option value="CR">Cremona</option>
<option value="KR">Crotone</option>
<option value="CN">Cuneo</option>
<option value="EN">Enna</option>
<option value="FM">Fermo</option>
<option value="FE">Ferrara</option>
<option value="FI">Firenze</option>
<option value="FG">Foggia</option>
<option value="FC">Forlì-Cesena</option>
<option value="FR">Frosinone</option>
<option value="GE">Genova</option>
<option value="GO">Gorizia</option>
<option value="GR">Grosseto</option>
<option value="IM">Imperia</option>
<option value="IS">Isernia</option>
<option value="SP">La Spezia</option>
<option value="AQ">L'Aquila</option>
<option value="LT">Latina</option>
<option value="LE">Lecce</option>
<option value="LC">Lecco</option>
<option value="LI">Livorno</option>
<option value="LO">Lodi</option>
<option value="LU">Lucca</option>
<option value="MC">Macerata</option>
<option value="MN">Mantova</option>
<option value="MS">Massa-Carrara</option>
<option value="MT">Matera</option>
<option value="ME">Messina</option>
<option value="MI">Milano</option>
<option value="MO">Modena</option>
<option value="MB">Monza e della Brianza</option>
<option value="NA">Napoli</option>
<option value="NO">Novara</option>
<option value="NU">Nuoro</option>
<option value="OT">Olbia-Tempio</option>
<option value="OR">Oristano</option>
<option value="PD">Padova</option>
<option value="PA">Palermo</option>
<option value="PR">Parma</option>
<option value="PV">Pavia</option>
<option value="PG">Perugia</option>
<option value="PU">Pesaro e Urbino</option>
<option value="PE">Pescara</option>
<option value="PC">Piacenza</option>
<option value="PI">Pisa</option>
<option value="PT">Pistoia</option>
<option value="PN">Pordenone</option>
<option value="PZ">Potenza</option>
<option value="PO">Prato</option>
<option value="RG">Ragusa</option>
<option value="RA">Ravenna</option>
<option value="RC">Reggio Calabria</option>
<option value="RE">Reggio Emilia</option>
<option value="RI">Rieti</option>
<option value="RN">Rimini</option>
<option value="RM">Roma</option>
<option value="RO">Rovigo</option>
<option value="SA">Salerno</option>
<option value="VS">Medio Campidano</option>
<option value="SS">Sassari</option>
<option value="SV">Savona</option>
<option value="SI">Siena</option>
<option value="SR">Siracusa</option>
<option value="SO">Sondrio</option>
<option value="TA">Taranto</option>
<option value="TE">Teramo</option>
<option value="TR">Terni</option>
<option value="TO">Torino</option>
<option value="OG">Ogliastra</option>
<option value="TP">Trapani</option>
<option value="TN">Trento</option>
<option value="TV">Treviso</option>
<option value="TS">Trieste</option>
<option value="UD">Udine</option>
<option value="VA">Varese</option>
<option value="VE">Venezia</option>
<option value="VB">Verbano-Cusio-Ossola</option>
<option value="VC">Vercelli</option>
<option value="VR">Verona</option>
<option value="VV">Vibo Valentia</option>
<option value="VI">Vicenza</option>
<option value="VT">Viterbo</option>
</select>
<?php
}
?>