Need an update code for v4 and Joomla 1.7.
I only have one page that needs https:// to submit a form.
The old code in the template's index.php is no longer valid:
Thanks for the assistance.
I only have one page that needs https:// to submit a form.
The old code in the template's index.php is no longer valid:
<?php
if ( ($option == 'com_chronocontact' )
&&($_GET['chronoformname'] == 'Donation' )
&& ( strpos("x".$mosConfig_live_site,"http://" ) )
&& ( $_SERVER["SERVER_PORT"] != "443" ) ) {
$mosConfig_live_site2 = str_replace("http://", "https://",
$mosConfig_live_site);
mosRedirect($mosConfig_live_site2.'/index.php' .'?'.$_SERVER['QUERY_STRING']);
} elseif ( ( $option != 'com_chronocontact' )
&& ( $_SERVER["SERVER_PORT"] == "443" ) ) {
$mosConfig_live_site2 = str_replace("https://", "http://",
$mosConfig_live_site);
mosRedirect($mosConfig_live_site2.'/index.php' .'?'.$_SERVER['QUERY_STRING']);
}
?>
Thanks for the assistance.