=date_format(now(),'%Y-%m-%d') as TFLAG,repo.name from repo_n as a,repo where a.cid=repo.id and a.id=".$CPAGE; $o->query($sql); $f=$o->fetch_array(); $PAGE_SUBTITLE=mod_HTML($f["title"]); $PAGE_CATEGORY=mod_HTML($f["name"]); $PAGE_DATEINFO=$f["d5"]." / ".$f["d6"]; $PAGE_FORM=$f["m2"]; if($PAGE_FORM==79){ $FORMACTIVE=(strlen($f["d1"])==0||strlen($f["d2"])==0||strlen($f["d3"])==0)?1:0; if(strlen($f["d1"])>0&&strlen($f["d2"])>0&&strlen($f["d3"])>0)$FORMACTIVE=($f["TFLAG"]==1)?1:"x"; if($FORMACTIVE==1){ $FORMID=4; include "__formheader__.php"; } } $sql="select repo_n.img1,repo_n.img2,pm_.name from repo_n,pm_ where repo_n.cid=31 and repo_n.m1=pm_.id and repo_n.m5=".$CPOS; $o->query($sql); $f=$o->fetch_array(); $SIDEIMG=$f["img2"]; $HEADIMG=$f["img1"]; $sql="select t6,img1,img2,img3 from repo_n where cid=32 and m5=".$CPOS; $o->query($sql); $f=$o->fetch_array(); $_FREEDIAL=$f["img1"]."-".$f["img2"]."-".$f["img3"]; $_MAILADDRESS=$f["t6"]; ?>