Choose the FASO Members Facebook Group You Wish to Visit

FASO Community & Support Group
Get 24/7 help from fellow FASO members & FASO Support, ask technical support questions, ask questions about using your FASO Account.

Art Marketing Mastermind Group
Get marketing help, learn how to sell art online, ask art marketing questions of FASO and BoldBrush marketing experts and other FASO members who are having sucess selling online.

Log In or "; //check login stats if (isset($_COOKIE["FASOMGUID"])) { $faso_mguid = $_COOKIE["FASOMGUID"].""; } else { $faso_mguid=""; } if ($faso_mguid != "") { $adb = new db(); $sql="SELECT * FROM Authentication WHERE ID='" . $faso_mguid . "';"; $ars = $adb->execute($sql); if (!$ars->EOF) { $faso_id = $ars->fields("AdminID"); $sql = "SELECT FirstName,LastName,UserName FROM Admin WHERE ID=" . $faso_id . ";"; $ars=$adb->execute($sql); $faso_name = $ars->fields("FirstName") . " " . $ars->fields("LastName"); $faso_username = $ars->fields("UserName").""; $faso_avatar = getavatarfromadminid($faso_id); $faso_avatar = str_replace("http://data.fineartstudioonline.com", "http://my.faso.com/", $faso_avatar); $login_text = "
  " . $faso_username . " ▼
