Project

General

Profile

« Previous | Next » 

Revision 7934

web/vegpath/index.php: php*Admin(): Added support for a fixed table that doesn't need to be specified in the path

View differences:

web/vegpath/index.php
60 60
	};
61 61
}
62 62

  
63
function phpPgAdmin($url)
63
function phpPgAdmin($url, $table=null)
64 64
{
65
	return function($path) use($url)
65
	return function($path) use($url, $table)
66 66
	{
67
		$path = join_non_empty(".", array($table, $path));
67 68
		$path = parse_dot_path($path);
68 69
		$subject = "schema";
69 70
		if ($path->head !== "")
......
81 82
	};
82 83
}
83 84

  
84
function phpMyAdmin($url)
85
function phpMyAdmin($url, $table=null)
85 86
{
86
	return function($path) use($url)
87
	return function($path) use($url, $table)
87 88
	{
89
		$path = join_non_empty(".", array($table, $path));
88 90
		$path = parse_dot_path($path);
89 91
		$target = "db_structure";
90 92
		if ($path->head !== "")

Also available in: Unified diff