Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <? @session_start(); ?>
- <div id="riepilogo">
- <?
- @include('../script/db.php');
- @include('../script/var_html.php');
- echo $sep.$topc1. 100 .$topc2;?>
- <div class="cb" style="height:90px">
- <div class="fl c4 h100"> </div>
- <div class="tacenter fl c5 h100" style="width:100px">
- <?
- $arr = array('messaggi','visite','notifiche');
- $arr_lk = array('messaggi/index','gestione/visite_nuove','gestione/index');
- $v[0] = ap("select count(id) from gs9.messaggi where destinatario = '".$_COOKIE['nickname']."' and approvato > '0' and letto = '0'");
- $v[1] = ap("select count(distinct(visitatore)) from gs9.profilo_visite where visitato = '".$_COOKIE['nickname']."' and visto = '0' and visitatore !=''");
- $arr_nt = array('gestione/notifiche','gestione/tag','gestione/amicizie_nuove','gestione/conoscenze_nuove','gestione/parentele_nuove','gestione/auth_foto_nuove');
- $x[0] = ap("select count(id) from gs9.profilo_notifiche where visto = '0' and nickname = '".$_COOKIE['nickname']."'");
- $x[1] = ap("select count(id) from gs9.profilo_foto_tag where nickname = '".$_COOKIE['nickname']."' and approvato = '0'");
- $x[2] = ap("select count(nickname) from gs9.profilo_amici where amico = '".$_COOKIE['nickname']."' and confermato = '0' order by nickname asc");
- $x[3] = ap("select count(nickname) from gs9.profilo_conoscenze where conoscente = '".$_COOKIE['nickname']."' and confermato = '0'");
- $x[4] = ap("select count(destinatario) from gs9.profilo_parentele where destinatario = '".$_COOKIE['nickname']."' and approvato = '0'");
- $x[5] = ap("select count(nickname) from gs9.profilo_foto_autorizzazioni where nickname = '".$_COOKIE['nickname']."' and confermato = '0'");
- $v[2] = $x[0]+$x[1]+$x[2]+$x[3]+$x[4]+$x[5];
- if ($_SESSION['sn0']=='') {
- $notdis = mfa("select messaggi as 0, visite as 1, notifiche as 2 from gs9.profilo_notifiche_audio where nickname = '".$_COOKIE['nickname']."'");
- for ($sn=0;$sn<3;$sn++) {if ($notdis[$sn]=='1') {$_SESSION['sn'.$sn]='si';} else {$_SESSION['sn'.$sn]='';}}}
- $totnot = 0; for ($sn=0;$sn<3;$sn++) {if ($_SESSION['sn'.$sn]!='si') {$totnot = $totnot+$v[$sn];}}
- if (($totnot>0) and ($_SESSION['totnot']==0)) { ?>
- <audio autoplay><source src="include/colonna/notifica.mp3" type="audio/mpeg" /></audio>
- <? } @$_SESSION['totnot']=$totnot;
- if (($x[0]==0) and ($x[1]==0) and ($x[2]==0) and ($x[3]==0) and ($x[4]==0) and ($x[5]==0)) {$arr_lk[2]='gestione/notifiche_lette';}
- elseif ($x[0]>0) {$arr_lk[2]=$arr_nt[0];}
- elseif (($x[1]>0) and (($x[0]+$x[2]+$x[3]+$x[4]+$x[5])==0)) {$arr_lk[2]=$arr_nt[1];}
- elseif (($x[2]>0) and (($x[0]+$x[1]+$x[3]+$x[4]+$x[5])==0)) {$arr_lk[2]=$arr_nt[2];}
- elseif (($x[3]>0) and (($x[0]+$x[1]+$x[2]+$x[4]+$x[5])==0)) {$arr_lk[2]=$arr_nt[3];}
- elseif (($x[4]>0) and (($x[0]+$x[1]+$x[2]+$x[3]+$x[5])==0)) {$arr_lk[2]=$arr_nt[4];}
- elseif (($x[5]>0) and (($x[0]+$x[1]+$x[2]+$x[3]+$x[4])==0)) {$arr_lk[2]=$arr_nt[5];}
- else {$arr_lk[2]='gestione/index';}
- for ($i=0;$i<3;$i++) { ?>
- <div class="cb point brb" id="<? echo $arr[$i] ?>" style="width:100px">
- <div class="fl taleft bgnr <? if ($v[$i]==0) { ?>trasp<? } else { ?>bold<? } ?>" style="background-image:url(immagini/colonna/<? echo $arr[$i] ?>.png); padding-left:20px; line-height:18px"><? echo ucf($arr[$i]) ?></div>
- <? if ($v[$i]>0) { ?>
- <span class="fr bold c6 f10" style="margin:3px 2px 2px 2px; width:auto; line-height:13px"> <? echo $v[$i] ?> </span>
- <? } ?>
- <script>
- $("#<? echo $arr[$i] ?>").click(function() {$("#loading_vuoto").hide();$("#loading").show();<? echo $ws ?>$("#main_frame").load('include/<? echo $arr_lk[$i] ?>.php');});
- </script>
- </div>
- <? } ?>
- <div class="cb point brb" style="width:100px">
- <div class="fl taleft bgnr trasp" id="gest_profilo" style="background-image:url(immagini/colonna/gestione.png); padding-left:20px; line-height:18px">Gestione</div>
- <script>
- $("#gest_profilo").click(function() {$("#loading_vuoto").hide();$("#loading").show();<? echo $ws ?>$("#main_frame").load('include/gestione/index.php');});
- $("#gest_profilo,#logout").mouseover(function(){$(this).toggleClass('trasp');$(this).addClass('bold'); });
- $("#gest_profilo,#logout").mouseout(function(){$(this).toggleClass('bold');$(this).addClass('trasp'); });
- </script>
- </div>
- <div class="cb point brb" style="width:100px">
- <div class="fl taleft bgnr trasp" id="logout" style="background-image:url(immagini/colonna/logout.png); padding-left:20px; line-height:18px"><a href="include/script/logout.php">Logout</a></div>
- </div>
- </div>
- <div class="fl c6 h100"> </div>
- </div>
- <? echo $botc1. 100 .$botc2; ?>
- </div>
Add Comment
Please, Sign In to add comment