Revision 7921
Added by Aaron Marcuse-Kubitza almost 12 years ago
index.php | ||
---|---|---|
117 | 117 |
# add and list URLs |
118 | 118 |
|
119 | 119 |
$nimoy = "http://nimoy.nceas.ucsb.edu/phpmyadmin/index.php"; |
120 |
function nimoy_db($db) { global $nimoy; return phpMyAdmin($nimoy."?db=".$db); } |
|
120 | 121 |
|
121 | 122 |
print("<h2>Terms</h2>"); |
122 | 123 |
{ |
... | ... | |
143 | 144 |
add_ref("SALVIAS", ".table.column", "http://salvias.net/Documents/salvias_data_dictionary.html#"); |
144 | 145 |
{ |
145 | 146 |
print("<blockquote>\n"); $h_level++; |
146 |
add_ref("SALVIAS-db", ".table.column", phpMyAdmin($nimoy."?db=salvias_plots"));
|
|
147 |
add_ref("SALVIAS-users", ".table.column", phpMyAdmin($nimoy."?db=salvias_users"));
|
|
147 |
add_ref("SALVIAS-db", ".table.column", nimoy_db("salvias_plots"));
|
|
148 |
add_ref("SALVIAS-users", ".table.column", nimoy_db("salvias_users"));
|
|
148 | 149 |
print("</blockquote>\n"); $h_level--; |
149 | 150 |
} |
150 | 151 |
add_ref("BIEN2", "", $nimoy."?target=server_databases.php"); |
151 | 152 |
{ |
152 | 153 |
print("<blockquote>\n"); $h_level++; |
153 |
add_ref("BIEN2-web", ".table.column", phpMyAdmin($nimoy."?db=bien_web"));
|
|
154 |
add_ref("BIEN2-core", ".table.column", phpMyAdmin($nimoy."?db=bien2"));
|
|
155 |
add_ref("BIEN2-geoscrub", ".table.column", phpMyAdmin($nimoy."?db=geoscrub"));
|
|
156 |
add_ref("BIEN2-staging", ".table.column", phpMyAdmin($nimoy."?db=bien2_staging"));
|
|
154 |
add_ref("BIEN2-web", ".table.column", nimoy_db("bien_web"));
|
|
155 |
add_ref("BIEN2-core", ".table.column", nimoy_db("bien2"));
|
|
156 |
add_ref("BIEN2-geoscrub", ".table.column", nimoy_db("geoscrub"));
|
|
157 |
add_ref("BIEN2-staging", ".table.column", nimoy_db("bien2_staging"));
|
|
157 | 158 |
print("</blockquote>\n"); $h_level--; |
158 | 159 |
} |
159 | 160 |
add_ref("VegBIEN", ".table.column", phpPgAdmin("http://vegbiendev.nceas.ucsb.edu/phppgadmin/redirect.php?server=localhost%3A5432%3Aallow&database=vegbien&schema=public")); |
Also available in: Unified diff
web/vegpath/index.php: nimoy nodes: Factored nimoy phpMyAdmin() calls out into nimoy_db() function