Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

htaccess file changes for PHP5 #396

Open
wants to merge 29 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
5abd9a3
Merge remote-tracking branch 'remotes/origin/develop'
Apr 16, 2013
21e20b0
Merge remote-tracking branch 'remotes/origin/develop'
Apr 16, 2013
2ecef57
Update README.md
Apr 16, 2013
cc0604b
Removed autofocus from Group Name input field
geraldbullard Apr 17, 2013
ee66afd
Merge pull request #88 from loadedcommerce/B977
Apr 26, 2013
f0258a3
Merge remote-tracking branch 'remotes/origin/release-7.0.0.4.0'
May 8, 2013
f142946
#1048 repaired 500 error with updater
May 8, 2013
4d0b242
#1048 repaired 500 error with updater
May 8, 2013
6cc25df
#1048 added logic to chmod 644 php files after update
May 8, 2013
d21e613
Merge remote-tracking branch 'remotes/origin/develop'
Jun 6, 2013
92284d7
[IC] updated version
Jun 6, 2013
13276f2
Merge pull request #137 from loadedcommerce/D972
Jun 14, 2013
800cbfb
Merge remote-tracking branch 'remotes/origin/develop'
Jul 2, 2013
20ea109
[IC] updated version
Jul 2, 2013
4c0b21f
Merge remote-tracking branch 'remotes/origin/develop'
Jul 8, 2013
3e9eb3b
Merge remote-tracking branch 'remotes/origin/develop'
Jul 9, 2013
30f47a2
[IC] added gpl 2 license
Jul 15, 2013
28887b0
Merge remote-tracking branch 'remotes/origin/release-7.0.2.0'
Aug 5, 2013
2927e0e
[IC] commit zones addon fix
Aug 5, 2013
b4800c2
[IC] commit zones addon fix
Aug 5, 2013
6884aac
Merge remote-tracking branch 'remotes/origin/release-7.0.2.1'
Aug 30, 2013
5436c2d
Merge remote-tracking branch 'remotes/origin/release-7.0.2.2'
Sep 27, 2013
10bcad7
Update controller.php
geraldbullard Oct 28, 2013
2f01bff
Merge remote-tracking branch 'remotes/origin/develop'
Oct 28, 2013
250bb79
suppress warning when no transaction data exists on admin edit order …
Oct 28, 2013
00033f5
hover effect on dashboard cart sessions and new orders missing, fixed
Oct 28, 2013
65e2ddd
notifications buttons text define to update
Oct 28, 2013
a9da9ea
search results back button placement fix
Oct 28, 2013
e3989f6
Fixes ALM ID #1858
Nov 4, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion catalog/addons/Free_Shipping/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ public function getKeys() {
return $this->_keys;
}
}
?>
?>
20 changes: 14 additions & 6 deletions catalog/admin/includes/applications/index/pages/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,25 @@
</div>
<div class="three-columns twelve-columns-mobile new-row-mobile">
<ul class="stats split-on-mobile">
<li><a href="#">
<li>
<a href="#">
<strong><?php echo lC_Administrators_Index::get_live_data_total('Sessions'); ?></strong> <?php echo $lC_Language->get('text_new') . '<br />' . $lC_Language->get('text_visits'); ?>
</a></li>
<li><a href="#">
</a>
</li>
<li>
<a href="#">
<strong><?php echo lC_Administrators_Index::get_live_data_total('Customers'); ?></strong> <?php echo $lC_Language->get('text_new') . '<br />' . $lC_Language->get('text_signups'); ?>
</a></li>
</a>
</li>
<li>
<strong><?php echo lC_Administrators_Index::get_live_data_total('Carts'); ?></strong> <?php echo $lC_Language->get('text_cart') . '<br />' . $lC_Language->get('text_sessions'); ?>
<a href="#">
<strong><?php echo lC_Administrators_Index::get_live_data_total('Carts'); ?></strong> <?php echo $lC_Language->get('text_cart') . '<br />' . $lC_Language->get('text_sessions'); ?>
</a>
</li>
<li>
<strong><?php echo lC_Administrators_Index::get_live_data_total('Orders'); ?></strong> <?php echo $lC_Language->get('text_new') . '<br />' . $lC_Language->get('text_orders'); ?>
<a href="#">
<strong><?php echo lC_Administrators_Index::get_live_data_total('Orders'); ?></strong> <?php echo $lC_Language->get('text_new') . '<br />' . $lC_Language->get('text_orders'); ?>
</a>
</li>
</ul>
</div>
Expand Down
23 changes: 13 additions & 10 deletions catalog/admin/includes/applications/orders/classes/orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -858,16 +858,19 @@ public static function getOrderTransactions($id = null) {
global $lC_Language;
$data = lC_Orders_Admin::getInfo($id);
$cnt = 1;
foreach ($data['transactionHistoryData'] as $thData) {
$tData .= '<tr>' .
' <td>' . lC_DateTime::getShort($thData['date_added'], false) . '</td>' .
' <td>' . $thData['status'] . '&nbsp;&nbsp;' . $thData['return_status'] . '</td>' .
' <td class="cursor-pointer transCommentsTrigger">More <span class="icon-triangle-down"></span></td>' .
'</tr>' .
'<tr style="display:none;">' .
' <td colspan="3" class="force-text-break">' . $thData['return_value'] . '</td>' .
'</tr>';
$cnt++;

if ($data['transactionHistoryData'] != null) {
foreach ($data['transactionHistoryData'] as $thData) {
$tData .= '<tr>' .
' <td>' . lC_DateTime::getShort($thData['date_added'], false) . '</td>' .
' <td>' . $thData['status'] . '&nbsp;&nbsp;' . $thData['return_status'] . '</td>' .
' <td class="cursor-pointer transCommentsTrigger">More <span class="icon-triangle-down"></span></td>' .
'</tr>' .
'<tr style="display:none;">' .
' <td colspan="3" class="force-text-break">' . $thData['return_value'] . '</td>' .
'</tr>';
$cnt++;
}
}
return $tData;
}
Expand Down
121 changes: 103 additions & 18 deletions catalog/dot.htaccess
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
# $Id: .htaccess.php v1.0 2013-01-01 datazen $
#
# LoadedCommerce, Innovative eCommerce Solutions
# http://www.loadedcommerce.com
#
# Copyright (c) 2013 Loaded Commerce, LLC
# This is used with Apache WebServers with mod_expires, mod_headers
# mod_deflate. Written for Apache 2.4.x (2013)
#
# @author Loaded Commerce Team
# @copyright (c) 2013 Loaded Commerce Team
# @license http://loadedcommerce.com/license.html
#
# This is used with Apache WebServers
# Community support is available at http://loaded7.com/community/forums/main/loaded-commerce-support/install-config/
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
Expand All @@ -25,6 +20,98 @@

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers
# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)

Options -Indexes -Multiviews +FollowSymLinks

<IfModule mod_php5.c>
php_flag session.use_trans_sid Off
php_flag session.auto_start Off
php_flag register_long_arrays On
php_flag register_globals Off
php_flag display_errors Off
php_flag log_errors On
php_flag ignore_repeated_errors on
php_flag ignore_repeated_source on
php_flag allow_url_fopen on
php_flag allow_url_include off
</IfModule>

# Insert mod_deflate filter
SetOutputFilter DEFLATE
# Don't compress images
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ \
no-gzip dont-vary
# Don't compress binaries
SetEnvIfNoCase Request_URI \
\.(?:exe|t?gz|zip|bz2|sit|rar)$ \
no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary

# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
# BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 30 days"
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript "access plus 30 days"
ExpiresByType text/css "access plus 60 days"
ExpiresByType image/gif "access plus 30 days"
ExpiresByType image/png "access plus 30 days"
ExpiresByType image/jpeg "access plus 30 days"
ExpiresByType text/plain "access plus 30 days"
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A2419200
ExpiresByType text/html "access plus 1 days"
</IfModule>

<IfModule mod_headers.c>
# 3 Month
<FilesMatch "\.(flv|gif|jpg|jpeg|png|ico|swf)$">
Header set Cache-Control "max-age=7257600, must-revalidate"
</FilesMatch>

# 1 Week
<FilesMatch "\.(js|css|pdf|txt)$">
Header set Cache-Control "max-age=604800, must-revalidate"
</FilesMatch>

# 1 Day
<FilesMatch "\.htc$">
Header set Cache-Control "max-age=86400, must-revalidate"
</FilesMatch>

# 10 Minutes
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=600, must-revalidate"
</FilesMatch>

# NONE
<FilesMatch "\.(pl|php|cgi|spl)$">
Header unset Cache-Control
Header unset Expires
Header unset Last-Modified
FileETag None
Header unset Pragma
</FilesMatch>

<IfModule mod_setenvif.c>
<IfDefine SSL>
Expand All @@ -34,19 +121,14 @@
</IfDefine>
</IfModule>

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)

