$code = htmlentities($value,ENT_QUOTES,'UTF-8'); if ($key == "QuerysRealizadas" or $key=="Errores_Session"){ $code = "<pre>$code</pre>"; } echo g("tr",g("td class='fact' width=10%",$key).g("td",$code)); } echo "</table>"; } */ $sql = "SELECT * FROM ges_logsql ORDER BY FechaCreacion DESC, Idlogsql DESC LIMIT {$num}"; $res = query($sql, "------"); echo "<a name='Log'></a><a href='{$action}?{$rnd}#Log'>Reload</a> - <a href='#Sesion'>Sesion</a>"; echo "<table border=1 width=100%>"; if ($res) { while ($row = Row($res)) { $sql = base64_decode($row["Sql"]); if (!(strpos($sql, "IdCliente") === false)) { if ($row["Exito"] == 0) { $sql = gColor("red", $sql); } $nick = $row["TipoProceso"]; echo g("tr", g("td class=fact", $row["FechaCreacion"]) . g("td", $nick) . g("td", htmlentities($sql, ENT_QUOTES, 'UTF-8'))); } } } else { echo g(br, q($sql) . " no mola"); } echo "</table>"; echo "<a href='#Sesion'>Sesion</a><br>"; PageEnd();
function PageEnd($debug = true) { global $link, $action, $modo, $esPruebas, $sqlTimeSuma, $sumaTiemposTotal, $esVuelcaTiming; if ($debug and isUsuarioAdministradorWeb()) { if (isset($_GET["cargarmodoget"])) { $add = " (get )modo = '{$modo}'"; } else { $add = " (post)modo = '{$modo}'"; } echo "<p>"; echo gColor("gray", glink($action, $action) . serialize($_GET) . $add); } echo "<p>"; if ($esVuelcaTiming) { VuelcaMomentos(); echo "[Suma Tiempos SQL] {$sqlTimeSuma}<br>"; echo "<script>timingTerminaGeneracionPagina({$sumaTiemposTotal})</script>"; } $usuario = $_SESSION["NombreUsuario"]; //if ($usuario and $debug) // echo "<div class=piedepagina style='color:gray'>Operador: $usuario</div>"; echo "</body></html>"; if ($link) { mysql_close($link); } die; //Termina la ejecucion }