************************************************************************/
// Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
require($INC);
}
if (!ereg(",", $content['price']))
{
// Add missing zeros
- $content['price'] .= ",".str_repeat("0", $CONFIG['max_comma']);
+ $content['price'] .= ",".str_repeat("0", $_CONFIG['max_comma']);
}
// Load row template and switch color