From a3908b9dffa6c0d7680734fb819e81b3d8687def Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Mon, 27 May 2013 20:43:48 -0500 Subject: Removed .htaccess files, added the motdLockFile --- .gitignore | 1 + .htaccess | 49 ------------------------------------------------- changelog/.htaccess | 1 - images/.htaccess | 7 ------- images/marks/.htaccess | 1 - includes/.htaccess | 1 - pages/.htaccess | 1 - sounds/.htaccess | 15 --------------- 8 files changed, 1 insertion(+), 75 deletions(-) create mode 100644 .gitignore delete mode 100644 .htaccess delete mode 100644 changelog/.htaccess delete mode 100644 images/.htaccess delete mode 100644 images/marks/.htaccess delete mode 100644 includes/.htaccess delete mode 100644 pages/.htaccess delete mode 100644 sounds/.htaccess diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fcedbc3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/motdLockFile diff --git a/.htaccess b/.htaccess deleted file mode 100644 index 4ee5960..0000000 --- a/.htaccess +++ /dev/null @@ -1,49 +0,0 @@ -AddHandler x-mapp-php6 .php - -ErrorDocument 400 http://www.mazetd.4xg.net/errors.php?error=400 -ErrorDocument 401 http://www.mazetd.4xg.net/errors.php?error=401 -ErrorDocument 403 http://www.mazetd.4xg.net/errors.php?error=403 -ErrorDocument 404 http://www.mazetd.4xg.net/errors.php?error=404 -ErrorDocument 500 http://www.mazetd.4xg.net/errors.php?error=500 - -RewriteEngine on -RewriteBase / -# Incase someone randomly put .html at the end. -RewriteRule ^([a-z]+)\.html$ /?page=$1 [R,L] - -# Maintains www -RewriteCond %{HTTP_HOST} ^mazetd.4xg\.net -RewriteRule (.*) http://www.mazetd.4xg.net/$1 [R,L] -RewriteRule ^([a-z]+)$ /index\.php?page=$1 [QSA,NC] - -# GetMap Re-write -RewriteRule ^a/map/(.*)$ /ajax/maps\.ajax\.php?mapid=$1 [QSA,NC] - -RewriteRule ^a/mapsbydate/(.*)$ /ajax/maps\.ajax\.php?getmapidsbydate=$1 [QSA,NC] - -RewriteRule ^challenge/(.*)$ /ajax/challenges\.ajax\.php?challengeid=$1 [QSA,NC] -RewriteRule ^a/challenge/(.*)$ /ajax/challenges\.ajax\.php?challengeid=$1 [QSA,NC] - -RewriteRule ^user/(.*)$ /ajax/users\.ajax\.php?userid=$1 [QSA,NC] -RewriteRule ^a/user/(.*)$ /ajax/users\.ajax\.php?userid=$1 [QSA,NC] - -RewriteRule ^a/score/(.*)$ /ajax/scores\.ajax\.php?r=$1 [QSA,NC] - - - -# CSS and JS cache for 480 weeks - -Header set Cache-Control "max-age=290304000, public" - - - - - mod_gzip_on Yes - mod_gzip_dechunk Yes - mod_gzip_item_include file \.(txt|css|js)$ - mod_gzip_item_include handler ^cgi-script$ - mod_gzip_item_include mime ^text/.* - mod_gzip_item_include mime ^application/x-javascript.* - mod_gzip_item_exclude mime ^image/.* - mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* - \ No newline at end of file diff --git a/changelog/.htaccess b/changelog/.htaccess deleted file mode 100644 index 3418e55..0000000 --- a/changelog/.htaccess +++ /dev/null @@ -1 +0,0 @@ -deny from all \ No newline at end of file diff --git a/images/.htaccess b/images/.htaccess deleted file mode 100644 index c9d7886..0000000 --- a/images/.htaccess +++ /dev/null @@ -1,7 +0,0 @@ -# 480 weeks - -Header set Cache-Control "max-age=290304000, public" - - -# Incase of missing images -ErrorDocument 404 http://www.pathery.com/images/blank.png?error404=true \ No newline at end of file diff --git a/images/marks/.htaccess b/images/marks/.htaccess deleted file mode 100644 index 04bc913..0000000 --- a/images/marks/.htaccess +++ /dev/null @@ -1 +0,0 @@ -DirectoryIndex blank.png \ No newline at end of file diff --git a/includes/.htaccess b/includes/.htaccess deleted file mode 100644 index 3418e55..0000000 --- a/includes/.htaccess +++ /dev/null @@ -1 +0,0 @@ -deny from all \ No newline at end of file diff --git a/pages/.htaccess b/pages/.htaccess deleted file mode 100644 index 3418e55..0000000 --- a/pages/.htaccess +++ /dev/null @@ -1 +0,0 @@ -deny from all \ No newline at end of file diff --git a/sounds/.htaccess b/sounds/.htaccess deleted file mode 100644 index 657e345..0000000 --- a/sounds/.htaccess +++ /dev/null @@ -1,15 +0,0 @@ -# 480 weeks - -Header set Cache-Control "max-age=290304000, public" - - - - mod_gzip_on Yes - mod_gzip_dechunk Yes - mod_gzip_item_include file \.(swf|txt|css|js)$ - mod_gzip_item_include handler ^cgi-script$ - mod_gzip_item_include mime ^text/.* - mod_gzip_item_include mime ^application/x-javascript.* - mod_gzip_item_exclude mime ^image/.* - mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* - \ No newline at end of file -- cgit v1.2.3 From 320ac2a760da7044fce412fc416e1f6506abfaf7 Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Mon, 27 May 2013 21:02:50 -0500 Subject: Moved $mydomain to db.inc --- globe.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/globe.php b/globe.php index cd3425c..526d306 100644 --- a/globe.php +++ b/globe.php @@ -4,15 +4,7 @@ if (!session_id()) session_start(); //session_regenerate_id(); -//Database login: -//include_once 'sqlEmbedded.php'; - -//!! CONFIRM THIS DOMAIN BEFORE TRANSFER -//$mydomain = "http://www.mazetd.4xg.net/"; -//$mydomain = "http://www.blue.4xg.net/ -//$mydomain = "http://www.pathery.com/"; -$mydomain = "http://beta.snapems.com/"; -//include_once('includes/db.inc.php'); +include_once('includes/db.inc.php'); function LogError($error) { -- cgit v1.2.3 From da0173f4df1f4892e9ae93526c29f5b61ae78819 Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Mon, 27 May 2013 21:26:06 -0500 Subject: Resized some images that were way larger than necessary --- images/Mute.png | Bin 9317 -> 3197 bytes images/Sound.png | Bin 8058 -> 3332 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/images/Mute.png b/images/Mute.png index 8210033..27f9ded 100644 Binary files a/images/Mute.png and b/images/Mute.png differ diff --git a/images/Sound.png b/images/Sound.png index f2a51fa..15666f5 100644 Binary files a/images/Sound.png and b/images/Sound.png differ -- cgit v1.2.3 From cb825735697c8315049c747ea80ff3ad84194593 Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Mon, 27 May 2013 21:44:44 -0500 Subject: Apparently this is recommended to have browsers recognize the favicon (though some/most recognize it regardless)? Anyways, it can't hurt. --- includes/header.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/header.php b/includes/header.php index 15129c4..7085aea 100644 --- a/includes/header.php +++ b/includes/header.php @@ -18,6 +18,8 @@ function htmlHeader($css = array(), $title = 'Pathery', $desc = '', $scripts = a } ?> + + \n"; -- cgit v1.2.3