FineArtAmerica.com is currently undergoing routine maintenance.   This page will be available in less than five minutes.

"; //exit; function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $timestart = microtime_float(); $timeelapsed[start] = microtime_float() - $timestart; session_start(); $timeelapsed[sessionstarted] = microtime_float() - $timestart; //header('cache-control: private'); include('../databaseinformation.php'); include('../pricingservice/pricingservicenew.php'); $timeelapsed[databaseconnected] = microtime_float() - $timestart; $_GET[pagename] = mysql_real_escape_string($_GET[pagename]); if($_GET[unsafe] == true && isset($_SESSION[staffmember][id]) && $_GET[pagename] != '') { $_SESSION[safefilter] = 'on'; $query2 = "UPDATE artwork SET worksafe = '0' WHERE pagename = '$_GET[pagename]' AND status = '1' LIMIT 1"; $result2 = mysql_query($query2); } if($_GET[worksafe] == true && isset($_SESSION[staffmember][id]) && $_GET[pagename] != '') { $_SESSION[safefilter] = 'on'; $query2 = "UPDATE artwork SET worksafe = '1' WHERE pagename = '$_GET[pagename]' AND status = '1' LIMIT 1"; $result2 = mysql_query($query2); } if(isset($_SESSION[staffmember][id]) && $_GET[reenable] == true) { $auditmessage = "{$_SESSION[staffmember][firstname]} {$_SESSION[staffmember][lastname]} re-enabled the following artwork page: http://fineartamerica.com/featured/$_GET[pagename]"; $timestamp = time(); $auditmessage = mysql_real_escape_string($auditmessage); $queryaudit = "INSERT INTO audit (ipaddress,staffmemberid,message,timestamp) VALUES ('$_SERVER[REMOTE_ADDR]','{$_SESSION[staffmember][id]}','$auditmessage','$timestamp')"; $resultaudit = mysql_query($queryaudit); $query2 = "UPDATE artwork SET status = '1' WHERE pagename = '$_GET[pagename]' AND status = '0' LIMIT 1"; $result2 = mysql_query($query2); $errormessage2 = mysql_error(); } $flagqueryfound = false; if($flagqueryfound == false && $_SESSION[domain][flagartistwebsite] == 1 && isset($_GET[catalogid])) { $_GET[catalogid] = mysql_real_escape_string($_GET[catalogid]); $flagqueryfound = true; $query = "SELECT a.* FROM artwork a WHERE a.catalogid = '$_GET[catalogid]' AND a.{$_SESSION[domain][artistwebsite][memberidtype]} = '{$_SESSION[domain][artistwebsite][memberid]}' AND a.status = '1' LIMIT 1"; $result = mysql_query($query); $errormessage = mysql_error(); $num = mysql_numrows($result); //echo"

$query - $result - $errormessage - $num

\n"; } if($flagqueryfound == false && isset($_GET[catalogid]) && (isset($_GET[artistid]) || isset($_GET[galleryid]))) { $_GET[catalogid] = mysql_real_escape_string($_GET[catalogid]); $flagqueryfound = true; if(isset($_GET[artistid])) { $querymemberidtype = 'artistid'; $querymemberid = $_GET[artistid]; } if(isset($_GET[galleryid])) { $querymemberidtype = 'galleryid'; $querymemberid = $_GET[galleryid]; } $query = "SELECT a.* FROM artwork a WHERE a.catalogid = '$_GET[catalogid]' AND a.$querymemberidtype = '$querymemberid' AND a.status = '1' LIMIT 1"; $result = mysql_query($query); $num = mysql_numrows($result); } if($flagqueryfound == false) { $flagqueryfound = true; $query = "SELECT a.* FROM artwork a WHERE pagename = '$_GET[pagename]' AND status = '1' LIMIT 1"; $result = mysql_query($query); $errormessage = mysql_error(); $num = mysql_numrows($result); //echo"

$query - $result - $errormessage - $num

\n"; //exit; } if($num == 1) { $row = mysql_fetch_array($result, MYSQL_ASSOC); $_GET[artworkid] = $row[id]; $_GET[pagename] = $row[pagename]; if(isset($_GET[grangerid])) { $_GET[pagename] = $row[pagename]; } if($row[artistid] != 0) { $memberidtype = 'artistid'; $memberid = $row[artistid]; $query2 = "SELECT a.* FROM artists a WHERE a.id = '$memberid' LIMIT 1"; $result2 = mysql_query($query2); $row2 = mysql_fetch_array($result2); if($row2[status] != 1) { $timestamp = time(); $query2 = "UPDATE artwork SET status = '0', timestamplastupdate = '$timestamp' WHERE artistid = '$memberid' AND status = '1'"; $result2 = mysql_query($query2); header('HTTP/1.0 404 Not Found'); echo"