#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value magic_quotes_gpc 0
#</IfModule>
# This rule does not apply to subdomains and should be omitted

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteRule category/(.*)$ index.php?$1
RewriteRule product/(.*)/specials/(.*),(.*)$ products.php?$1&$2=$3
RewriteRule product/reviews,new/(.*)/(.*),(.*)$ products.php?reviews=new&$1&$2=$3
Expand All @@ -55,4 +137,7 @@
RewriteRule product/reviews/(.*)$ products.php?reviews&$1
RewriteRule product/(.*)/(.*),(.*)$ products.php?$1&$2=$3
RewriteRule product/(.*)$ products.php?$1
</IfModule>
</IfModule>

########### SEO URL REWRITE SHOULD GO HERE ###############################
#### Example: 301 catchy-category/c24/p587/best-product-ever/product_info.html http://catchy-category/c24/p587/new-product-ever/product_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
?>
</form>
<div class="btn-set small-margin-top clearfix">
<button class="pull-right btn btn-lg btn-primary" onclick="$('#account_notifications').submit();" type="button"><?php echo $lC_Language->get('button_delete'); ?></button>
<button class="pull-right btn btn-lg btn-primary" onclick="$('#account_notifications').submit();" type="button"><?php echo $lC_Language->get('button_update'); ?></button>
<form action="<?php echo lc_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" method="post"><button onclick="$(this).closest('form').submit();" class="pull-left btn btn-lg btn-default" type="submit"><?php echo $lC_Language->get('button_back'); ?></button></form>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions catalog/templates/core/content/search/results.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
} else {
require($lC_Vqmod->modCheck('includes/modules/product_listing.php'));
}
?>
<div class="button-set clearfix large-margin-bottom">
<button class="pull-left btn btn-lg btn-default" onclick="javascript: history.go(-1);" type="button"><?php echo $lC_Language->get('button_back'); ?></button>
</div>
?>
</div>
</div>
<div class="button-set clearfix large-margin-bottom">
<button class="pull-left btn btn-lg btn-default" onclick="javascript: history.go(-1);" type="button"><?php echo $lC_Language->get('button_back'); ?></button>
</div>
<script>
$(document).ready(function() {
Expand Down