"; } else { $faso_mguid=""; $login_text="Log In or "; } } $canvoo_cache = new canvoo_cache(); $myurl = str_replace('/v.php?404;', "", $_SERVER['REQUEST_URI']); //echo "myurl: " . $myurl . "
"; $myurl = str_replace(":80", "", $myurl); //echo $myurl; $myhost = $_SERVER["HTTP_HOST"]; //echo $myhost . "
"; $mylongurl=$myurl; $mylongurl = str_replace("/buzzhttp://", "http://", $mylongurl); $myhost = str_replace("dev.", "", $myhost); $my_r_url = $myhost . $myurl . "
"; //echo $my_r_url; if ($my_r_url != "faso.com/forum/") { //echo $my_r_url; //Header( "HTTP/1.1 301 Moved Permanently" ); //Header( "Location: " . "http://faso.com/forum/" ); } if ($myhost == $global_host) { $myfolder = '/forum'; } else { $myfolder = ""; }; if ($myhost == $global_host) { $myroot = 'http://'.$global_host.$myfolder.'/'; } else { $myroot='http://'.$global_host.'/forum/'; } //echo 'root:' . $myroot; $myview = str_replace($myroot, "", $myurl); $myview = str_replace("/v.php", "", $myview); $myview = str_replace($myfolder, "", $myview); //$myview = str_replace("/","",$myview); //echo "myview " . $myview; if ($myview == "/") { $myview=""; } if ($myview."" != "") { $myredirect = "http://".$global_host."forum/" . $myview; } else { $myredirect = "http://".$global_host."/forum/"; } if ($myhost == "www.".$global_host.".com") { $myurl = str_replace('/forumhttp://', 'http://', $myurl); $myredirect = str_replace("www.", "", $myurl); } if ($myhost != $global_host) { //echo "re: " . $myredirect . "
"; //die; //Header( "HTTP/1.1 301 Moved Permanently" ); //Header( "Location: " . $myredirect ); } $mypath = $_SERVER['SCRIPT_FILENAME']; $mypath = str_replace("v.php", "", $mypath); //echo "mypath " . $mypath . "
"; if ($myview."" == "") { $myview="index"; } if (substr($myview, 0, 1) == "/") { $ary_cor = explode("/", $myview); if ((count($ary_cor)) == 2) { $myview=$ary_cor[1]; } else { $myview=$ary_cor[1]."/".$ary_cor[2]; } } //if ($myview != 'index') {$myrecord=$myview;} if (strpos($myview, "/")>0) { //echo $myview; $aryview = explode("/", $myview); $myview = $aryview[0]; $myrecord = $aryview[1]; //echo $myview . "
"; //echo $myrecord . "
"; } $filename = $mypath . "views/" . $myview . ".php"; $view = "views/" . $myview . ".php"; //echo "view=" . $view . "
"; $myFile = "views/master.html"; //special templates if ($myview == "links") { $myFile = "views/links.html"; } if ($myview == "linksnew") { $myFile = "views/links_alltop.html"; } $fh = fopen($myFile, 'r'); $theData = fread($fh, filesize($myFile)); fclose($fh); $theData = str_replace("{{ROOT}}", $myroot, $theData); if ($myFile == "views/links.html" or $myFile=="views/links_alltop.html") { if (!is_numeric($myrecord)) { exit(); } $theData = str_replace("{{LINKID}}", $myrecord, $theData); $sql="SELECT * FROM faso_links WHERE ID=" . $myrecord . ";"; $db=new db(); $rs = $db->execute($sql); $faso_adminid=$rs->fields("AdminID"); $sql="SELECT FirstName,LastName,MainDomain FROM Admin WHERE ID=" . $faso_adminid . ";"; $fasors = $db->execute($sql); $myurl = $rs->fields("URL"); if ($myurl == "" || $myurl == "NA") { $myurl="" . $myroot . "helpers/aquote.php?id=" . $myrecord . ""; $mylinkurl = $myurl ."&go=y"; } if ($mylinkurl.""=="") { $mylinkurl=$myurl; } if (strpos($myurl, "twitter") > 0) { echo "twitter"; $theData = str_replace("{{FRAMEURL}}", "", $theData); } $theData = str_replace("{{LINKURL}}", $mylinkurl, $theData); $theData = str_replace("{{FRAMEURL}}", $myurl, $theData); $theData = str_replace("{{LONGURL}}", $mylongurl, $theData); $discussurl = str_replace("/links/", "/discussion/?id=", $mylongurl); $theData = str_replace("{{DISCUSSURL}}", $discussurl, $theData); $myquote=""; $mytwitter=""; require_once("func_inttobase36.php"); $myshorturl="http://faso.us/" . base36($myrecord, 36); $theData = str_replace("{{SHORTURL}}", $myshorturl, $theData); $myshorturlref= "short url: " . $myshorturl . ""; $myquote = $rs->fields("Quote"); if ($myquote."" == "") { $myquote = ""; } else { $myquote = """ . $myquote . """; } require_once('canvoo-lib/func_cleanstring.php'); $myquote = cleanstring($myquote); $myauthor = $rs->fields("Author"); $myauthorlink = str_replace(" ", "+", $rs->fields("Author")); $mytags = $rs->fields("Tags"); $ary_tags = explode(" ", $mytags); $mytags=""; foreach ($ary_tags as $tag) { $thetag = str_replace("#", "", $tag) ; $mytags = $mytags . "" . $thetag . "" . " | "; } $mytags = "Tags: " . $mytags; //$myquote = "" . $myauthor . ":  " . $myquote; $theData = str_replace("{{AUTHORLINK}}", $myauthorlink, $theData); $theData = str_replace("{{AUTHOR}}", $myauthor, $theData); $theData = str_replace("{{QUOTE}}", $myquote, $theData); $mycomment = $rs->fields("Comment"); $mycomment = str_replace(""", "\"", $mycomment); $mytitletag = $mycomment; $mytitletag = "Canvoo Buzz | " . $mytitletag . " | Canvoo BrushBuzz"; $url_title = $rs->fields("Title"); $mytitletag = $myauthor . ": " . $url_title; $theData = str_replace("{{TITLETAG}}", $mytitletag, $theData); if (strpos("x".$mycomment, "\"") > 0) { $myshowcomment=""; } else { $myshowcomment=$mycomment; } //$canvoo_cache->flush(); $mytwitter = $rs->fields("Twitter").""; $mytwitter = str_replace(" ", "", $mytwitter); $mytwitter = str_replace("@", "", $mytwitter); if ($mytwitter == "") { $mytwitter="clintavo"; } //try to get avatar from cache $myavatar = $canvoo_cache->get($mytwitter).""; //if ($myavatar == "") {echo "Avatar Cache EMPTY";} if ($mytwitter != "" && $myavatar == "") { require_once("canvoo-lib/func_getavatarfromtwitter.php"); $myavatar = getavatarfromtwitter($mytwitter); if ($myavatar."" != "") { $canvoo_cache->set($mytwitter, $myavatar); } } if ($myavatar == "") { $myavatar=""; } if ($myshowcomment == "") { $myshowavatar="http://" . $myroot . "images/clearpixel.gif"; } else { $myshowavatar=$myavatar; } $theData = str_replace("{{SHOW_AVATAR}}", $myshowavatar, $theData); $theData = str_replace("{{TWITTER}}", $mytwitter, $theData); $myatwitter = $rs->fields("Author_Twitter_Username").""; $myatwitter = str_replace(" ", "", $myatwitter); //try to get avatar from cache $myaavatar = $canvoo_cache->get($myatwitter).""; //if ($myaavatar == "") {echo "Author Avatar Cache EMPTY";} if ($myatwitter != "" && $myaavatar == "") { require_once("canvoo-lib/func_getavatarfromtwitter.php"); $myaavatar = getavatarfromtwitter($myatwitter); if ($myaavatar."" != "") { $canvoo_cache->set($myatwitter, $myaavatar); } } if ($myaavatar == "") { $myaavatar="http://" . $myroot . "images/quote.jpg"; } $mytweet = $rs->fields("Tweet").""; if ($mytweet == " " || $mytweet == "") { $mytweet = $mycomment; } else { //$mytweet } if ($myatwitter != "") { $mycomment = str_replace($myauthor, "/by @" . $myatwitter, $mycomment); $mytweet = str_replace($myauthor, "/by @" . $myatwitter, $mytweet); if (strpos($mytweet, $myatwitter) > 0) { //we're cool } else { $mytweet = $mytweet . " /by @" . $myatwitter; } } $mytweet = str_replace(""", "\"", $mytweet); $mytweet = urlencode($mytweet); $theData = str_replace("{{TWEET}}", $mytweet, $theData); $myencodedcomment = urlencode($mycomment); $theData = str_replace("{{TAGS}}", $mytags, $theData); $theData = str_replace("{{ENCODEDCOMMENT}}", $myencodedcomment, $theData); $mysubmitter = "Clint Watson"; $mysubmitter = $fasors->fields("FirstName") . " " . $fasors->fields("LastName"); $theData = str_replace("{{SUBMITTER}}", $mysubmitter, $theData); $mysubmitterurl="http://clintwatson.net/blog"; $mysubmitterurl = "http://" . $fasors->fields("MainDomain"); $theData = str_replace("{{SUBMITTERURL}}", $mysubmitterurl, $theData); $myURL = $rs->fields("URL"); $myexit = "Exit Frame"; if ($myshowcomment != "") { $myshowcomment = "$mysubmitter: " . $myshowcomment; } $theData = str_replace("{{COMMENT}}", $myshowcomment, $theData); $theData = str_replace("{{AUTHOR_AVATAR}}", $myaavatar, $theData); $theData = str_replace("{{SUBMITTER_AVATAR}}", $myavatar, $theData); $theData = str_replace("{{ROOT}}", $myroot, $theData); $mylinkurl = "http://'.$global_host.'/forum/links/" . $myrecord; $myframe = $rs->fields("Dont_Frame"); if ($myframe == 1) { Header("Location: $myURL"); } } $ary_data = explode("", $theData); $header = $ary_data[0]; $footer = $ary_data[2]; require_once("controllers/master.php"); $cfilename = str_replace("views", "controllers", $filename); if (file_exists($cfilename)) { require_once($cfilename); } //echo $filename; if (file_exists($filename)) { //require_once($view); $myFile = $filename; $fh = fopen($myFile, 'r'); $theData = fread($fh, filesize($myFile)); fclose($fh); ob_start(); eval("?>" . implode("", file($myFile)) . "", "", $content); } else { ob_start(); eval("?>" . implode("", file("views/404.php")) . "", "", $content); } $header = str_replace("{{TITLE}}", $title, $header); $header = str_replace("{{H1}}", $h1, $header); $header = str_replace("{{LOGIN}}", $login_text, $header); echo $header; echo $content; echo $footer;