This commit is contained in:
flash 2015-04-01 17:56:51 +02:00
parent 4b39892b68
commit fcc1b49740
3 changed files with 50 additions and 19 deletions

View file

@ -1,19 +1,26 @@
# Block access to every file starting with a dot
<Files ".*">
Require all denied
</Files>
# 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
<Files ".*">
Require all denied
</Files>
# 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

19
main/credits.php Normal file
View file

@ -0,0 +1,19 @@
<?php
/*
* Sakura Main Index
*/
// Declare Namespace
namespace Sakura;
// Include components
require_once '/var/www/flashii.net/_sakura/sakura.php';
// Add page specific things
$renderData['page'] = [
'title' => 'Flashii Dev'
];
$renderData['newsPosts'] = Main::getNewsPosts(3);
// Print page contents
print Main::$_TPL->render('main/index.tpl', $renderData);

5
todo.txt Normal file
View file

@ -0,0 +1,5 @@
===
todo list
===
> Fix footer resizing because of the removal of the Affiliates section