From fcc1b497405e5f0d8722d908682c184188eb18d8 Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 1 Apr 2015 17:56:51 +0200 Subject: [PATCH] /r/php --- main/.htaccess | 45 ++++++++++++++++++++++++++------------------- main/credits.php | 19 +++++++++++++++++++ todo.txt | 5 +++++ 3 files changed, 50 insertions(+), 19 deletions(-) create mode 100644 main/credits.php create mode 100644 todo.txt diff --git a/main/.htaccess b/main/.htaccess index 3c0eaf2..fd11d20 100644 --- a/main/.htaccess +++ b/main/.htaccess @@ -1,19 +1,26 @@ -# Block access to every file starting with a dot - - Require all denied - - -# Set Error documents -ErrorDocument 404 /404.php -ErrorDocument 403 /404.php -ErrorDocument 401 /404.php - -# Rewrite Stuff -RewriteEngine on -Options +FollowSymLinks -Indexes - -# Rewrite Rules - -# Serving Images -RewriteRule ^a/([0-9]+)$ imageserve.php?m=avatar&u=$1 -RewriteRule ^a/([0-9]+).png$ imageserve.php?m=avatar&u=$1 +# Block access to every file starting with a dot + + Require all denied + + +# Set Error documents +ErrorDocument 404 /404.php +ErrorDocument 403 /404.php +ErrorDocument 401 /404.php + +# Rewrite Stuff +RewriteEngine on +RewriteBase / +Options +FollowSymLinks -Indexes + +# Remove .php from the url +RewriteEngine on +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{REQUEST_FILENAME}\.php -f +RewriteRule ^(.*)$ $1.php + +# Rewrite Rules + +# Serving Images +RewriteRule ^a/([0-9]+)$ imageserve.php?m=avatar&u=$1 +RewriteRule ^a/([0-9]+).png$ imageserve.php?m=avatar&u=$1 diff --git a/main/credits.php b/main/credits.php new file mode 100644 index 0000000..767ecb5 --- /dev/null +++ b/main/credits.php @@ -0,0 +1,19 @@ + 'Flashii Dev' +]; +$renderData['newsPosts'] = Main::getNewsPosts(3); + +// Print page contents +print Main::$_TPL->render('main/index.tpl', $renderData); diff --git a/todo.txt b/todo.txt new file mode 100644 index 0000000..f105c89 --- /dev/null +++ b/todo.txt @@ -0,0 +1,5 @@ +=== + todo list +=== + +> Fix footer resizing because of the removal of the Affiliates section