forked from GDRCD/GDRCD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.inc.php
72 lines (66 loc) · 2.72 KB
/
footer.inc.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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="/includes/corefunctions.js"></script>
<?php
/** * Abilitazione tooltip
* @author Blancks
*/
if ($PARAMETERS['mode']['map_tooltip'] == 'ON' || $PARAMETERS['mode']['user_online_state'] == 'ON')
{
?>
<script type="text/javascript">
var tooltip_offsetX = <?php echo $PARAMETERS['settings']['map_tooltip']['offset_x']; ?>;
var tooltip_offsetY = <?php echo $PARAMETERS['settings']['map_tooltip']['offset_y']; ?>;
</script>
<script type="text/javascript" src="/includes/tooltip.js"></script>
<?php
}
/** * Caricamento script per il titolo "lampeggiante" per i nuovi pm
* @author Blancks
*/
if ($PARAMETERS['mode']['alert_pm_via_pagetitle']=='ON')
{
?>
<script type="text/javascript" src="/includes/changetitle.js"></script>
<?php
}
/** * Caricamento script per la scelta popup nel login
* @author Blancks
*/
if ($PARAMETERS['mode']['popup_choise']=='ON')
{
?>
<script type="text/javascript" src="/includes/popupchoise.js"></script>
<?php
}
?>
<script type="text/javascript">
function modalWindow(name, title, url, width, height) {
// per width ed height imposto dei valori di default così non occorre specificarli in ogni occasione
width = typeof width === 'undefined'? 800 : width;
height = typeof height === 'undefined'? 600 : height;
// verifichiamo se nel body non esiste il sorgente per la dialog
if ($('#dialog-'+name).length == 0) {
// in questo caso lo creiamo:
$('body').append('<div id="dialog-'+name+'" title="'+title+'" style="padding:0;"><iframe src="'+ url +'" frameborder="no" style="position:absolute;width:100%;height:100%;" scrolling="yes"></div>');
} else {
// se il sorgente invece esiste già assegnamo la nuova url all´iframe:
$('#dialog-'+name).attr('title', title);
$('#dialog-'+name+' iframe').attr('src', url);
}
// Ok, adesso siamo pronti per lanciare la modale!
$('#dialog-'+name).dialog({width: width, height: height});
}
</script>
<script type="text/javascript">setTimeout("self.location.href.reload();", <?php echo (int)$_GET['ref'] * 1000; ?>);</script>
</body>
</html>
<?php
/*Chiudo la connessione al database*/
gdrcd_close_connection($handleDBConnection);
/** * Per ottimizzare le risorse impiegate le liberiamo dopo che non ne abbiamo pi� bisogno
* @author Blancks
*/
unset($MESSAGE);
unset($PARAMETERS);
?>