aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-08-18 01:25:40 +0200
committerKevin Chabowski <kevin@kch42.de>2011-08-18 01:25:40 +0200
commit22e2c59b161c96fff4b883568596efa5b55285ef (patch)
treee030df4325503b50d323c15e4501740dbf5b12a2
parent27db8a06b3228e900f1987d54c18bb1e64e14e8a (diff)
downloadratatoeskr-cms-22e2c59b161c96fff4b883568596efa5b55285ef.tar.gz
ratatoeskr-cms-22e2c59b161c96fff4b883568596efa5b55285ef.tar.bz2
ratatoeskr-cms-22e2c59b161c96fff4b883568596efa5b55285ef.zip
Rewriting rules (+testscript) and protection of system files.
-rw-r--r--.htaccess7
-rw-r--r--index.php12
-rw-r--r--ratatoeskr/.htaccess4
-rw-r--r--ratatoeskr/backend/main.php0
-rw-r--r--ratatoeskr/plugin_extradata/.htaccess4
-rw-r--r--ratatoeskr/templates/.htaccess4
6 files changed, 29 insertions, 2 deletions
diff --git a/.htaccess b/.htaccess
index e69de29..22cfebf 100644
--- a/.htaccess
+++ b/.htaccess
@@ -0,0 +1,7 @@
+RewriteEngine On
+
+RewriteCond %{REQUEST_FILENAME} -f [OR]
+RewriteCond %{REQUEST_FILENAME} -d
+RewriteRule ^(.+) - [PT,L]
+
+RewriteRule (.*) index.php/$1 [L]
diff --git a/index.php b/index.php
index 3eb9468..2d55787 100644
--- a/index.php
+++ b/index.php
@@ -1,7 +1,15 @@
<?php
-header("Content-Type: text/text");
+/*require_once(dirname(__FILE__) . "/ratatoeskr/main.php");
+ratatoeskr();*/
+header("Content-type: text/plain");
+print "\$_POST:\n";
+print_r($_POST);
+print "\n\n\$_GET:\n";
+print_r($_GET);
+print "\n\n\$_REQUEST:\n";
print_r($_REQUEST);
-
+print "\n\n\$_SERVER:\n";
+print_r($_SERVER);
?>
diff --git a/ratatoeskr/.htaccess b/ratatoeskr/.htaccess
new file mode 100644
index 0000000..dec4e25
--- /dev/null
+++ b/ratatoeskr/.htaccess
@@ -0,0 +1,4 @@
+<FilesMatch "\.php$">
+ Order Allow,Deny
+ Deny from all
+</FilesMatch>
diff --git a/ratatoeskr/backend/main.php b/ratatoeskr/backend/main.php
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ratatoeskr/backend/main.php
diff --git a/ratatoeskr/plugin_extradata/.htaccess b/ratatoeskr/plugin_extradata/.htaccess
new file mode 100644
index 0000000..19469bf
--- /dev/null
+++ b/ratatoeskr/plugin_extradata/.htaccess
@@ -0,0 +1,4 @@
+<Files *>
+ Order Allow,Deny
+ Deny from all
+</Files>
diff --git a/ratatoeskr/templates/.htaccess b/ratatoeskr/templates/.htaccess
new file mode 100644
index 0000000..19469bf
--- /dev/null
+++ b/ratatoeskr/templates/.htaccess
@@ -0,0 +1,4 @@
+<Files *>
+ Order Allow,Deny
+ Deny from all
+</Files>