The page you have requested can not be found.

"; echo"

{$_SESSION[domain][website][url]}

"; exit; } $memberlogosquare = $row2[logosquare]; $memberpagename = $row2[pagename]; $memberqualityscore = $row2[qualityscore]; $membersharefacebook = $row2[sharefacebook]; $membersharetwitter = $row2[sharetwitter]; $membersharestumbleupon = $row2[sharestumbleupon]; $membersharegoogleplus = $row2[sharegoogleplus]; $membersharepinterest = $row2[sharepinterest]; $ignoreipaddress = $row2[ignoreipaddress]; // Check to see if the artist is a member of this domain. $query3 = "SELECT amd.id FROM associatemembersdomains amd WHERE amd.artistid = '$memberid' AND amd.domainid = '{$_SESSION[domain][id]}' AND amd.status = '1'"; $result3 = mysql_query($query3); $errormessage3 = mysql_error(); $num3 = mysql_numrows($result3); //echo"

$query3 - $result3 - $errormessage3 - $num3

\n"; if($num3 == 0) { header('location: ../index.html'); exit; } } if($row[galleryid] != 0) { $memberidtype = 'galleryid'; $memberid = $row[galleryid]; $query2 = "SELECT g.* FROM galleries g WHERE g.id = '$memberid' LIMIT 1"; $result2 = mysql_query($query2); $row2 = mysql_fetch_array($result2); if($row2[status] != 1) { $timestamp = time(); $query2 = "UPDATE artwork SET status = '0', timestamplastupdate = '$timestamp' WHERE galleryid = '$memberid' AND status = '1'"; $result2 = mysql_query($query2); header('HTTP/1.0 404 Not Found'); echo"

The page you have requested can not be found.

"; echo"

{$_SESSION[domain][website][url]}

"; exit; } $memberlogosquare = $row2[logosquare]; $memberpagename = $row2[pagename]; $memberqualityscore = $row2[qualityscore]; $membersharefacebook = $row2[sharefacebook]; $membersharetwitter = $row2[sharetwitter]; $membersharestumbleupon = $row2[sharestumbleupon]; $membersharegoogleplus = $row2[sharegoogleplus]; $membersharepinterest = $row2[sharepinterest]; $ignoreipaddress = $row2[ignoreipaddress]; } if($memberlogosquare == '') { $memberlogosquare = 'LogoFineArtAmericaBlueBlobLarge.jpg'; } if($_SESSION[domain][artistwebsite][versionid] > 1) { if($_SESSION[domain][artistwebsite][flagaffiliate] == 0) { if($row[$_SESSION[domain][artistwebsite][memberidtype]] == $_SESSION[domain][artistwebsite][memberid]) { include('featuredartworkartistwebsitesnew.php'); return; } } if($_SESSION[domain][artistwebsite][flagaffiliate] == 1) { $queryexclude = "SELECT rwme.* FROM retailwebsitememberexclusions rwme WHERE rwme.artistwebsiteid = '{$_SESSION[domain][artistwebsite][id]}' AND rwme.$memberidtype = '$memberid' AND rwme.status = '1'"; $resultexclude = mysql_query($queryexclude); $errormessageexclude = mysql_error(); $numexclude = mysql_numrows($resultexclude); //echo"

$queryexclude - $resultexclude - $errormessageexclude - $numexclude

\n"; if($row[flagretailwebsites] == 0 || $row2[flagallowretailwebsites] == 0 || $numexclude > 0) { header('location: ../index.html'); exit; } include('featuredartwork.php'); return; } header('HTTP/1.1 301 Moved Permanently'); header('location: http://fineartamerica.com/featured/'.$row[pagename]); exit; } if(strpos($_SERVER[HTTP_HOST],'artistwebsites.com') > 0) { if($_SESSION[website][flagaffiliate] == 1) { include('featuredartworkartistwebsitesaffiliate.php'); return; } if($row[$_SESSION[website][memberidtype]] == $_SESSION[website][memberid]) { include('featuredartworkartistwebsites.php'); return; } header('HTTP/1.1 301 Moved Permanently'); header('location: http://fineartamerica.com/featured/'.$row[pagename]); exit; } $timeelapsed[artworkfound] = microtime_float() - $timestart; include('featuredartwork.php'); } else { header('HTTP/1.0 404 Not Found'); echo"

The page you have requested can not be found.

"; echo"

{$_SESSION[domain][website][url]}

"; if($_SESSION[staffmember][id]) { echo"

Re-Enabled This Image

\n"; } } ?>