Public paste
Undefined
By: Guest | Date: Apr 3 2010 15:24 | Format: None | Expires: never | Size: 2.37 KB | Hits: 845

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <ILLI>
  3.         <!--
  4.                 protocol:    http/https
  5.                 port:        port-change
  6.                 subhost:     add third-level-domain
  7.                 host         new host
  8.                 location:        static path
  9.                 regexp:          condition
  10.                 module:          module
  11.                 controller:      controller
  12.                 action:          action
  13.                 params:          related to regexp; var-names of values
  14.                 crypt:           special encoding of params
  15.                
  16.                 accesslevel: test: lock path with access-level, default: all users can see the page
  17.                
  18.                 this allows you, to hide all auto-created url's from users, if zhe userlevel doesn't allow the page-visit;
  19.                 i like the idea to hide all admin-pages... e.g.
  20.                
  21.                         <admin
  22.                                 location    = "admin"
  23.                                 regexp      = "(.*)?"
  24.                                 module      = "cms"
  25.                                 accesslevel = "+=42|_status:404"
  26.                         />
  27.                
  28.                         teststuff:
  29.                        
  30.                         lt   : -
  31.                         gt   : +
  32.                         lteq : -=
  33.                         gteq : +=
  34.                         eq   : default, nothing
  35.                         and  : seperated with |
  36.                         till : -
  37.                        
  38.                         else-statements:
  39.                         "else" as suffix, requires a prefix:
  40.                                 _status: will send the http-status                             
  41.                                         accesslevel = "+=42|_status:404" <- userlecel <=42 or 404
  42.                                        
  43.                                 _route:  will forward to another route
  44.                                         accesslevel = "+=42|_route:page-index" <- userlecel <=42 or 404
  45.                                
  46.                        
  47.                        
  48.                         eg.:
  49.                        
  50.                         -=12|15   <- -n,11,12 and 15
  51.                         3|5|8     <- 3,5,8
  52.                         -4        <- 1,2,3
  53.                         +4        <- 4,5,n
  54.                         3-8       <- 3,4,5,6,7,8
  55.                         2         <- 2
  56.                
  57.                 - regexp in script-/source-files will be removed
  58.                 - inline-scriptextension-statements will be removed
  59.                
  60.                 - todo: allow variables in location to create a get-query
  61.                
  62.                 -->
  63.         <routes>
  64.                 <page-blog-index
  65.                         location    = "page/blog/lala.php"
  66.                         regexp      = "(/d{1,})?"
  67.                         module      = "site"
  68.                         controller  = "blog"
  69.                         params      = "int page"
  70.                 />
  71.                 <page-blog-year
  72.                         location   = "page/blog/by-year"
  73.                         regexp     = "(/d{4}(/d{1,})?)?"
  74.                         module     = "site"
  75.                         controller = "blog"
  76.                         action     = "article_by_year"
  77.                         params     = "int year, int page"
  78.                 />
  79.                 <page-downloads
  80.                         protocol    = "https"
  81.                         subhost     = "download"
  82.                         host        = "localhost"
  83.                         port        = "1041"
  84.                         location    = "downloads"
  85.                         regexp      = ".*/.*"
  86.                         module      = "download"
  87.                         params      = "dir dirname, file filename"
  88.                         crypt       = "dir false, file true"
  89.                         accesslevel = "+=5|7|_redirect:page-my-account-account-access-upgrade-account"
  90.                 />
  91.         </routes>
  92. </ILLI>