</div> </a> <ul class="dropdown-menu dropdown-menu-right dropdown-menu-media" role="menu"> <li class="dropdown-menu-header" role="presentation"> <h5>NOTIFICACIONES</h5> </li> <li class="list-group" role="presentation"> <div data-role="container"> <div data-role="content" id="notifi"> <?php $notis = explode("&", $not[1]); for ($i = 0; $i < $not[0]; $i++) { $dato = explode(",", $notis[$i]); $avatarusu = avatar($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $dato[1]); $nombreusers = nombreusus($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $dato[1]); if ($dato[3] == 5 || $dato[3] == 6) { $userr = $dato[5]; } else { $userr = $dato[1]; } if ($dato[5] == $_SESSION["iduser"]) { $usus = 2; } else { $usus = 1; } $idalbum = vercoment($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $dato[1], $dato[6]); $verfoto = verfotocoment($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $idalbum[1]); $confirmarusuado = usuconfir($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $dato[1]); if ($confirmarusuado == 0 && ($dato[3] == 1 || $dato[3] == 6) || $confirmarusuado == 1) { ?>
if ($min == "00") { $time = "Hace un momento"; } else { $time = $min . " min"; } } } } else { if ($dia == 1) { $time = $dia . " Dia"; } else { $time = $dia . " Dias"; } } $avatarusu = avatar($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $row["iduservisitante"]); $nombreusers = nombreusus($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $row["iduservisitante"]); ?> <a class="list-group-item" href="profileExt.php?iduser=<?php echo $row["iduservisitante"]; ?> " role="menuitem"> <div class="media"> <div class="media-left padding-right-10"> <span class="avatar avatar-sm avatar-online"> <img src="<?php echo $avatarusu; ?> " style="height:50px;width:50px" /> </span> </div> <div class="media-body">
function obtenerlatlongAll($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL) { $link = mysql_connect($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL); mysql_select_db($strDBMYSQL, $link); if (mysql_errno() > 0) { $strResultOp = "No fue posible validar el usuario."; $strInfoTec = "No fue posible localizar el host[" . mysql_errno() . "-" . mysql_error() . "]"; $strModulo = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/" . basename($_SERVER['PHP_SELF']); $strParameters = "host:" . $strHostMYSQL . "~-user:"******"~PWD:" . $strPWDMYSQL . "bd:" . $strDBMYSQL; } else { $datosPerfil = datosPerfil($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $_SESSION["iduser"]); if ($datosPerfil[11] == "todos") { $prefe = ""; } else { $prefe = "and p.sexo ='" . $datosPerfil[11] . "'"; } $anno = date("Y"); $str = "SELECT u.iduser,u.latitud,u.longitud,p.sobremi,(6371 * ACOS(SIN(RADIANS(u.latitud)) * SIN(RADIANS(19.4456375))+ COS(RADIANS(u.longitud - -99.119641)) * COS(RADIANS(u.latitud)) * COS(RADIANS(19.4456375))\n )) AS distance FROM ubicacion u, perfiluser p where u.iduser=p.iduser and (" . $anno . "-p.anionac) < " . $datosPerfil[10] . " " . $prefe . " and u.iduser!=" . $_SESSION["iduser"] . " HAVING distance < " . $datosPerfil[9] . " ORDER BY distance ASC"; $Res = mysql_query($str); if (mysql_errno() > 0) { $strResultOp = "No fue posible validar el usuario."; $strInfoTec = "No fue posible ejecutar la consulta[" . mysql_errno() . "-" . mysql_error() . "]"; $strModulo = $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/" . basename($_SERVER['PHP_SELF']); $strParameters = $str; $html = 0; } else { while ($row = mysql_fetch_array($Res)) { $avatar = avatar($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $row["iduser"]); $tiempoact = timeactividad($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $row["iduser"]); //$timeactividad=explode(",",$tiempoact); $nombreusers = nombreusus($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $row["iduser"]); $km = number_format($row["distance"], 2); $row["sobremi"] = str_replace(",", ";", $row["sobremi"]); $ubi .= $nombreusers . "," . $avatar . "," . $row["latitud"] . "," . $row["longitud"] . "," . $km . "," . $tiempoact . "," . $row["sobremi"] . "," . $tiempoact . "," . $row["iduser"] . "&"; } } } return $ubi; }
} else { if ($hr == 1) { $time = $hr . " Hora"; } else { $time = $min . " min"; } } } else { if ($dia == 1) { $time = $dia . " Dia"; } else { $time = $dia . " Dias"; } } $avatarusu = avatar($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $row["iduserAct"]); $nombreusers = nombreusus($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $row["iduserAct"]); $usus = 2; ?> <a class="list-group-item" id="<?php echo $row["iduserAct"] . "," . $row["tipoNotif"] . "," . $usus; ?> " role="menuitem"> <div class="media"> <div class="media-left padding-right-10"> <span class="avatar avatar-sm avatar-online"> <img src="<?php echo $avatarusu; ?> " alt="..." /> </span> </div>
<div id="comentarios"></div> </li> <?php } ?> </ul> <?php } } ?> </div> </div> <?php } else { $avatarusu = avatar($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $_GET["iduser"]); $nombreusers = nombreusus($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $_GET["iduser"]); ?> <div class="page animsition" style="text-align:center"> <div class="page-content container-fluid"> <div class="row"> <h1 class="page-title">Para poder ver el Perfil de este Usuario debe Agregarlo</h1> <br> <div class="widget-header" style="padding-top: 0px"> <div class="widget-header-content"> <a class="avatar avatar-lg"> <img src="<?php echo $avatarusu; ?> "/> </a>