data = db_data; $db->sql = "select * from tbl_utenti where id=" . $id . " limit 1"; $db->connect(); $qdb = $db->query(); $record = mysql_fetch_array($qdb); $db_utente=$record; $max_annunci=$record[annunci_max]; $qdb=mysql_query("select * from tbl_utenti_abbonamenti where idutente=".$db_utente[id]." and datediff(now(),inizio)>=0 and datediff(fine,now())>=0 order by id desc limit 1"); $db_abbonamento = false; $db_promozione = false; if (mysql_num_rows($qdb)) { $db_utente_abbonamento = mysql_fetch_array($qdb); $db_abbonamento = true; if ($db_utente_abbonamento[costo] == 0) $db_promozione = true; } else $db_utente_abbonamento = array(); $qdb = mysql_query("select count(*) from tbl_annunci where idUser=$userid and rif like 'RI%'"); $temp = mysql_fetch_row($qdb); $db_tot_annunci = $temp[0]; $qdb = mysql_query("select count(*) from tbl_annunci where idUser=$userid and rif like 'RI%' and stato"); $temp = mysql_fetch_row($qdb); $db_num_annunci = $temp[0]; $qdb = mysql_query("select count(*) from tbl_annunci where idUser=$userid and rif like 'RI%' and tipo_ann='G' and stato"); $temp = mysql_fetch_row($qdb); $db_num_annunci_g = $temp[0]; $qdb = mysql_query("select count(*) from tbl_annunci where idUser=$userid and rif like 'RI%' and (tipo_ann='A' or tipo_ann='P')"); $temp = mysql_fetch_row($qdb); $db_num_annunci_a = $temp[0]; $qdb = mysql_query("select count(*) from tbl_annunci where idUser=$userid and rif like 'RR%'"); $temp = mysql_fetch_row($qdb); $db_num_annunci_m = $temp[0]; if ($db_abbonamento) { $max_annunci_foto = $max_annunci + $db_utente_abbonamento[max_annunci]; $max_annunci_testo = $max_annunci_m + $db_utente_abbonamento[max_annunci_m]; } else { $max_annunci_foto = $max_annunci; $max_annunci_testo = $max_annunci_m; } //die($db_num_annunci." ".$max_annunci_foto); if ($db_num_annunci>$max_annunci_foto) $db_num_annunci=$max_annunci_foto; // die("max annunci foto".$max_annunci." ".$db_utente_abbonamento[max_annunci]); $max_creazione = $storicizzabili; // Fine caricamento delle variabili $utente = $record[user]; $tipo = $record[tipo]; $diritti = $record[diritto]; switch ($tipo) { case 1: $stipo = "Amministratore"; break; case 2: $stipo = "Agenzia"; break; case 3: $stipo = "Privato"; break; case 4: $stipo = "Professionista"; break; case 5: $stipo = "Ditta/Artigiano"; break; case 6: $stipo = "Servizi"; break; case 7: $stipo = "Costruttore Edile"; break; } ?> Riferimento Immobiliare - Amministrazione
 

Utente :
 
'; var_dump($_POST); echo '

'; var_dump($_GET); echo '

'; var_dump($_SERVER); } } ?>

© 2003- Logo TECODA S.r.l. TECODA S.r.l.