Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Belelieu authored and Jon Belelieu committed Feb 29, 2016
0 parents commit fed7ae3
Show file tree
Hide file tree
Showing 1,893 changed files with 124,674 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
65 changes: 65 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@

# -----------------------------------------------------------------------------------------
# Basic Settings

Options -indexes
Options +FollowSymlinks
RewriteEngine On


# -----------------------------------------------------------------------------------------
# Some PHP related items

# php_flag magic_quotes_gpc Off
# php_value memory_limit 10M
# php_value post_max_size 10M

# php_value upload_max_filesize 10M
# php_flag file_uploads On
# php_value max_execution_time 10000


# -----------------------------------------------------------------------------------------
# Prevent common exploits
# Block common exploits and redirect to login page

RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ login.php [F,L]


# ---------------------------------------------------------
# Force www or no-www in URL
# Option 1: "www.yoursite.com"
# RewriteCond %{HTTP_HOST} ^yoursite\.com$
# RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L]
# Options 2: "yoursite.com"

# RewriteCond %{HTTP_HOST} ^www\.yoursite\.com$
# RewriteRule ^(.*)$ http://yoursite.com/$1 [R=301,L]


# ---------------------------------------------------------
# Compress using gzip

#<ifmodule mod_deflate.c>
# AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
#</ifmodule>


# ---------------------------------------------------------
# Main rewrites

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?in=$1 [L,QSA]


# ---------------------------------------------------------
# Errors Screens

errorDocument 404 error.php?type=404&filename=%{SCRIPT_FILENAME}
errorDocument 500 error.php?type=500
Binary file added .idea/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/dev.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,012 changes: 1,012 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

Loading

0 comments on commit fed7ae3

Please sign in to comment.