
---------- DNEWSWEB.C
void var_set_log(char *var, char *val, char *info);
void var_set(char *var, char *val);
			var_set("ip",mygetenv("REMOTE_ADDR"));
        var_set("error",etext);
                var_set("b_prev",bf);
                var_set("to_up",int_str(from));
                var_set("from_up",int_str(from-page_size()));
                var_set("b_next",bf);
                var_set("to_down",int_str(to+page_size()));
                var_set("from_down",int_str(to));
        var_set("from",bf);
        var_set("to",bf);
        var_set("h_subject",value_encode(subject));
        var_set("h_date",date);
	var_set("h_date_numeric",h_date_numeric(date)); /*brian123*/
        var_set("h_message-id",value_encode(msgid));
        var_set("h_from",value_encode(from));
        var_set("h_from_trim",value_encode(h_from_trim(from)));
        var_set("h_from_email",value_encode(h_from_email(from)));
        var_set("h_references",eoltospace(value_encode(bf)));
        var_set("h_message-id",msgid);
        var_set("h_newsgroups",newsgroups);
        var_set("h_newsgroups_trim",newsgroups);
        var_set("login_error",bf);
	var_set_log("item",bf,"one");
	var_set("messageid", msgid);
	var_set("from", global_entire_from);
	var_set("group", global_newsgroups);
	var_set("groupe",towww(global_newsgroups));
	var_set("subject", global_subject);
	var_set("response", response);
	if (strncmp(response,"240",3)==0) var_set("cancelled","yes");
        var_set("conf_name",user_get("name"));
        var_set("conf_reply",user_get("reply"));
        if (strcmp(bf,"subject")==0) var_set("conf_sort_subject","selected");
        if (strcmp(bf,"thread")==0) var_set("conf_sort_thread","selected");
        if (strcmp(bf,"date")==0) var_set("conf_sort_date","selected");
        var_set("conf_sort",user_get("sort"));
        var_set("conf_sig",cr_decode(user_get("sig")));
		var_set("conf_window",user_get("window"));
                var_set("login_error",etxt);
                 var_set("login_error",bf);
        var_set("wild",query_find("wild"));
        if (read_xover()) var_set("no_match","bazil");
                var_set("name",p[0]);
                var_set("name_ref",towww(p[0]));
			if (np>4) var_set("total",p[4]);
			var_set("total",int_str(xend));
	    var_set("name",groups[i].name);
	    var_set("name_ref",towww(groups[i].name));
	    var_set("new",bf);
		    var_set("isnew","false");
		    var_set("isnew","true");
	    var_set("from",bf);
	    var_set("total",bf);
                var_set("name",name);
                var_set("name_ref",towww(name));
                var_set("new",bf);
                        var_set("isnew","false");
                        var_set("isnew","true");
                var_set("from",bf);
	        var_set("total",bf);
        var_set("unsub_list",bf);
        var_set("loginid",bf);
	var_set("togroup",either_find("togroup"));
	var_set("search_groups",query_find("search_groups"));
	var_set("search_since",query_find("search_since"));
	var_set("search_before",query_find("search_before"));
	var_set("search_match",query_find("search_match"));
	var_set("search_sort",query_find("search_sort"));
        if (read_xover()) var_set("no_match","bazil");
        var_set("key",query_find("key"));
        var_set("total_matches",bf);
        var_set("summary",bf);
				var_set("require_login","true");
			        var_set("login_error",bf);
				var_set("h_subject",value_encode(subject));
				if (strchr(bf2,',')!=NULL) var_set("crosspost","crosspost");
	    var_set("from_name",rfc1522s(user_get("name")));
	    var_set("from",rfc1522s(user_get("reply")));
	    var_set("from_name",user_get("name"));
	    var_set("from",user_get("reply"));
			var_set("from",bf);
		var_set("from",bf);
		var_set("from_name",bf);
        if (read_xover()) var_set("no_match","bazil");
        var_set("keywords",find);
                var_set("login_error",bf);
        var_set("group_to",int_str(maxto));
	var_set("group_from",int_str(minfrom));
			var_set("rangefrom",int_str(origfrom));
			var_set("rangeto",int_str(origto));
        var_set("group_n",int_str(group_n));
		if (isup) var_set("msg","Sorry, no next item in that thread");
		else var_set("msg","Sorry, no previous item in that thread");
		var_set("xreated",bf);
		if (isup) var_set("msg","Sorry, no next item in that thread");
		else var_set("msg","Sorry, no previous item in that thread");
    var_set_log("item",int_str(item),"two");
                var_set("item_next",bf);
                var_set("item_last",bf);
        var_set_log("item",int_str(item),"three");
	                var_set("item_next",bf);
	                var_set("item_last",bf);
	        var_set_log("item",int_str(item),"four");	
        if (read_xover()) var_set("no_match","bazil");
	        if (read_xover()) var_set("no_match","bazil");
        var_set("login_error",bf);
				var_set("require_login","true");
			        var_set("login_error",bf);
