<?php
/*****************************************************************
* Spacemarc News
* Version: 1.2.0
* Author and copyright (C): Marcello Vitagliano
* Web site: http://www.spacemarc.it
* License: GNU General Public License
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3
* of the License, or (at your option) any later version.
*
* Current file: profilo_admin.php
*****************************************************************/
session_start();
define('IN_NEWS', true);
header('Content-type: text/html; charset=ISO-8859-1');
//includo i file di configurazione
require_once (dirname(__FILE__) . '/../config.php');
require_once (dirname(__FILE__) . '/functions.php');
require_once (dirname(__FILE__) . '/../lang/lang.php');
$db = mysql_connect($db_host, $db_user, $db_password) or die("Impossibile connettersi a MySQL<br />Numero errore: " . mysql_errno() . "<br />Tipo di errore: " . mysql_error());
mysql_select_db($db_name, $db) or die("Impossibile selezionare il database $db_name<br />Numero errore: " . mysql_errno() . "<br />Tipo di errore: " . mysql_error());
check_login();
// se NON sono un amministratore e voglio visualizzare questa pagina, redirigo al profilo dell'utente
if ($_SESSION['livello_id'] != 1) {
header("Location: " . $dir_admin . "/profilo_utente.php");
exit();
}
//calcolo il tempo di generazione della pagina (1a parte)
$mtime1 = explode(" ", microtime());
$starttime = $mtime1[1] + $mtime1[0];
//variabili e notice
$nome_cognome_errato = NULL;
$data_nascita_errata = NULL;
$email_errata = NULL;
$email_esiste = NULL;
$user_password1_error = NULL;
$user_password2_error = NULL;
$user_password2_short = NULL;
$user_password2_empty = NULL;
$update_msg = NULL;
//se è stato inviato un user_id via GET visualizzo il profilo dell'utente
$q_user_id = (isset($_GET['user_id'])) ? intval($_GET['user_id']) : intval($_SESSION['user_id']);
$action = (isset($_POST['cbdel'])) ? "utenti.php" : "profilo_admin.php?user_id=" . $q_user_id;
//conto quanti file ha inserito l'utente visualizzato
$files = 0;
if ($aprodir = @opendir("../" . $file_dir . "/" . $q_user_id)) {
while (false !== ($ifile = readdir($aprodir))) {
if ($ifile != "." && $ifile != "..") {
$files++;
}
}
closedir($aprodir);
}
$files = ($files == 0) ? 0 : --$files;
$link_files = ($files > 0) ? "(<a href=\"javascript:;\" onclick=\"window.open('files.php?user_id=$q_user_id', '', 'width=580, height=400, resizable=1, scrollbars=1, location=1, status=1');\" title=\"Visualizza i files [Popup]\">dettagli</a>)" : NULL;
//seleziono l'utente
$q_profilo = mysql_query("SELECT nu.user_id, nu.nome_cognome, nu.email, nu.nome_livello, nu.user_password, nu.attivo, nu.permessi, nu.mostra_link, nu.email_nascosta, nu.sito, nu.im, nu.im_num, nu.data_nascita, nu.citta, nu.occupazione, nu.hobby, nu.ultimo_accesso, nu.data_registrazione, nu.cookie, nt.data_pubb, (SELECT COUNT(id) FROM $tab_news WHERE user_id=$q_user_id) AS TotaleNews FROM $tab_utenti nu LEFT JOIN $tab_news nt ON nt.user_id=nu.user_id WHERE nu.user_id=$q_user_id ORDER BY nt.data_pubb DESC LIMIT 1");
$q_riga = mysql_fetch_assoc($q_profilo);
if (mysql_num_rows($q_profilo) == 0) {
die("Questo utente non esiste");
}
//estraggo i campi dal db
$data_pubb = ($q_riga['TotaleNews'] == 0) ? NULL : " - Ultima inserita: " . strftime("%d %B %Y %H:%M", $q_riga['data_pubb']) . " (<a href=\"gestione_news.php?user_id=" . $q_riga['user_id'] . "\">visualizza tutte</a>)";
$email_nascosta = ($q_riga['email_nascosta'] == 1) ? '<input type="checkbox" name="user_email_nascosta" id="user_email_nas" checked=\"checked\" /><label for="user_email_nas">' . $lang['emailnascosta'] . '</label>' : '<input type="checkbox" name="user_email_nascosta" id="user_email_nas" /><label for="user_email_nas">' . $lang['emailnascosta'] . '</label>';
$user_totale_news = "Totale: " . $q_riga['TotaleNews'];
$data_nascita = ($q_riga['data_nascita'] == NULL) ? '' : $q_riga['data_nascita'];
$user_ultimo_accesso = ($q_riga['ultimo_accesso'] != 0) ? " - Ultimo accesso: " . strftime("%d %B %Y %H:%M", $q_riga['ultimo_accesso']) : " - Ultimo accesso: N/A";
$data_registrazione = strftime("%d %B %Y %H:%M", $q_riga['data_registrazione']);
$livello = "Livello: <b>" . $q_riga['nome_livello'] . "</b> - ";
$cbdelfile_dis = ($files == 0) ? 'disabled="disabled"' : NULL;
$user_attivo = ($q_riga['attivo'] == 1) ? $lang['status_attivo'] : $lang['status_disattivo'];
$user_attivo2 = ($q_riga['attivo'] == 1) ? '<input type="checkbox" name="user_disattivo" id="user_disattivo" onclick="if (this.checked) { alert(\'Se un utente è disattivato non potrà fare login nè inserire notizie!\'); }" /><label for="user_disattivo">Disattiva account</label>' : '<input type="checkbox" name="user_attivo" id="user_attivo" /><label for="user_attivo">Attiva account</label>';
$cb_cookie = ($q_riga['cookie'] == 1) ? '<input type="checkbox" name="cookie" id="cookie" checked="checked" /><label for="cookie" class="help" title="' . $lang['ricorda_title'] . '">' . $lang['ricorda'] . '</label>' : '<input type="checkbox" name="cookie" id="cookie" /><label for="cookie" class="help" title="Per 21 giorni o finchè non clicchi su Logout">' . $lang['ricorda'] . '</label>';
//posso cancellare solo un utente che non ha scritto news
if ($q_riga['TotaleNews'] == 0) {
$cb_cancella_utente = "<input type=\"checkbox\" name=\"cbdel\" id=\"cbdel\" onclick=\"if (this.checked) { alert('ATTENZIONE: i dati cancellati non potranno essere recuperati!'); }\" /><label for=\"cbdel\">Cancella utente</label>";
$cb_cancella_news = NULL;
}
else {
$cb_cancella_utente = NULL;
$cb_cancella_news = "<input type=\"checkbox\" name=\"cbdelnews\" id=\"cbdelnews\" onclick=\"if (this.checked) { alert('ATTENZIONE: i dati cancellati non potranno essere recuperati!'); }\" /><label for=\"cbdelnews\">Cancella news</label>";
}
//se l'utente visualizzato non è l'utente loggato
if ($q_user_id != $_SESSION['user_id']) {
$link_invia_email = " - <a href=\"javascript:;\" onclick=\"window.open('invia_email_utenti.php?user_id=$q_user_id', '', 'width=420, height=450, resizable=1, scrollbars=1, location=1, status=1');\" title=\"Contatta via email [Popup]\"><img src=\"$img_path/mail.png\" alt=\"Email\" border=\"0\" /> Contattalo</a>";
$cancella_utente = '<tr><td bgcolor="#DEE3E7" align="left"><b class="text">Cancellazione e disattivazione</b></td>
<td bgcolor="#EEEEEE" align="left" class="text">' . $cb_cancella_utente . $cb_cancella_news . $user_attivo2 . ' <input type="checkbox" name="cbdelfile" id="cbdelfile" onclick="if (this.checked) { alert(\'ATTENZIONE: i dati cancellati non potranno essere recuperati!\'); }" ' . $cbdelfile_dis . ' /><label for="cbdelfile">Rimuovi ' . $files . ' file</label> ' . $link_files . '</td></tr>';
}
else {
$link_invia_email = NULL;
$cancella_utente = '<tr><td bgcolor="#DEE3E7" align="left"><b class="text">Cancellazione e disattivazione</b></td>
<td bgcolor="#EEEEEE" align="left" class="text"> ' . $cb_cancella_news . ' <input type="checkbox" name="cbdelfile" id="cbdelfile" onclick="if (this.checked) { alert(\'ATTENZIONE: i dati cancellati non potranno essere recuperati!\'); }" ' . $cbdelfile_dis . ' /><label for="cbdelfile">Rimuovi ' . $files . ' file</label> ' . $link_files . '</td></tr>';
}
//controllo permessi
switch ($q_riga['permessi']) {
case "upload":
$permessi_selected1 = ' checked="checked"';
$permessi_selected2 = NULL;
$permessi_selected3 = NULL;
$permessi_selected4 = NULL;
break;
case "letturestampe":
$permessi_selected1 = NULL;
$permessi_selected2 = ' checked="checked"';
$permessi_selected3 = NULL;
$permessi_selected4 = NULL;
break;
case "tutto":
$permessi_selected1 = NULL;
$permessi_selected2 = NULL;
$permessi_selected3 = ' checked="checked"';
$permessi_selected4 = NULL;
break;
case "nessuno":
$permessi_selected1 = NULL;
$permessi_selected2 = NULL;
$permessi_selected3 = NULL;
$permessi_selected4 = ' checked="checked"';
break;
}
$user_permessi_view = '<tr><td bgcolor="#DEE3E7" align="left"><b class="text">Permessi utente</b><br /><span class="text2">Operazioni all\'atto di inserimento di una notizia</span></td>
<td bgcolor="#EEEEEE" align="left" class="text">
<input type="radio" id="rb_upload" name="rbp" value="upload"' . $permessi_selected1 . ' /><label for="rb_upload">Upload di file</label>
<input type="radio" id="rb_letturestampe" name="rbp" value="letturestampe"' . $permessi_selected2 . ' /><label for="rb_letturestampe">Modifica il nr. di letture e stampe</label>
<input type="radio" id="rb_tutto" name="rbp" value="tutto"' . $permessi_selected3 . ' /><label for="rb_tutto">Tutti</label>
<input type="radio" id="rb_nessuno" name="rbp" value="nessuno"' . $permessi_selected4 . ' /><label for="rb_nessuno">Nessuno</label></td></tr>';
//controllo Instant Messaging
switch ($q_riga['im']) {
case "msn":
$im_selected1 = NULL;
$im_selected2 = 'selected="selected"';
$im_selected3 = NULL;
$im_selected4 = NULL;
$im_selected5 = NULL;
$im_selected6 = NULL;
break;
case "icq":
$im_selected1 = NULL;
$im_selected2 = NULL;
$im_selected3 = 'selected="selected"';
$im_selected4 = NULL;
$im_selected5 = NULL;
$im_selected6 = NULL;
break;
case "y!m":
$im_selected1 = NULL;
$im_selected2 = NULL;
$im_selected3 = NULL;
$im_selected4 = 'selected="selected"';
$im_selected5 = NULL;
$im_selected6 = NULL;
break;
case "skype":
$im_selected1 = NULL;
$im_selected2 = NULL;
$im_selected3 = NULL;
$im_selected4 = NULL;
$im_selected5 = 'selected="selected"';
$im_selected6 = NULL;
break;
case "gtalk":
$im_selected1 = NULL;
$im_selected2 = NULL;
$im_selected3 = NULL;
$im_selected4 = NULL;
$im_selected5 = NULL;
$im_selected6 = 'selected="selected"';
break;
default:
$im_selected1 = 'selected="selected"';
$im_selected2 = NULL;
$im_selected3 = NULL;
$im_selected4 = NULL;
$im_selected5 = NULL;
$im_selected6 = NULL;
}
//controllo Opzioni autore
switch ($q_riga['mostra_link']) {
case "nome":
$link_selected1 = 'checked="checked"';
$link_selected2 = NULL;
$link_selected3 = NULL;
$link_selected4 = NULL;
break;
case "email":
$link_selected1 = NULL;
$link_selected2 = 'checked="checked"';
$link_selected3 = NULL;
$link_selected4 = NULL;
break;
case "sito":
$link_selected1 = NULL;
$link_selected2 = NULL;
$link_selected3 = 'checked="checked"';
$link_selected4 = NULL;
break;
case "profilo":
$link_selected1 = NULL;
$link_selected2 = NULL;
$link_selected3 = NULL;
$link_selected4 = 'checked="checked"';
break;
}
//se nel browser non c'è più il cookie ed invece è settato l'accesso automatico, ne invio un altro
if ($q_riga['cookie'] == 1 && !isset($_COOKIE['accesso_news']) && $q_user_id == $_SESSION['user_id']) {
$expire = 1814400;
$random = mt_rand(0, 32);
$token = md5($random . time());
mysql_query("UPDATE $tab_utenti SET token='$token' WHERE user_id=" . intval($q_user_id));
setcookie("accesso_news", md5($token) , time() + $expire);
}
//servono come valori dei campi di testo, non per l'UPDATE
$nome_cognome_value = $q_riga['nome_cognome'];
$email_value = $q_riga['email'];
$sito_value = $q_riga['sito'];
$im_num_value = $q_riga['im_num'];
$occupazione_value = $q_riga['occupazione'];
$citta_value = $q_riga['citta'];
$hobby_value = $q_riga['hobby'];
if (isset($_POST['submit'])) {
//richiamo le funzioni che controllano vari campi di testo
passwords();
nome_cognome();
check_email();
data_nascita();
altri_campi();
post_im();
//servono come valori dei campi di testo, non per l'UPDATE
if (get_magic_quotes_gpc()) {
$nome_cognome_value = stripslashes(htmlspecialchars($_POST['nome_cognome'], ENT_QUOTES));
$email_value = stripslashes(htmlspecialchars($_POST['email'], ENT_QUOTES));
$sito_value = stripslashes(htmlspecialchars($_POST['sito'], ENT_QUOTES));
$im_num_value = stripslashes(htmlspecialchars($_POST['im_num'], ENT_QUOTES));
$occupazione_value = stripslashes(htmlspecialchars($_POST['occupazione'], ENT_QUOTES));
$citta_value = stripslashes(htmlspecialchars($_POST['citta'], ENT_QUOTES));
$hobby_value = stripslashes(htmlspecialchars($_POST['hobby'], ENT_QUOTES));
}
else {
$nome_cognome_value = htmlspecialchars($_POST['nome_cognome'], ENT_QUOTES);
$email_value = htmlspecialchars($_POST['email'], ENT_QUOTES);
$sito_value = htmlspecialchars($_POST['sito'], ENT_QUOTES);
$im_num_value = htmlspecialchars($_POST['im_num'], ENT_QUOTES);
$occupazione_value = htmlspecialchars($_POST['occupazione'], ENT_QUOTES);
$citta_value = htmlspecialchars($_POST['citta'], ENT_QUOTES);
$hobby_value = htmlspecialchars($_POST['hobby'], ENT_QUOTES);
}
//invio il cookie (durata 21 giorni) se scelgo di restare connesso all'applicazione
if (isset($_POST['cookie']) && !isset($_COOKIE['accesso_news']) && $q_user_id == $_SESSION['user_id']) {
$expire = 1814400;
$random = mt_rand(0, 32);
$token = md5($random . time());
mysql_query("UPDATE $tab_utenti SET token='$token', cookie=1 WHERE user_id=" . intval($q_user_id));
setcookie("accesso_news", md5($token) , time() + $expire);
}
elseif (!isset($_POST['cookie']) && isset($_COOKIE['accesso_news']) && $q_user_id == $_SESSION['user_id']) {
setcookie('accesso_news', '', time() - 3600);
mysql_query("UPDATE $tab_utenti SET token=NULL, cookie=0 WHERE user_id=" . intval($q_user_id));
}
//aggiornamento profilo
if ($user_password_ok == 1 && $user_nome_cognome_ok == 1 && $user_email_ok == 1 && $email_ok == 1 && $user_data_nascita_ok == 1) {
//se scelgo di cancellare o disattivare un utente o le news
if (isset($_POST['cbdel']) || isset($_POST['cbdelnews']) || isset($_POST['user_attivo']) || isset($_POST['user_disattivo'])) {
operazioni_utente();
}
else {
$nome_cognome = (!get_magic_quotes_gpc()) ? mysql_real_escape_string($nome_cognome) : $nome_cognome;
$email = (!get_magic_quotes_gpc()) ? mysql_real_escape_string($email) : $email;
$sito = (!get_magic_quotes_gpc()) ? mysql_real_escape_string($sito) : $sito;
$im_num = (!get_magic_quotes_gpc()) ? mysql_real_escape_string($im_num) : $im_num;
$citta = (!get_magic_quotes_gpc()) ? mysql_real_escape_string($citta) : $citta;
$occupazione = (!get_magic_quotes_gpc()) ? mysql_real_escape_string($occupazione) : $occupazione;
$hobby = (!get_magic_quotes_gpc()) ? mysql_real_escape_string($hobby) : $hobby;
if (mysql_query("UPDATE $tab_utenti SET permessi='$rb_permessi_utente', mostra_link='$rb_mostra_link', email_nascosta=$user_email_nascosta_val, nome_cognome='" . htmlspecialchars($nome_cognome, ENT_QUOTES) . "', user_password='$user_password_new', email='$email', sito='" . htmlspecialchars($sito, ENT_QUOTES) . "', im='" . $_POST['im'] . "', im_num='" . htmlspecialchars($im_num, ENT_QUOTES) . "', data_nascita='$user_data_nascita2', citta='" . htmlspecialchars($citta, ENT_QUOTES) . "', occupazione='" . htmlspecialchars($occupazione, ENT_QUOTES) . "', hobby='" . htmlspecialchars($hobby, ENT_QUOTES) . "' WHERE user_id=" . intval($q_user_id))) {
$update_msg = "<div id=\"success\">" . $lang['edit_prof_ok'] . " <img src=\"$img_path/attendi.gif\" title=\"Attendi\" alt=\"Attendi...\" /></div>
<script language=\"JavaScript\" type=\"text/javascript\">
<!--
function doRedirect() {
location.href = \"$action\";
}
window.setTimeout(\"doRedirect()\", 2000);
//-->
</script><br />";
}
else {
$update_msg = "<div id=\"error\">" . $lang['edit_prof_error'] . "</div><br /><span class=\"text2\">" . mysql_error() . "</span><br /><br />";
}
}
if (isset($_POST['cbdelfile'])) {
full_rmdir("../" . $file_dir . "/" . $q_user_id);
}
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Amministrazione news - Modifica il profilo
</title>
<link rel="stylesheet" href="../style.css" type="text/css" />
<script language="JavaScript" src="../javascript.js" type="text/JavaScript"></script>
</head>
<body>
<?php
include ("menu.php");
echo $update_msg;
echo operazioni_utente();
?>
<form action="<?php echo $action; ?>" method="post" name="form_profilo">
<table width="100%" align="center" style="border: 3px solid #DDDDDD;" cellpadding="4" cellspacing="2">
<tr>
<td bgcolor="#DEE3E7" align="left" width="35%">
<b class="text">Informazioni</b></td>
<td bgcolor="#EEEEEE" align="left" class="text">
<?php echo $livello;
echo " " . $user_attivo; ?></td>
</tr>
<tr>
<td bgcolor="#DEE3E7" align="left">
<b class="text">Data di registrazione</b></td>
<td bgcolor="#EEEEEE" align="left" class="text">
<?php echo $data_registrazione . $user_ultimo_accesso; ?></td>
</tr>
<tr>
<td bgcolor="#DEE3E7" align="left">
<b class="text">
<?php echo $lang['newsinserite']; ?></b></td>
<td bgcolor="#EEEEEE" align="left" class="text">
<?php echo $user_totale_news . $data_pubb; ?></td>
</tr>
<tr>
<td bgcolor="#DEE3E7" align="left">
<b class="text">Nome e cognome</b><br />
<span class="text2">
<?php echo $lang['nomecognomedescr']; ?>
</span></td>
<td bgcolor="#EEEEEE" align="left" class="text">
<input type="text" name="nome_cognome" value="<?php echo $nome_cognome_value; ?>" size="32" maxlength="40" />
<?php echo $nome_cognome_errato; ?></td>
</tr>
<tr>
<td bgcolor="#DEE3E7" align="left">
<b class="text">Email</b><br />
<span class="text2">
<?php echo $lang['emaildescr']; ?>
</span></td>
<td bgcolor="#EEEEEE" align="left" class="text">
<input type="text" name="email" value="<?php echo htmlspecialchars($email_value, ENT_QUOTES); ?>" size="32" maxlength="30" />
<?php echo $email_nascosta; ?>
<?php echo $link_invia_email; ?>
<?php echo $email_errata; ?>
<?php echo $email_esiste; ?></td>
</tr>
<tr>
<td bgcolor="#DEE3E7" align="left">
<b class="text">Password attuale</b><br />
<span class="text2">
<?php echo $lang['passwordattdescr']; ?>
</span></td>
<td bgcolor="#EEEEEE" align="left" class="text">
<input type="password" name="user_password1" size="32" maxlength="40" />
<?php echo $cb_cookie;
echo $user_password1_error;
echo $user_password2_error; ?></td>
</tr>
<tr>
<td bgcolor="#DEE3E7" align="left">
<b class="text">Nuova password</b><br />
<span class="text2">
<?php echo $lang['nuovapassdescr']; ?>
</span></td>
<td bgcolor="#EEEEEE" align="left" class="text">
<input type="password" name="user_password2" size="32" maxlength="40" />
<?php echo $user_password2_empty;
echo $user_password2_short; ?></td>
</tr>
<tr>
<td bgcolor="#DEE3E7" align="left">
<b class="text">Sito web</b><br />
<span class="text2">
<?php echo $lang['sitowebdescr']; ?>
</span></td>
<td bgcolor="#EEEEEE" align="left" class="text">
<input type="text" name="sito" value="<?php echo $sito_value; ?>" size="32" maxlength="40" /></td>
</tr>
<tr>
<td bgcolor="#DEE3E7" align="left">
<b class="text">Instant messaging</b></td>
<td bgcolor="#EEEEEE" align="left" class="text">
<select name="im">
<option value="scegli" <?php echo $im_selected1; ?>>- SCEGLI -
</option>
<option value="gtalk" <?php echo $im_selected6; ?>>GTalk
</option>
<option value="icq" <?php echo $im_selected3; ?>>ICQ
</option>
<option value="msn" <?php echo $im_selected2; ?>>MSN
</option>
<option value="skype" <?php echo $im_selected5; ?>>Skype
</option>
<option value="y!m" <?php echo $im_selected4; ?>>Y!M
</option>
</select> Nick
<input type="text" name="im_num" value="<?php echo $im_num_value; ?>" size="18" maxlength="30" /></td>
</tr>
<tr>
<td bgcolor="#DEE3E7" align="left">
<b class="text">Data di nascita</b><br />
<span class="text2">
<?php echo $lang['nascitadescr']; ?>
</span></td>
<td bgcolor="#EEEEEE" align="left">
<input type="text" name="data_nascita" value="<?php echo htmlspecialchars($data_nascita, ENT_QUOTES); ?>" size="11" maxlength="10" />
<?php echo $data_nascita_errata; ?></td>
</tr>
<tr>
<td bgcolor="#DEE3E7" align="left">
<b class="text">Occupazione</b></td>
<td bgcolor="#EEEEEE" align="left" class="text">
<input type="text" name="occupazione" value="<?php echo $occupazione_value; ?>" size="32" maxlength="50" /></td>
</tr>
<tr>
<td bgcolor="#DEE3E7" align="left">
<b class="text">Città</b></td>
<td bgcolor="#EEEEEE" align="left" class="text">
<input type="text" name="citta" value="<?php echo $citta_value; ?>" size="32" maxlength="50" /></td>
</tr>
<tr>
<td bgcolor="#DEE3E7" align="left">
<b class="text">Interessi</b><br />
<span class="text2">
<?php echo $lang['interessidescr']; ?>
</span>
<a href="javascript:checklength(document.form_profilo);" class="piccolo">conta</a><br />
<span class="text2">
<?php echo $lang['interessidescr2']; ?>
</span></td>
<td bgcolor="#EEEEEE" align="left" class="text">
<textarea name="hobby" cols="36" rows="3"><?php echo $hobby_value; ?></textarea></td>
</tr>
<tr>
<td bgcolor="#DEE3E7" align="left">
<b class="text">Opzioni</b><br />
<span class="text2">
<?php echo $lang['opzionidescr']; ?>
</span></td>
<td bgcolor="#EEEEEE" align="left" class="text">
<input type="radio" id="rb_nome" name="rb" value="nome" <?php echo $link_selected1; ?> />
<label for="rb_nome">
<?php echo $lang['solonome']; ?>
</label>
<input type="radio" id="rb_email" name="rb" value="email" <?php echo $link_selected2; ?> />
<label for="rb_email">
<?php echo $lang['mostraemail']; ?>
</label>
<input type="radio" id="rb_sito" name="rb" value="sito" <?php echo $link_selected3; ?> />
<label for="rb_sito">
<?php echo $lang['mostrasito']; ?>
</label>
<input type="radio" id="rb_profilo" name="rb" value="profilo" <?php echo $link_selected4; ?> />
<label for="rb_profilo">
<?php echo $lang['mostraprofilo']; ?>
</label></td>
</tr>
<?php echo $user_permessi_view;
echo $cancella_utente; ?>
<tr>
<td bgcolor="#DEE3E7" align="center" colspan="2">
<input type="submit" name="submit" value="Modifica" style="font-weight: bold;" /></td>
</tr>
</table>
</form><br />
<?php include ("footer.php"); ?>
</body>
</html>