-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdebug.php
More file actions
34 lines (29 loc) · 682 Bytes
/
Copy pathdebug.php
File metadata and controls
34 lines (29 loc) · 682 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
27
28
29
30
31
32
33
34
<?php
require_once('API/utils/Model.php');
session_start();
if (isset($_SESSION['email'])) {
echo "Current user: " . $_SESSION['email'] . "<br/><br/>";
}
$model = new Model();
$tables = $model->GetTableNames();
foreach ($tables as $table) {
if ($table === "sysdiagrams") continue;
$rows = $model->GetAllRowsFromTable($table);
echo $table ." (" . count($rows) . ")<br/>";
echo "<table style='width:97%'>";
foreach ($rows as $row) {
echo "<tr>";
foreach ($row as $key => $value) {
if (!is_numeric($key)) {
echo "<td>" . $value . "</td>";
}
}
unset($key);
unset($value);
echo "<tr/>";
}
unset($row);
echo "</table><br/>";
}
unset($table);
phpinfo();