diff --git a/bouncing/.htaccess b/bouncing/.htaccess deleted file mode 100644 index 7031355..0000000 --- a/bouncing/.htaccess +++ /dev/null @@ -1 +0,0 @@ -php_value include_path '../include' diff --git a/errors/.htaccess b/errors/.htaccess new file mode 100644 index 0000000..3a42882 --- /dev/null +++ b/errors/.htaccess @@ -0,0 +1 @@ +Deny from all diff --git a/errors/500/index.html b/errors/500/index.html new file mode 100644 index 0000000..8993e0f --- /dev/null +++ b/errors/500/index.html @@ -0,0 +1,10 @@ +
+

Error 500

+

+ Wow, you crashed my website... :'( +

+

+ You can go back to the index or wherever you want... (if it works...) +

+# +
diff --git a/errors/500/index.py b/errors/500/index.py new file mode 100755 index 0000000..117f8db --- /dev/null +++ b/errors/500/index.py @@ -0,0 +1,23 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +import sys +from webtools import Web + +def main(): + print('Content-type: text/html') + print() + + page = Web.Element(Web.ROOT_DIR + 'templates/page.html') + head = Web.Element(Web.ROOT_DIR + 'templates/head.html') + body = Web.Element(Web.ROOT_DIR + 'templates/body.html') + content = Web.Element('index.html') + + page.add_child(head) + page.add_child(body) + body.add_child(content) + + page.print() + +if __name__ == '__main__': + main() diff --git a/multisphere/.htaccess b/multisphere/.htaccess deleted file mode 100644 index 7031355..0000000 --- a/multisphere/.htaccess +++ /dev/null @@ -1 +0,0 @@ -php_value include_path '../include' diff --git a/prototype/.htaccess b/prototype/.htaccess deleted file mode 100644 index 9d6be3b..0000000 --- a/prototype/.htaccess +++ /dev/null @@ -1,4 +0,0 @@ - - Order Allow,Deny - Deny from all - diff --git a/stream/.htaccess b/stream/.htaccess deleted file mode 100644 index 7031355..0000000 --- a/stream/.htaccess +++ /dev/null @@ -1 +0,0 @@ -php_value include_path '../include' diff --git a/templates/.htaccess b/templates/.htaccess new file mode 100644 index 0000000..3a42882 --- /dev/null +++ b/templates/.htaccess @@ -0,0 +1 @@ +Deny from all