nofrom:         var_set("missing","from");
            var_set("missing","subject");
                    var_set("missing",s);
            var_set(s,form_find(s));
                    var_set(s,form_find(s));
			var_set("from",bf);
                            var_set("message",s);
    var_set("post_status",nntp_status);
            var_set("ok","TRUE");
			var_set("crosspost","crosspost");
    var_set("primarygroup",form_find("primarygroup"));
	var_set("allgroups",group);
                var_set("b_prev",bf);
                var_set("from_down",int_str(gfrom-gmax));
                var_set("b_next",bf);
                var_set("from_up",int_str(gto));
                var_set("b_recent",bf);
				var_set("b_tprev",bf);
                var_set("b_tnext",bf);
                var_set("b_trecent",bf);
        var_set("b_topgroups",bf);
        var_set("b_allgroups",bf);
        var_set("b_post",bf);
        var_set("b_search",bf);
        var_set("sort_order",ord);
        if (strlen(ini_get(I_POP_HOST))>0) var_set("pop_host",ini_get(I_POP_HOST));
        if (isquery) var_set("isquery","TRUE");
                var_set("loggedin","true");
        if (ini_true(I_POP_AUTHENT)) var_set("pop_authent","true");
        var_set("utag",utag);
        var_set("utage",utage);
        var_set("udom",udom);
        var_set("user",guser);
	if (ini_true(I_TOMAIL)) var_set("tomail","true");
        var_set("b_topgroups",bf);
        var_set("b_allgroups",bf);
        var_set("b_group",bf);
        var_set("b_action",bf);
        var_set("copyright",bf);
        var_set("top",topname);
        var_set("tpl",tplname);
        var_set("group",group);
                var_set("group",group);
	var_set("groupe",towww(group));
        var_set("b_subscribe",bf);
        var_set("b_searchgrp",bf);
        var_set("action",path_script);
                var_set("b_search",bf);
        var_set("b_post",bf);
                 var_set("action",ini_get(I_POST_NOT_LOGGED_IN_ACTION));
	    var_set("primary_group_ref",temp);
	    var_set("primary_group",value_encode(s));
void var_set(char *var, char *val)
            var_set("group_ref",temp);
	    var_set("group",value_encode(groups[i].name));
	    var_set("groupe",towww(groups[i].name));
            var_set_log("item",value_encode(item4),"five");
            var_set("item_ref",temp);
                var_set("h_group",value_encode(group));
                var_set("b_item",bf);
                var_set("item_n",pad_right(int_str(x_item[ii]),3));
		if (strlen(x_subject[ii])==0) var_set("h_subject",value_encode("(No subject)"));
                else var_set("h_subject",value_encode(x_subject[ii]));
