Fecha de Actualización: 28 de Mayo de 2013
Rendición de Cuentas
Plan Municipal de Desarrollo 2010-2013
if (empty($_COOKIE['juarezid'])) { $chars = uniqid(md5(rand())); $uuid = substr($chars,0,8) . '-'; $uuid .= substr($chars,8,4) . '-'; $uuid .= substr($chars,12,4) . '-'; $uuid .= substr($chars,16,4) . '-'; $uuid .= substr($chars,20,12); $cookie = $uuid; setcookie("juarezid", $cookie, time()+(3600 * 24 * 365 * 10),'/','juarez.gob.mx'); } if (!empty($_COOKIE['juarezid'])) { $cookie = $_COOKIE['juarezid']; } $conn = mysqli_connect('mydb01.mpio','wuser','wpass','webparses'); $result = mysqli_query($conn, "update cookies set counter = counter + 1, fecha=now() where cookie = '" . $cookie . "' order by counter limit 1"); if (mysqli_affected_rows($conn) == 0 && !empty($cookie)) { mysqli_query($conn, "insert into cookies set counter = 1, cookie = '" . $cookie . "', fecha=now()"); }; $httpreferer = ""; if (isset($_SERVER['HTTP_REFERER'])) { $httpreferer = $_SERVER['HTTP_REFERER']; } $query = "insert delayed into cliente_info set http_referer = '" . $httpreferer . "', remote_addr = '" . $_SERVER['REMOTE_ADDR'] ."', http_user_agent = '" . $_SERVER['HTTP_USER_AGENT'] . "', request_uri = '" . $_SERVER['REQUEST_URI'] . "', cookieid = (select id from cookies where cookie = '" . $cookie . "' limit 1), fecha = now(), server = '1'"; mysqli_query($conn, $query); mysqli_close($conn); ?>
TransparenciaBienvenidos a la página de TransparenciaFecha de Actualización: 28 de Mayo de 2013
| ||||||||||