|
|
SymbiosyS winkel
gs = array(
'Content-Type:',
'MIME-Version:',
'Content-Transfer-Encoding:',
'bcc:',
'cc:'
);
// Loop through each POST'ed value and test if it contains
// one of the $badStrings:
foreach ($_POST as $k => $v){
foreach ($badStrings as $v2) {
if (strpos( $v, $v2 ) !== false) {
header( "HTTP/1.0 403 Forbidden" );
mosErrorAlert( $VM_LANG->_NOT_AUTH );
return;
}
}
}
// Made it past spammer test, free up some memory
// and continue rest of script:
unset($k, $v, $v2, $badStrings);
}
}
/**
* Equivalent to Joomla's josSpoofValue function
*
* @param boolean $alt
* @return string Validation Hash
*/
function vmSpoofValue($alt=NULL) {
global $mainframe, $_VERSION;
if ($alt) {
if ( $alt == 1 ) {
$random = date( 'Ymd' );
} else {
$random = $alt . date( 'Ymd' );
}
} else {
$random = date( 'dmY' );
}
$validate = mosHash( $mainframe->getCfg( 'db' ) . $random );
if( $_VERSION->DEV_LEVEL >= 11 ) {
// Joomla 1.0.11 compatibility workaround
// the prefix ensures that the hash is non-numeric
// otherwise it will be intercepted by globals.php
$validate = 'j' . $validate;
}
return $validate;
}
?>
Ganesha
Prikkel
Sieraden
List All Products
|
|
|
|
Lost your Password?
|
No account yet?
Register
|
|
Show Cart
|
| duct_weight_uom")) || preg_match("/OU/i",$db->f("product_weight_uom"))) {
$weight = $db->f("product_weight") * 0.0625;
}
else {
$vmLogger->debug( "Unknown weight UOM in product " . $db->f("product_sku"));
}
}
else {
$vmLogger->debug( "Weight not specified for product " . $db->f("product_sku"));
}
if (!empty($weight)) {
return($weight);
}
else {
return 0;
}
}
}
?>
0;
}
}
}
?>
duct_weight_uom")) || preg_match("/OU/i",$db->f("product_weight_uom"))) {
$weight = $db->f("product_weight") * 0.0625;
}
else {
$vmLogger->debug( "Unknown weight UOM in product " . $db->f("product_sku"));
}
}
else {
$vmLogger->debug( "Weight not specified for product " . $db->f("product_sku"));
}
if (!empty($weight)) {
return($weight);
}
else {
return 0;
}
}
}
?>
Your Cart is currently empty. |
|
|
|
|