From eb22bcc7548d1b1025a3832aa4555792729d11b0 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 13 Jul 2012 22:49:37 +0200 Subject: Add routing front/back ends This adds a URL mapping library that can be used to implement virtual paths. Also, "web/html/index.php" is moved to "web/html/home.php" and "web/html/index.php" becomes a routing front end that maps virtual paths to corresponding files. To enable the virtual path feature, all requests need to be redirected to the "index.php" routing script. If you use lighttpd, following rewrite rule can be used: url.rewrite = ( "^(.*)$" => "/index.php/$1" ) A similar rule can be used for Apache (using mod_rewrite). Note that the current routing front end only works if PATH_INFO is provided. Signed-off-by: Lukas Fleischer --- web/html/home.php | 123 +++++++++++++++++++++++++++++++++++++++++++ web/html/index.php | 152 +++++++++++------------------------------------------ 2 files changed, 155 insertions(+), 120 deletions(-) create mode 100644 web/html/home.php (limited to 'web/html') diff --git a/web/html/home.php b/web/html/home.php new file mode 100644 index 0000000..48f5e00 --- /dev/null +++ b/web/html/home.php @@ -0,0 +1,123 @@ + + +
+
+
+

AUR

+

+ ', + '', + '', + '' + ); + ?> +

+

+ ', '', + '', + '' + ); + ?> +

+

+ + +

+

+

+ ', + '', + '', + '' + ); + ?> +

+

+ ', + '', + '', + '' + ); + ?> +

+ +
+ : +
+ +
+
+ +
+ + + + +
+ +
+
+ +
+
+
+
+
+
+ + + " maxlength="35" /> +
+
+
+
+ + + + +
+ +
+
+
+ + + + +
+ +
+
+ +
+ - -
-
-
-

AUR

-

- ', - '', - '', - '' - ); - ?> -

-

- ', '', - '', - '' - ); - ?> -

-

- - -

-

-

- ', - '', - '', - '' - ); - ?> -

-

- ', - '', - '', - '' - ); - ?> -

- -
- : -
- -
-
- -
- - - - -
- -
-
- -
-
-
-
-
-
- - - " maxlength="35" /> -
-
-
-
- - - - -
- -
-
-
- - - - -
- -
-
- -
-