Example #1
0
			                      $("#estatususerubi").attr("class","avatar avatar-online");
		                      }
                          }
   	                    }
   	                  }
   	                });
   	                contador=5;
   	              }
   	          }
   	          ,1000);
   	    }
   	 var map;
   	 function pedirPosicion(pos) {
   	   	 <?php 
$avatar = avatar($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $_SESSION["iduser"]);
$obtenerlatlongAll = obtenerlatlongAll($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL);
$tam = substr_count($obtenerlatlongAll, "&");
?>
   	   var centro = new google.maps.LatLng(pos.coords.latitude,pos.coords.longitude);
   	 
   	   var myOptions = {
   	     zoom: 16, //nivel de zoom para poder ver de cerca.
   	     center: centro,
   	     mapTypeId: google.maps.MapTypeId.ROADMAP //Tipo de mapa inicial,callejero
   	   }
   	   
   	 map = new google.maps.Map(document.getElementById("gmap"), myOptions);	   
   	  // map.setMapTypeId(google.maps.MapTypeId.ROADMAP); //y lo volvemos un mapa callejero

   	   var marker=new google.maps.Marker({
   	     position:centro,
  <div class="page animsition"> 
    <div class="gmap" id="gmap"></div>

  <div class="col-xlg-12 col-lg-12 col-md-12" style="background:#f1f4f5"><br>
          <!-- Panel Traffic -->
          <div class="panel" id="Revistaers">
            <div class="panel-heading">
              <h3 class="panel-title">
                Cerca de ti
              </h3>
            </div>
            <div class="panel-body" id="lista">
             
              <ul class="list-group list-group-dividered list-group-full">
              <?php 
$ubicacion = obtenerlatlongAll($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL);
$tam = substr_count($ubicacion, "&");
$ubicacions = explode("&", $ubicacion);
if ($tam >= 10) {
    $tot = 10;
} else {
    $tot = $tam;
}
for ($a = 0; $a < $tot; $a++) {
    // echo $ubicacions[$a];
    $users = explode(",", $ubicacions[$a]);
    $users[6] = str_replace(",", ";", $users[6]);
    $tim = explode(" ", $users[5]);
    if ($tim[2] == "min") {
        if ($tim[0] < 60) {
            $estus = "online";
Example #3
0
function savekmyedad2($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL, $km, $edad, $sex)
{
    $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 {
        $strS = "select *from perfiluser where iduser="******"iduser"];
        $Res = mysql_query($strS);
        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 {
            if (mysql_num_rows($Res) > 0) {
                $str = "update perfiluser set km=" . $km . ", edad=" . $edad . ", presex='" . $sex . "' where iduser="******"iduser"];
                $Ress = mysql_query($str);
                $html = 1;
            } else {
                $strss = "insert into perfiluser (iduser, km, edad, presex) values(" . $_SESSION["iduser"] . "," . $km . "," . $edad . ",'" . $sex . "')";
                $Ress = mysql_query($strss);
                $html = 1;
            }
        }
    }
    $obtenerlatlongAll = obtenerlatlongAll($strHostMYSQL, $strUserMYSQL, $strPWDMYSQL, $strDBMYSQL);
    $tam = substr_count($obtenerlatlongAll, "&");
    return $obtenerlatlongAll . "/-/" . $tam;
}