Project

General

Profile

« Previous | Next » 

Revision 13652

web/.phpPgAdmin/.htaccess: RewriteRules: use overridable action var

View differences:

trunk/web/.phpPgAdmin/.htaccess
17 17
# default, leftmost tab.)
18 18
#
19 19
# subject values @ /usr/share/phppgadmin/classes/Misc.php#getSubjectParams()
20
RewriteRule ^                          -                                    [discardpath,noescape,qsappend,env=subject:root,env=page:servers]
21
RewriteRule ^([^/]+)(?:/(.*))?$        $2?server=$1                         [discardpath,noescape,qsappend,env=subject:server,env=page:all_db]
22
RewriteRule ^([^/]+)(?:/(.*))?$        $2?database=$1                       [discardpath,noescape,qsappend,env=subject:database,env=page:schemas]
23
RewriteRule ^([^/]+)(?:/(.*))?$        $2?schema=$1                         [discardpath,noescape,qsappend,env=subject:schema,env=page:tables]
24
RewriteRule ^(views|functions)()$      $2                                   [discardpath,noescape,qsappend,env=subject:schema,env=page:$1]
25
RewriteRule ^view=([^/]+)(?:/(.*))?$   $2?view=$1&action=definition         [discardpath,noescape,qsappend,env=subject:view,env=page:viewproperties]
26
RewriteRule ^fn.oid=([^/]+)(?:/(.*))?$ $2?function_oid=$1&action=properties [discardpath,noescape,qsappend,env=subject:function,env=page:functions]
27
RewriteRule ^([^/]+)(?:/(.*))?$        $2?table=$1                          [discardpath,noescape,qsappend,env=subject:table,env=page:tblproperties]
28
RewriteRule ^([^/]+)(?:/(.*))?$        $2?column=$1                         [discardpath,noescape,qsappend,env=subject:column,env=page:colproperties]
20
RewriteRule ^                          -                  [discardpath,noescape,qsappend,env=subject:root,env=page:servers]
21
RewriteRule ^([^/]+)(?:/(.*))?$        $2?server=$1       [discardpath,noescape,qsappend,env=subject:server,env=page:all_db]
22
RewriteRule ^([^/]+)(?:/(.*))?$        $2?database=$1     [discardpath,noescape,qsappend,env=subject:database,env=page:schemas]
23
RewriteRule ^([^/]+)(?:/(.*))?$        $2?schema=$1       [discardpath,noescape,qsappend,env=subject:schema,env=page:tables]
24
RewriteRule ^(views|functions)()$      $2                 [discardpath,noescape,qsappend,env=subject:schema,env=page:$1]
25
RewriteRule ^view=([^/]+)(?:/(.*))?$   $2?view=$1         [discardpath,noescape,qsappend,env=subject:view,env=page:viewproperties,env=action:definition]
26
RewriteRule ^fn.oid=([^/]+)(?:/(.*))?$ $2?function_oid=$1 [discardpath,noescape,qsappend,env=subject:function,env=page:functions,env=action:properties]
27
RewriteRule ^([^/]+)(?:/(.*))?$        $2?table=$1        [discardpath,noescape,qsappend,env=subject:table,env=page:tblproperties]
28
RewriteRule ^([^/]+)(?:/(.*))?$        $2?column=$1       [discardpath,noescape,qsappend,env=subject:column,env=page:colproperties]
29 29

  
30 30
# custom pages
31 31
# must be in query string b/c .php filename would be treated as path element

Also available in: Unified diff