1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 23:57:29 +02:00
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@729 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-06-21 23:20:32 +00:00
parent 5d311ef2d9
commit 64ba92421b
29 changed files with 153 additions and 93 deletions

View File

@@ -7,6 +7,7 @@ if (!ini_get("session.auto_start")) {
}
function xhtml_open_tags($s) {
// returns array of opened tags in $s
$return = array();
preg_match_all('~<([^>]+)~', $s, $matches);
foreach ($matches[1] as $val) {
@@ -32,6 +33,7 @@ if ($_GET["start"]) {
exit;
}
if (preg_match('~^(include/)?[-_.a-z0-9]+$~i', $_GET["filename"])) {
// highlight single file
$filename = "adminer/$_GET[filename]";
$cov = $_SESSION["coverage"][realpath($filename)];
$file = explode("<br />", highlight_file($filename, true));
@@ -61,6 +63,7 @@ if (preg_match('~^(include/)?[-_.a-z0-9]+$~i', $_GET["filename"])) {
$s .= "$line<br />\n";
}
} else {
// display list of files
echo "<table border='0' cellspacing='0' cellpadding='1'>\n";
foreach (array_merge(glob("adminer/*.php"), glob("adminer/include/*.php")) as $filename) {
$cov = $_SESSION["coverage"][realpath($filename)];