Exemplo n.º 1
0
    define('AUTHORIZENET_DUPLICATE_WINDOW', '30');
} else {
    die('invalid anet account specified in global.inc.php');
}
define('BASE_PATH', $_root_path);
define('BASE_URL', '/dev');
define('SITE_URL', 'localhost/madison/dev/');
//$dbi = new dbi('localhost', 'root', '', 'C271322_madison', false, false, false);
$dbi = new dbi('madisondb.db.11768123.hostedresource.com', 'madisondb', 'Rw820123!', 'madisondb', false, false, false);
//hashing constants
define('ROUNDS_STRONG', 80000);
define('ROUNDS_FAST', 5000);
define('CONFIRMATION_SALT', 'KU98ft67o8fv*(');
//current dates
if (!isset($base_date)) {
    $base_date = new DateTime('now');
}
$base_date_formatted = $base_date->format('c');
//order by
Gadget::$date_ob = new DateTime("{$base_date_formatted} -18 hours");
Gadget::$date_ob->modify('next Saturday');
//delivered on
Gadget::$date_do = new DateTime("{$base_date_formatted} -18 hours");
Gadget::$date_do->modify('next Saturday');
Gadget::$date_do->modify('next Tuesday');
Gadget::$date_do_weekend = new DateTime("{$base_date_formatted} -18 hours");
Gadget::$date_do_weekend->modify('next Wednesday');
Gadget::$date_do_weekend->modify('next Friday');
define('TAX_RATE', 0.0225);
define('COST_REGULAR_SERVING', 13.5);
define('COST_VEGETARIAN_SERVING', 12.5);
Exemplo n.º 2
0
$dbi = new dbi('76.162.254.169', 'C271322_madison', 'Rw820123!', 'C271322_madison', false, false, false);

//$dbi = new dbi('madisondb.db.11768123.hostedresource.com', 'C271322_madison', 'Rw820123!', 'C271322_madison', false, false, false);
//hashing constants
define('ROUNDS_STRONG', 80000);
define('ROUNDS_FAST', 5000);
define('CONFIRMATION_SALT', 'KU98ft67o8fv*(');

//current dates
if (!isset($base_date)) {
    $base_date = new DateTime('now');
}
$base_date_formatted = $base_date->format('c');

//order by
Gadget::$date_ob = new DateTime("$base_date_formatted -24 hours");
Gadget::$date_ob->modify('next Saturday');

//delivered on
Gadget::$date_do = new DateTime("$base_date_formatted -24 hours");
Gadget::$date_do->modify('next Saturday');
Gadget::$date_do->modify('next Tuesday');

Gadget::$date_do_weekend = new DateTime("$base_date_formatted -24 hours");
Gadget::$date_do_weekend->modify('next Wednesday');
Gadget::$date_do_weekend->modify('next Friday');

define('TAX_RATE', .0225);
define('COST_REGULAR_SERVING', 13.50);
define('COST_VEGETARIAN_SERVING', 12.50);
?>