EE =& get_instance(); // To find out what mailing list we're going to subscribe the user to, we check // cookies or default location $location_cookie = $this->EE->input->cookie('location_saved'); $mailing_list_name = !empty($location_cookie) ? $location_cookie : config_item('default_location_url'); $sql = "SELECT list_id FROM exp_mailing_lists WHERE list_name=?"; $query = $this->EE->db->query($sql, array($mailing_list_name)); $mailing_list_id = $query->row('list_id'); $longSignup = (bool)config_item('long_quick_register'); $systemCountry = config_item('country'); $lastParam = array_pop(explode('/', $_SERVER['PHP_SELF'])); $sql = " SELECT entry_id FROM exp_channel_titles WHERE url_title=? OR entry_id=?; "; $query = $this->EE->db->query($sql, array($lastParam, $lastParam)); $entry_id = $query->row('entry_id'); // legal age $year_ini = date('Y') - 17; // quite elder person $year_end = $year_ini - 100; ?> SaveMyDay > deals >
Inloggen