All pastes #395 Raw Edit

Sloppy shit

public c v1 · immutable
#395 ·published 2004-08-02 04:09 UTC
rendered paste body
  /* Update search engines */  p = pr_get_item(query, "ref", entry, '&');  h_ref = uri_alloc(p, pr_strlen(p));  if(find_search_engine(h_ref, &h_se, h_phrase, sizeof(h_phrase), &h_start, &h_perpage)) {    store_se(u_id, h_year, h_month, h_se, h_phrase, h_start, h_perpage);  } else {    if(h_ref && p && ! pr_match(&re_empty, p, NULL, 0)) {      if(strcmp(uri_host(h_ref), uri_host(h_loc)) != 0) {        if(strcmp(uri_scheme(h_ref), "http") == 0) {          p = uri_host(h_ref);          store_domain(u_id, h_year, h_month, p);        }        p = uri_uri(h_ref);        if(!p || !*p) p = "Bookmark / Direct";      } else {        p = NULL;      }    } else {      p = "Bookmark / Direct";    }    if(p) store_referrer(u_id, h_year, h_month, p);  }