- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
- <ILLI>
- <!--
- protocol: http/https
- port: port-change
- subhost: add third-level-domain
- host new host
- location: static path
- regexp: condition
- module: module
- controller: controller
- action: action
- params: related to regexp; var-names of values
- crypt: special encoding of params
- accesslevel: test: lock path with access-level, default: all users can see the page
- this allows you, to hide all auto-created url's from users, if zhe userlevel doesn't allow the page-visit;
- i like the idea to hide all admin-pages... e.g.
- <admin
- location = "admin"
- regexp = "(.*)?"
- module = "cms"
- accesslevel = "+=42|_status:404"
- />
- teststuff:
- lt : -
- gt : +
- lteq : -=
- gteq : +=
- eq : default, nothing
- and : seperated with |
- till : -
- else-statements:
- "else" as suffix, requires a prefix:
- _status: will send the http-status
- accesslevel = "+=42|_status:404" <- userlecel <=42 or 404
- _route: will forward to another route
- accesslevel = "+=42|_route:page-index" <- userlecel <=42 or 404
- eg.:
- -=12|15 <- -n,11,12 and 15
- 3|5|8 <- 3,5,8
- -4 <- 1,2,3
- +4 <- 4,5,n
- 3-8 <- 3,4,5,6,7,8
- 2 <- 2
- - regexp in script-/source-files will be removed
- - inline-scriptextension-statements will be removed
- - todo: allow variables in location to create a get-query
- -->
- <routes>
- <page-blog-index
- location = "page/blog/lala.php"
- regexp = "(/d{1,})?"
- module = "site"
- controller = "blog"
- params = "int page"
- />
- <page-blog-year
- location = "page/blog/by-year"
- regexp = "(/d{4}(/d{1,})?)?"
- module = "site"
- controller = "blog"
- action = "article_by_year"
- params = "int year, int page"
- />
- <page-downloads
- protocol = "https"
- subhost = "download"
- host = "localhost"
- port = "1041"
- location = "downloads"
- regexp = ".*/.*"
- module = "download"
- params = "dir dirname, file filename"
- crypt = "dir false, file true"
- accesslevel = "+=5|7|_redirect:page-my-account-account-access-upgrade-account"
- />
- </routes>
- </ILLI>
Undefined
By: Guest | Date: Apr 3 2010 15:24 | Format: None | Expires: never | Size: 2.37 KB | Hits: 910
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago