Codice PHP:
<? session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//IT" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script language="javascript">
<!--
var s_width ='';
var s_height ='';
s_width=screen.width
s_height=screen.height
if (s_width == "600"){
<? $r=1; ?>
if (s_width == "640"){
<? $r=1; ?>
}
if (s_width == "800"){
<? $r=1; ?>
}
if (s_width == "1024"){
<? $r=2; ?>
}
if (s_width == "1152"){
<? $r=2; ?>
}
if (s_width == "1280"){
<? $r=2; ?>
}
//-->
</script>
<?
include("wcheck.php");
$conn = connetti();
$query = mysql_query("UPDATE utentiz SET luogo=NULL WHERE ip='".$REMOTE_ADDR."'",$conn);
$biblioteca = mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '11' ",$conn);
$karsio = mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '13' ",$conn);
$laboratorio = mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '1' ",$conn);
$piazza = mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '8' ",$conn);
$ponte = mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '10' ",$conn);
$pub = mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '6' ",$conn);
$raffineria = mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '7' ",$conn);
$tempio = mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '5' ",$conn);
$stelgard = mysql_query("SELECT COUNT(*) FROM utenti, utentiz WHERE idutente=id_utente AND luogo = '15' ",$conn);
$biblio= mysql_fetch_row($biblioteca);
$biblio1="Utenti Online: ". $biblio[0];
$kar= mysql_fetch_row($karsio);
$kar1="Utenti Online: ". $kar[0];
$lab= mysql_fetch_row($laboratorio);
$lab1="Utenti Online: ". $lab[0];
$pia= mysql_fetch_row($piazza);
$pia1="Utenti Online: ". $pia[0];
$pon= mysql_fetch_row($ponte);
$pon1="Utenti Online: ". $pon[0];
$pubz= mysql_fetch_row($pub);
$pubz1="Utenti Online: ". $pubz[0];
$raf= mysql_fetch_row($raffineria);
$raf1="Utenti Online: ". $raf[0];
$tem= mysql_fetch_row($tempio);
$tem1="Utenti Online: ". $tem[0];
$ste= mysql_fetch_row($stelgard);
$ste1="Utenti Online: ". $ste[0];
$cbiblioteca = mysql_query("SELECT COUNT(*) FROM biblioteca",$conn)or die (mysql_error());
$claboratorio = mysql_query("SELECT COUNT(*) FROM lab",$conn)or die (mysql_error());
$cpiazza = mysql_query("SELECT COUNT(*) FROM piazza",$conn)or die (mysql_error());
$cponte = mysql_query("SELECT COUNT(*) FROM ponte",$conn)or die (mysql_error());
$cpub = mysql_query("SELECT COUNT(*) FROM pub",$conn)or die (mysql_error());
$craffineria = mysql_query("SELECT COUNT(*) FROM raffineria",$conn)or die (mysql_error());
$ctempio = mysql_query("SELECT COUNT(*) FROM tempio",$conn)or die (mysql_error());
//
$cbiblioz='';
$clabz='';
$cpiaz='';
$cpubz='';
$cpontz='';
$crafz='';
$ctempz='';
//
$cbiblio= mysql_fetch_row($cbiblioteca);
if($cbiblio[0]!='0'){
$cbiblioz="Luogo Attivo";
}
$clab= mysql_fetch_row($claboratorio);
if($clab[0]!='0'){
$clabz="Luogo Attivo";
}
$cpia= mysql_fetch_row($cpiazza);
if($cpia[0]!='0'){
$cpiaz="Luogo Attivo";
}
$cpubb= mysql_fetch_row($cpub);
if($cpubb[0]!='0'){
$cpubz="Luogo Attivo";
}
$cpontee= mysql_fetch_row($cponte);
if($cpontee[0]!='0'){
$cpontz="Luogo Attivo";
}
$craf= mysql_fetch_row($craffineria);
if($craf[0]!='0'){
$crafz="Luogo Attivo";
}
$ctem= mysql_fetch_row($ctempio);
if($ctem[0]!='0'){
$ctempz="Luogo Attivo";
disconnetti($conn);
}
?>
<title>Untitled Document</title>
<script type="text/javascript" src="script1.js"></script>
<script type="text/javascript" src="script2.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>parent.rightFrame.location.replace("framedx.php?luogo=99");</script>
</head>
<body text="#FFFFFF">
<div align="center">
<table width="651px" height="436px" cellpadding="2" cellspacing="1" border="0" class="forumline"><tr>
<td class="row3" align="center" width="649px" height="436px">
[img]mappalenar.jpg[/img]
<? echo"
<map name=\"mappa\">
<area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Casinò[/b]
', 'direction', 'southwest', 'trail','true', true))\" href=\"luoghi/gioco/casino_out.php\" coords=\"286,432,313,434,315,476,337,481,331,502,274,502,274,463,282,462\" >
<area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Raffineria[/b]
".$raf1."
".$crafz."', 'direction', 'southwest', 'trail','true', true));\" href=\"luoghi/raffineria/raffineria_out.php\" coords=\"24,144,90,140,156,141,158,310,154,292,82,290,47,301,23,302\" >
<area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Biblioteca[/b]
".$biblio1."
".$cbiblioz."', 'direction', 'southwest', 'trail','true', true));\" href=\"luoghi/biblioteca/biblioteca_out.php\" coords=\"222,352,186,349,182,334,174,339,156,333,174,326,203,329,206,312,218,315,221,330,272,333,272,346,253,353,256,362,262,363,262,368,271,368,272,403,264,407,265,414,272,412,274,445,267,448,267,459,274,456,272,489,273,503,186,504,185,349\" >
<area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Mercato[/b]', 'direction', 'southwest', 'trail','true', true));\" href=\"luoghi/mercato/mercato_out.php\" coords=\"397,221,396,347,411,358,460,351,452,230,426,228,422,216\">
<area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Laboratorio[/b]
".$lab1."
".$clabz."', 'direction', 'southwest', 'trail','true', true));\" href=\"luoghi/lab/lab_out.php\" coords=\"393,300,380,295,366,295,355,300,357,303,354,306,356,326,353,326,351,395,367,394,374,383,377,383,369,360,381,348,394,347,397,313,394,306\" >
<area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Tempio[/b]
".$tem1."
".$ctempz."', 'direction', 'southwest', 'trail','true', true));\" href=\"luoghi/tempio/tempio_out.php\" coords=\"470,74,472,85,464,86,465,499,508,454,487,443,493,430,518,430,514,357,562,300,586,302,580,75,552,70,544,34,496,28,475,35,476,70\" >
<area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Accademia[/b]', 'direction', 'southwest', 'trail','true', true));\" href=\"luoghi/accademia/accademia_out.php\" coords=\"178,340,41,331,23,341,23,363,22,502,183,505,184,336\" >
<area shape=\"poly\" onmouseover=\"return makeTrue(domTT_activate(this, event, 'delay', 10, 'content', '[b]Pub[/b]
".$pubz1."
".$cpubz."', 'direction', 'southwest', 'trail','true', true));\" href=\"luoghi/pub/pub_out.php\" coords=\"167,138,171,139,171,108,188,100,187,91,206,92,205,78,210,83,211,90,219,90,214,75,220,77,221,80,221,84,221,88,227,90,231,91,235,92,233,98,238,114,247,117,248,134,251,140,253,328,224,329,220,307,200,311,205,327,170,323\" >
</map>";?>
</td></tr></table>
<?
$conn = connect();
$query=mysql_query("SELECT messaggio FROM mex",$conn);
$fetch=mysql_fetch_row($query);
echo"<marquee>".$fetch[0]."</marquee>";
disconnetti($conn);
?>
</div>
<table width="100%">
<tr>
<td width="100%"><div align="center">
<table width="95%" cellpadding="2" cellspacing="1" border="0" class="forumline" align="center">
<tr>
<td class="row3" align="center" width="20%">
[url="luoghi/pub/pub_out.php"]Dark Lion Pub[/url]
</td>
<td class="row3" align="center" width="20%">
[url="luoghi/piazza/piazza_out.php"]Piazza Principale[/url]
</td>
<td class="row3" align="center" width="20%">
[url="luoghi/lab/lab_out.php"]Laboratorio Clonazioni[/url]
</td>
<td class="row3" align="center" width="20%">
[url="luoghi/tempio/tempio_out.php"]Tempio dei Cultisti[/url]
</td>
<td class="row3" align="center" width="20%">
[url="luoghi/raffineria/raffineria_out.php"]Raffineria della Droga[/url]
</td>
</tr>
<tr>
<td class="row3" align="center" width="20%">
[url="luoghi/biblioteca/biblioteca_out.php"]Biblioteca[/url]
</td>
<td class="row3" align="center" width="20%">
[url="luoghi/gioco/casino_out.php"]Casinò[/url]
</td>
<td class="row3" align="center" width="20%">
[url="bande/gestione_out.php"]Sala del Consiglio[/url]
</td>
<td class="row3" align="center" width="20%">
[url="luoghi/ponte/ponte_out.php"]Ponte[/url]
</td>
<td class="row3" align="center" width="20%">
[url="luoghi/accademia/accademia_out.php"]Accademia[/url]
</td>
</tr>
<tr>
<td class="row3" align="center" width="20%">
[url="luoghi/mercato/mercato_out.php"]Mercato[/url]
</td>
<td class="row3" align="center" width="20%">
[url="luoghi/psiloc/psiloc_out.php"]Quartier Generale[/url]
</td>
<td class="row3" align="center" width="20%">
[url="luoghi/hotel/hotel_out.php"]Hotel[/url]
</td>
<td class="row3" align="center" width="20%">
[url="luoghi/fogne/fogne_out.php"]Fogne[/url]
</td>
<td class="row3" align="center" width="20%">
[url="luoghi/sotterranei/sott_out.php"]Sotterranei[/url]
</td>
</tr>
</div>
</body>
</html>