';
return $field;
}
// The HTML href link wrapper function
function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL') {
#CYB12May05 Code change to fix bug no. 2801
if(ENABLE_SSL=='true') $connection='SSL';
if ($page == '') {
die('
Error!
Unable to determine the page link!
Function used:
tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')');
}
if ($connection == 'NONSSL') {
$link = HTTP_SERVER . DIR_WS_ADMIN;
} elseif ($connection == 'SSL') {
if (ENABLE_SSL == 'true') {
$link = HTTPS_SERVER . DIR_WS_ADMIN;
} else {
$link = HTTP_SERVER . DIR_WS_ADMIN;
}
} else {
die('
Error!
Unable to determine connection method on a link!
Known methods: NONSSL SSL
Function used:
tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')');
}
if ($parameters == '') {
$link = $link . $page . '?' . SID;
} else {
$link = $link . $page . '?' . $parameters . '&' . SID;
}
while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);
return $link;
}
function tep_catalog_href_link($page = '', $parameters = '', $connection = 'NONSSL') {
#CYB12May05 Code change to fix bug no. 2801
if(ENABLE_SSL=='true') $connection='SSL';
if ($connection == 'NONSSL') {
$link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG;
} elseif ($connection == 'SSL') {
if (ENABLE_SSL== 'true') {
$link = HTTPS_CATALOG_SERVER . DIR_WS_CATALOG;
} else {
$link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG;
}
} else {
die('
Error!
Unable to determine connection method on a link!
Known methods: NONSSL SSL
Function used:
tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')');
}
if ($parameters == '') {
$link .= $page;
} else {
$link .= $page . '?' . $parameters;
}
while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1);
return $link;
}
////
// The HTML image wrapper function
function tep_image($src, $alt = '', $width = '', $height = '', $params = '') {
// BOF: Radders - Automatic Thumbnail Creator // Modded by MaxiDVD 22/01/2004 MS2-3 Admin Check.
$src = tep_use_resampled_image($src,$width,$height);
$image = '
'"', '\'' => ''', '<' => '<', '>' => '>')) . '';
}
$field .= '';
if ($required == true) $field .= TEXT_FIELD_REQUIRED;
return $field;
}
?>