/usr/share/pgsnap/lib/navigate.php is in pgsnap 0.7.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 | <?php
/*
* Copyright (c) 2008-2010 Guillaume Lelarge <guillaume@lelarge.info>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
// General Side Nav
$navigate_header = '<div id="pgSideWrap">
<div id="pgSideNav">
<h2 class="pgBlockHide">Section Navigation</h2>
';
$navigate_general = $navigate_header.'
<ul>
<li><a href="ver.html">Installed products</a></li>
<li><a href="pgconfig.html">pg_config</a></li>
<li><a href="pgcontroldata.html">pg_controldata</a></li>
<li><a href="param.html">General configuration</a></li>
<li><a href="nondefaultparam.html">Non Default configuration</a></li>';
if ($g_version > '80' && $g_version < '84') {
$navigate_general .= '
<li><a href="paramautovac.html">Autovacuum configuration</a></li>';
}
if ($g_superuser && $g_version > '74'
&& (!strcmp($g_settings['log_destination'], 'stderr')
|| !strcmp($g_settings['log_destination'], 'csvlog'))
&& ((array_key_exists('redirect_stderr', $g_settings)
&& !strcmp($g_settings['redirect_stderr'], 'on'))
|| (array_key_exists('logging_collector', $g_settings)
&& !strcmp($g_settings['logging_collector'], 'on'))) ) {
$navigate_general .= '
<li class="last-child"><a href="lastlogfile.html">Last log file</a></li>';
}
$navigate_general .= '
</ul>
</div>
</div>
';
$navigate_globalobjects = $navigate_header.'
<ul>
<li><a href="bases.html">Databases</a></li>';
if ($g_flashexists && $g_version > '80') {
$navigate_globalobjects .= '
<li><a href="graph_dbsize.html">Databases Size Graph</a></li>';
}
if ($g_pgbuffercache) {
$navigate_globalobjects .= '
<li><a href="databasesincache.html">Databases in cache</a></li>';
}
if ($g_version > '80') {
$navigate_globalobjects.= '
<li><a href="roles.html">Roles</a></li>';
} else {
$navigate_globalobjects.= '
<li><a href="users.html">Users</a></li>';
}
$navigate_globalobjects.= '
<li><a href="user1.html">Users\' Objects</a></li>
<li><a href="user2.html">Users Space allocated</a></li>';
if ($g_version >= '90') {
$navigate_globalobjects.= '
<li><a href="dbrolesettings.html">DB/Role Settings</a></li>';
}
if ($g_version > '74') {
$navigate_globalobjects.= '
<li><a href="tablespaces.html">Tablespaces</a></li>';
if ($g_superuser && $g_flashexists && $g_version > '80') {
$navigate_globalobjects .= '
<li><a href="graph_tblspcsize.html">Tablespaces Size Graph</a></li>';
}
$navigate_globalobjects.= '
<li><a href="tblspc1.html">Tablespaces\' objects</a></li>';
}
$navigate_globalobjects.= '
<li><a href="largeobjects.html">Large
Objects</a></li>';
if ($g_version > '80') {
$navigate_globalobjects.= '
<li class="last-child"><a href="xlog.html">WAL files</a></li>';
}
$navigate_globalobjects.= '
</ul>
</div>
</div>
';
$navigate_dbobjects = $navigate_header.'
<ul>
<li><a href="schemas.html">Schemas</a></li>';
if ($g_version >= '90') {
$navigate_dbobjects.= '
<li><a href="defaultacl.html">Default ACLs</a></li>';
}
$navigate_dbobjects.= '
<li><a href="tables.html">Tables</a></li>';
if ($g_flashexists && $g_version > '80') {
$navigate_dbobjects .= '
<li><a href="graph_tablesize.html">Tables Size Graph</a></li>';
}
if ($g_pgbuffercache) {
$navigate_dbobjects .= '
<li><a href="tablesincache.html">Tables in cache</a></li>';
}
if ($g_pgstattuple) {
$navigate_dbobjects .= '
<li><a href="fragmentedtables.html">Fragmented Tables</a></li>';
}
$navigate_dbobjects .= '
<li><a href="tableswithoutpkey.html">Tables Without PKEY</a></li>
<li><a href="tableswith5+indexes.html">Tables With 5+ indexes</a></li>
<li><a href="clusteredtables.html">Clustered Tables</a></li>
<li><a href="fkconstraints.html">Tables With FKEY constraints</a></li>
<li><a href="views.html">Views</a></li>
<li><a href="sequences.html">Sequences</a></li>
<li><a href="sequences2.html">Sequences - metadata</a></li>
<li><a href="indexes.html">Indexes</a></li>';
if ($g_flashexists && $g_version > '80') {
$navigate_dbobjects .= '
<li><a href="graph_indexsize.html">Indexes Size Graph</a></li>';
}
if ($g_version > '80') {
$navigate_dbobjects .= '
<li><a href="indexesbiggerthantables.html">Indexes Bigger Than Tables</a></li>';
}
if ($g_version > '82') {
$navigate_dbobjects .= '
<li><a href="uselessindexes.html">Useless Indexes</a></li>';
}
if ($g_pgstatindex) {
$navigate_dbobjects .= '
<li><a href="fragmentedindexes.html">Fragmented Indexes</a></li>';
}
if ($g_version > '80') {
$navigate_dbobjects.= '
<li><a href="relationsbloat.html">Relations Bloat</a></li>';
}
$navigate_dbobjects.= '
<li><a href="functions.html">Functions</a></li>
<li class="last-child"><a href="languages.html">Languages</a></li>';
if ($g_version >= '91') {
$navigate_dbobjects.= '
<li><a href="extensions.html">Extensions</a></li>';
}
$navigate_dbobjects.= '
</ul>
</div>
</div>
';
$navigate_activities = $navigate_header.'
<ul>
<li><a href="sessionsinfo.html">Sessions</a></li>
<li><a href="activities.html">Processes</a></li>
<li><a href="nonidleprocesses.html">Non Idle Processes</a></li>';
if ($g_version >= '91') {
$navigate_activities .= '
<li><a href="replication.html">Replication processes</a></li>';
}
if ($g_version >= '82') {
$navigate_activities .= '
<li><a href="cursors.html">Cursors</a></li>
<li><a href="preparedstatements.html">Prepared statements</a></li>
<li><a href="preparedxacts.html">Prepared transactions</a></li>';
}
$navigate_activities .= '
<li><a href="locks.html">Locks</a></li>';
if ($g_version > '80') {
$navigate_activities .= '
<li><a href="exclusivelocks.html">Exclusive Locks</a></li>';
}
if ($g_version < '90') {
$navigate_activities .= '
<li class="last-child"><a href="listeners.html">Listeners</a></li>';
}
$navigate_activities .= '
</ul>
</div>
</div>
';
$navigate_stats = $navigate_header.'
<ul>';
if ($g_version >= '83') {
$navigate_stats .= '
<li><a href="bgwriter.html">bgwriter</a></li>';
}
if ((array_key_exists('stats_block_level', $g_settings)
&& !strcmp($g_settings['stats_block_level'], 'on'))
||
(array_key_exists('track_counts', $g_settings)
&& !strcmp($g_settings['track_counts'], 'on'))) {
$navigate_stats .= '
<li><a href="cachehitratio.html">Cache hit ratio</a></li>';
}
$navigate_stats .= '
<li><a href="stat_databases.html">Databases</a></li>';
if ($g_version >= '91') {
$navigate_stats .= '
<li><a href="stat_databases_conflicts.html">Databases conflicts</a></li>';
}
$navigate_stats .= '
<li><a href="stat_tables.html">Tables (Tuples)</a></li>
<li><a href="statio_tables.html">Tables (IO)</a></li>';
if ($g_version >= '82') {
$navigate_stats .= '
<li><a href="lastvacuumtables.html">Last vacuumed Tables</a></li>
<li><a href="lastanalyzetables.html">Last analyzed Tables</a></li>';
}
if ($g_fsmrelations) {
$navigate_stats .= '
<li><a href="fsmrelations.html">FSM Relations</a></li>';
}
if ($g_fsmpages) {
$navigate_stats .= '
<li><a href="fsmpages.html">FSM Pages</a></li>';
}
$navigate_stats .= '
<li><a href="stat_indexes.html">Indexes (Tuples)</a></li>
<li><a href="statio_indexes.html">Indexes (IO)</a></li>
<li><a href="statio_sequences.html">Sequences (IO)</a></li>';
if ($g_version >= '84') {
$navigate_stats .= '
<li><a href="stat_functions.html">Functions (Runs)</a></li>';
}
$navigate_stats .= '
</ul>
</div>
</div>
';
$navigate_tools = $navigate_header.'<h2>Other tools</h2>
<ul>';
if ($g_pgpool) {
$navigate_tools .= '
<li class="last-child"><a href="pgpool.html">pgPool</a></li>';
}
$navigate_tools .= '
</ul>
</div>
</div>
';
?>
|