forked from ImIvanGil/DB_Proyect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstop.php
More file actions
executable file
·26 lines (24 loc) · 725 Bytes
/
Copy pathstop.php
File metadata and controls
executable file
·26 lines (24 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
* Si esta en modo debug mostramos la informacion de depuracion.
*/
if ($SMM['debug']) {
echo '<div class="container">';
echo '<div class="row col-xs-6 col-xs-offset-3">';
echo '<div class="panel panel-info">';
echo '<div class="panel-heading">';
echo '<h3 class="panel-title">DEBUG</h3>';
echo '</div>';
echo '<div class="panel-body">';
foreach ($GLOBALS['query_log'] as $log) {
echo "<div class=\"alert alert-info\"><p>SQL: <strong>{$log['sql']}</strong></p><p>VARS: <strong>{" . implode(', ', $log['arguments']) . '}</strong></p></div>';
}
echo '</div>';
echo '</div>';
echo '</div>';
echo '</div>';
}
/**
* Cerramos la conexion con la base de datos.
*/
$database->close();