Sorgente:
Codice PHP:
<?php
session_start();
session_regenerate_id(TRUE);
// Controllo accesso
if (!isset($_SESSION["id"] ) )
{
?>
<SCRIPT type="text/javascript">
window.location.href='index.php'
</SCRIPT>
<?php
}
else
{
include("php/dati.inc.php");
$con=mysql_connect($db_host, $db_user, $db_pwd);
mysql_select_db($db_name, $con);
$id=$_SESSION["id"];
?>
<html>
<head>
<title>Social Space</title>
<link rel="stylesheet" type="text/css" href="css/template.css">
<script type="text/javascript" src="js/caption.js"></script>
</head>
<body>
<div id="header">
Social Space
</div>
<div id="wrapper">
<div id="col_2">
<li style='list-style-image: url(images/home.png)'>
<a href="index.php">
Home</a></li>
<li style='list-style-image: url(images/partners.png)'>
<a href="amici.php">
Amici</a></li>
<li style='list-style-image: url(images/projects.gif)'>
<a href="pag.php?id=<?php echo $id; ?>">
Profilo</a></li>
<li style='list-style-image: url(images/partners.gif)'>
<a href="richieste.php">
Richieste amicizia</a></li>
<li style='list-style-image: url(images/report.png)'>
<a href="#">
Il Mio Diario</a></li>
<li style='list-style-image: url(images/settings.png)'>
<a href="impostazioni.php">
Impostazioni</a></li>
<li style='list-style-image: url(images/pages.png)'>
<a href="faq.php">
F.A.Q.</a></li>
<li style='list-style-image: url(images/logout.png)'>
<a href="php/logout.php">
Esci</a></li><br/>
<center><script type="text/javascript">
//<![CDATA[
document.write('<s'+'cript type="text/javascript" src="http://ad.altervista.org/js.ad/size=125X125/r='+new Date().getTime()+'"><\/s'+'cript>');
//]]>
</script></center>
<br/>
</div>
<div id="col_1">
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td>
<center>Impostazioni</center>
<tr>
<td>
<center>Foto Del Profilo<br/><br/>
<form name="newad" method="post" enctype="multipart/form-data" action="php/upload.php">
<table>
<tr><td><input type="file" name="image"></td></tr>
<tr><td><input name="Submit" type="submit" value="Cambia Immagine">
</center>
</td></tr>
</table>
</form>
</td>
<tr>
</table>
</div>
<div id="col_3">
<center>
<form id="search" action="search.php" method="POST">
<fieldset>
<legend>Cerca Persone</legend>
<input type="text" id="search-in" name="testo" value="cerca amici...">
<button><img src="images/lens.png" width="30px" height="30px" alt="Cerca" title="avvia la ricerca"></button>
</fieldset>
</form>
<script type="text/javascript">
//<![CDATA[
document.write('<s'+'cript type="text/javascript" src="http://ad.altervista.org/js.ad/size=300X250/r='+new Date().getTime()+'"><\/s'+'cript>');
//]]>
</script>
</center>
</div>
<div style="clear:both;"><!– –> </div>
</div>
<div id="footer">
<center>Social Space Designed By Ferraioli Marco, Powered By Ferraioli Marco - © 2010 - Tutti i diritti riservati.</center>
</div>
<script type="text/javascript">
//<![CDATA[
document.write('<s'+'cript type="text/javascript" src="http://ad.altervista.org/js.ad/size=0X1/r='+new Date().getTime()+'"><\/s'+'cript>');
//]]>
</script>
</body>
</html>
<?php
}
?>