var_set("h_subject",bf);
                        var_set("arrows",value_encode(bf));
                } else var_set("arrows","");
                        var_set("spaces",do_spaces(z));
                } else var_set("spaces","");
                var_set("h_from",value_encode(x_from[ii]));
                var_set("h_message-id",value_encode(x_mid[ii]));
                var_set("h_lines",x_lines[ii]);
                var_set("h_bytes",x_bytes[ii]);
                var_set("h_kbytes",show_kbytes(x_bytes[ii]));
                var_set("h_score",x_score[ii]);
                var_set("h_date",value_encode(x_date[ii]));
                var_set("h_date_trim",value_encode(h_date_trim(x_date[ii])));
		var_set("h_date_numeric",value_encode(h_date_numeric(x_date[ii])));
                var_set("h_from_trim",value_encode(h_from_trim(x_from[ii])));
                var_set("h_from_email",value_encode(h_from_email(x_from[ii])));
                var_set("h_subject_60",value_encode(h_trim(subj,60)));
                var_set("h_subject_40",value_encode(h_trim(subj,40)));
                var_set("h_subject_30",value_encode(h_trim(subj,30)));
					var_set("titems",int_str(x_titems[ii]));
					var_set("b_thread",bf);
			var_set("isbinary",ini_get(I_ISBINARY_IMG));
			var_set("istext","");
			var_set("istext",ini_get(I_ISTEXT_IMG));
			var_set("isbinary","");
				var_set("item",int_str(it));
				var_set("group",value_encode(group));
				var_set("groupe",towww(group));
		if (islogin()&&(strcmp(guser,authenticated_user)==0)) var_set("cancel","cancel");
void var_set_log(char *var, char *val, char *info)
	imsg("var_set(%s=%s)  %s\n",var,val,info);
	var_set(var,val);
        var_set("group",group);
        var_set("groupe",towww(group));
	var_set_log("item",int_str(item),"seve");
        var_set("b_related",bf);
        var_set("b_recent",bf);
        var_set("b_trecent",bf);
        var_set("b_topgroups",bf);
        var_set("b_allgroups",bf);
        var_set("b_post",bf);
        var_set("b_follow",bf);
        var_set("item_raw",bf);
                    var_set(tmp2,header);
        var_set("h_from",value_encode(from));
        var_set("h_from_trim",value_encode(h_from_trim(from)));
        var_set("h_from_email",value_encode(h_from_email(from)));
        var_set("h_from_noquotes",value_encode(trim_quotes(from)));
        var_set("h_references",eoltospace(value_encode(ref)));
        var_set("h_subject",value_encode(subject));
        if (strlen(subject)==0) var_set("h_subject",value_encode("(No subject)"));
	var_set("h_organization",value_encode(organization));
	var_set("h_date",value_encode(date));
	var_set("h_date_numeric",value_encode(h_date_numeric(date)));
        var_set("h_message-id",value_encode(mid));
        var_set("h_newsgroups",value_encode(newsgroups));
	var_set("h_newsgroups_space",value_encode(newsgroups_space));
        var_set("h_content-type",value_encode(content));
	var_set("h_nntp-posting-host",value_encode(nntpposthost)); /* brianabc */
        var_set("body200",value_encode(body200));
	var_set("h_group",value_encode(group));
        var_set("h_from",value_encode(from));
        var_set("h_from_trim",value_encode(h_from_trim(from)));
        var_set("h_from_email",value_encode(h_from_email(from)));
        var_set("h_references",eoltospace(value_encode(ref)));
        var_set("h_subject",value_encode(subject));
        if (strlen(subject)==0) var_set("h_subject",value_encode("(No subject)"));
	var_set("h_organization",value_encode(organization));
	var_set("h_date",value_encode(date));
        var_set("h_date_trim",value_encode(h_date_trim(date)));
        var_set("h_message-id",value_encode(mid));
        var_set("h_newsgroups",value_encode(newsgroups));
        var_set("h_content-type",value_encode(content));
	var_set("body",body);
			var_set(form_name[i],value_encode(form_val[i]));
			var_set(nam,bf);
			var_set(query_name[i],value_encode(query_val[i]));
			var_set(nam,bf);
	var_set("group",group);
	var_set("groupe",towww(group));
	var_set("to",rfc1522s(user_get("reply")));
	var_set("subject",subj);
	var_set("status",nntp_status);
	var_set("group",group);
	var_set("groupe",towww(group));
	var_set("to",rfc1522s(user_get("reply")));
	var_set("status",nntp_status);
	var_set("group",group);
	var_set("groupe",towww(group));
	var_set("to",rfc1522s(user_get("reply")));
	var_set("status",nntp_status);
