enrol_cost)) $frm->enrol_cost = '5'; if (!isset($frm->enrol_currency)) $frm->enrol_currency = 'USD'; if (!isset($frm->enrol_mailstudents)) $frm->enrol_mailstudents = ''; if (!isset($frm->enrol_mailteachers)) $frm->enrol_mailteachers = ''; if (!isset($frm->enrol_mailadmins)) $frm->enrol_mailadmins = ''; if (!isset($frm->an_login)) $frm->an_login = ''; if (!isset($frm->an_tran_key)) $frm->an_tran_key = ''; if (!isset($frm->an_password)) $frm->an_password = ''; if (!isset($frm->delete_current)) $frm->delete_current = ''; if (!isset($frm->an_referer)) $frm->an_referer = 'http://'; if (!isset($frm->an_avs)) $frm->an_avs = ''; if (!isset($frm->an_authcode)) $frm->an_authcode = ''; if (!isset($frm->an_test)) $frm->an_test = ''; if (!isset($frm->an_review)) $frm->an_review = ''; if (!isset($frm->an_capture_day)) $frm->an_capture_day = '5'; if (!isset($frm->an_emailexpired)) $frm->an_emailexpired = '2'; if (!isset($frm->an_emailexpiredteacher)) $frm->an_emailexpiredteacher = ''; if (!isset($frm->an_sorttype)) $frm->an_sorttype = 'ttl'; if (isset($CFG->an_cutoff)) { $cutoff = intval($CFG->an_cutoff); $mins = $cutoff % 60; $hrs = ($cutoff - $mins) / 60; $frm->an_cutoff_hour = $hrs; $frm->an_cutoff_min = $mins; } if (!isset($frm->an_cutoff_hour)) { $timezone = round(get_user_timezone_offset(), 1); $frm->an_cutoff_hour = intval($timezone); $frm->an_cutoff_min = (intval(round($timezone)) != intval($timezone)) ? 35 : 5; } if (!isset($frm->acceptmethods)) { $frm->acceptmethods = get_list_of_payment_methods(); $CFG->an_acceptmethods = implode(',', $frm->acceptmethods); } if (!isset($frm->acceptccs)) { $frm->acceptccs = array_keys(get_list_of_creditcards()); $CFG->an_acceptccs = implode(',', $frm->acceptccs); } if (!isset($frm->acceptechecktypes)) { $frm->acceptechecktypes = get_list_of_bank_account_types(); $CFG->an_acceptechecktypes = implode(',', $frm->acceptechecktypes); } ?>