forked from GDRCD/GDRCD
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfooter.inc.php
More file actions
68 lines (61 loc) · 2.71 KB
/
footer.inc.php
File metadata and controls
68 lines (61 loc) · 2.71 KB
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
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script type="text/javascript" src="/includes/corefunctions.js"></script>
<!--<script type="text/javascript" src="includes/gdrcdskills.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') {
echo '<script type="text/javascript" src="/includes/changetitle.js"></script>';
}
/** * Caricamento script per la scelta popup nel login
* @author Blancks
*/
if($PARAMETERS['mode']['popup_choise'] == 'ON') {
echo '<script type="text/javascript" src="/includes/popupchoise.js"></script>';
}
?>
<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 (top.$('#dialog-'+name).length == 0) {
// in questo caso lo creiamo:
top.$('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:
top.$('#dialog-'+name).attr('title', title);
top.$('#dialog-'+name+' iframe').attr('src', url);
}
// Ok, adesso siamo pronti per lanciare la modale!
top.$('#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);
?>