$content = $_REQUEST['gallery']; $affid = $_REQUEST['affiliateid']; $template = $_REQUEST['template']; if(trim($content)!=''){ $content_path = "galleries/" . $content . "/"; }else{ $content_path = "galleries/00021/00021a/"; } if(trim($affid)!=''){ $link = "http://refer.ccbill.com/cgi-bin/clicks.cgi?CA=921613-0004&PA=" . $affid; }else{ $link = "http://www.fistingflics.com/"; } if(is_dir("templates/" . $template)){ $t = $template; }else{ $t = "1"; } $t="2"; ?>