Skip to content

Commit

Permalink
Remove hardcoded NONSSL links
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldpdl committed May 28, 2014
1 parent b3aca35 commit cb09740
Show file tree
Hide file tree
Showing 16 changed files with 52 additions and 52 deletions.
4 changes: 2 additions & 2 deletions catalog/admin/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2010 osCommerce
Copyright (c) 2014 osCommerce
Released under the GNU General Public License
*/
Expand Down Expand Up @@ -84,7 +84,7 @@
<tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">
<td class="dataTableContent"><?php echo $cache_blocks[$i]['title']; ?></td>
<td class="dataTableContent" align="right"><?php echo $cache_mtime; ?></td>
<td class="dataTableContent" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_CACHE, 'action=reset&block=' . $cache_blocks[$i]['code'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_reset.gif', 'Reset', 13, 13) . '</a>'; ?>&nbsp;</td>
<td class="dataTableContent" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_CACHE, 'action=reset&block=' . $cache_blocks[$i]['code']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_reset.gif', 'Reset', 13, 13) . '</a>'; ?>&nbsp;</td>
</tr>
<?php
}
Expand Down
4 changes: 2 additions & 2 deletions catalog/admin/categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2013 osCommerce
Copyright (c) 2014 osCommerce
Released under the GNU General Public License
*/
Expand Down Expand Up @@ -774,7 +774,7 @@ function showPiDelConfirm(piId) {
}
?>
<tr>
<td align="right" class="smallText"><?php echo tep_draw_button(IMAGE_BACK, 'triangle-1-w', tep_href_link($back_url, $back_url_params, 'NONSSL')); ?></td>
<td align="right" class="smallText"><?php echo tep_draw_button(IMAGE_BACK, 'triangle-1-w', tep_href_link($back_url, $back_url_params)); ?></td>
</tr>
</table>
<?php
Expand Down
4 changes: 2 additions & 2 deletions catalog/admin/includes/classes/split_page_results.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ function display_links($query_numrows, $max_rows_per_page, $max_page_links, $cur
$display_links = tep_draw_form('pages', $PHP_SELF, '', 'get');

if ($current_page_number > 1) {
$display_links .= '<a href="' . tep_href_link($PHP_SELF, $parameters . $page_name . '=' . ($current_page_number - 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a>&nbsp;&nbsp;';
$display_links .= '<a href="' . tep_href_link($PHP_SELF, $parameters . $page_name . '=' . ($current_page_number - 1)) . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a>&nbsp;&nbsp;';
} else {
$display_links .= PREVNEXT_BUTTON_PREV . '&nbsp;&nbsp;';
}

$display_links .= sprintf(TEXT_RESULT_PAGE, tep_draw_pull_down_menu($page_name, $pages_array, $current_page_number, 'onchange="this.form.submit();"'), $num_pages);

if (($current_page_number < $num_pages) && ($num_pages != 1)) {
$display_links .= '&nbsp;&nbsp;<a href="' . tep_href_link($PHP_SELF, $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
$display_links .= '&nbsp;&nbsp;<a href="' . tep_href_link($PHP_SELF, $parameters . $page_name . '=' . ($current_page_number + 1)) . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
} else {
$display_links .= '&nbsp;&nbsp;' . PREVNEXT_BUTTON_NEXT;
}
Expand Down
4 changes: 2 additions & 2 deletions catalog/admin/includes/functions/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2013 osCommerce
Copyright (c) 2014 osCommerce
Released under the GNU General Public License
*/
Expand All @@ -28,7 +28,7 @@ function tep_redirect($url) {
global $logger;

if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) {
tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'SSL', false));
}

if ( strpos($url, '&amp;') !== false ) {
Expand Down
2 changes: 1 addition & 1 deletion catalog/admin/includes/functions/sessions.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function tep_session_start() {
}

if ($sane_session_id == false) {
tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'SSL', false));
}

register_shutdown_function('session_write_close');
Expand Down
6 changes: 3 additions & 3 deletions catalog/admin/includes/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2008 osCommerce
Copyright (c) 2014 osCommerce
Released under the GNU General Public License
*/
Expand All @@ -17,10 +17,10 @@

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.png', 'osCommerce Online Merchant v' . tep_get_version()) . '</a>'; ?></td>
<td colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.png', 'osCommerce Online Merchant v' . tep_get_version()) . '</a>'; ?></td>
</tr>
<tr class="headerBar">
<td class="headerBarContent">&nbsp;&nbsp;<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '" class="headerLink">' . HEADER_TITLE_ADMINISTRATION . '</a> &nbsp;|&nbsp; <a href="' . tep_catalog_href_link() . '" class="headerLink">' . HEADER_TITLE_ONLINE_CATALOG . '</a> &nbsp;|&nbsp; <a href="http://www.oscommerce.com" class="headerLink">' . HEADER_TITLE_SUPPORT_SITE . '</a>'; ?></td>
<td class="headerBarContent">&nbsp;&nbsp;<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '" class="headerLink">' . HEADER_TITLE_ADMINISTRATION . '</a> &nbsp;|&nbsp; <a href="' . tep_catalog_href_link() . '" class="headerLink">' . HEADER_TITLE_ONLINE_CATALOG . '</a> &nbsp;|&nbsp; <a href="http://www.oscommerce.com" class="headerLink">' . HEADER_TITLE_SUPPORT_SITE . '</a>'; ?></td>
<td class="headerBarContent" align="right"><?php echo (tep_session_is_registered('admin') ? 'Logged in as: ' . $admin['username'] . ' (<a href="' . tep_href_link(FILENAME_LOGIN, 'action=logoff') . '" class="headerLink">Logoff</a>)' : ''); ?>&nbsp;&nbsp;</td>
</tr>
</table>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2013 osCommerce
Copyright (c) 2014 osCommerce
Released under the GNU General Public License
*/
Expand All @@ -23,7 +23,7 @@ function securityCheckExtended_admin_backup_directory_listing() {
}

function pass() {
$request = $this->getHttpRequest(tep_href_link('backups/', '', 'NONSSL'));
$request = $this->getHttpRequest(tep_href_link('backups/'));

return $request['http_code'] != 200;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2013 osCommerce
Copyright (c) 2014 osCommerce
Released under the GNU General Public License
*/
Expand Down Expand Up @@ -54,7 +54,7 @@ function pass() {
$result = true;

if ( isset($backup_file) ) {
$request = $this->getHttpRequest(tep_href_link('backups/' . $backup_file, '', 'NONSSL'));
$request = $this->getHttpRequest(tep_href_link('backups/' . $backup_file));

$result = ($request['http_code'] != 200);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2013 osCommerce
Copyright (c) 2014 osCommerce
Released under the GNU General Public License
*/
Expand All @@ -23,7 +23,7 @@ function securityCheckExtended_ext_directory_listing() {
}

function pass() {
$request = $this->getHttpRequest(tep_catalog_href_link('ext/', '', 'NONSSL'));
$request = $this->getHttpRequest(tep_catalog_href_link('ext/'));

return $request['http_code'] != 200;
}
Expand Down
Loading

0 comments on commit cb09740

Please sign in to comment.