", "&" . "gt;", $inhtml); $inhtml= str_replace( "\"", "&" . "quot;", $inhtml); $inhtml= str_replace( "\n", " ", $inhtml); return $inhtml; } $timetest = microtime_float(); $result = mysql_query_debug("SELECT * FROM users WHERE id=".$who); $user = mysql_fetch_array($result); $sceneIDData = array(); if (!$user["sceneIDData"] || (time() - strtotime($user["sceneIDLastRefresh"])) > 60 * 60 * 12) { $returnvalue = $xml->parseSceneIdData("getUserInfo", array("userID" => $who)); if(is_array($returnvalue["user"])&&is_array($user)) { $r = $returnvalue["user"]; $sceneIDData = $r; } mysql_query("update users set sceneIDLastRefresh = now(), sceneIDData='".mysql_real_escape_string(serialize($returnvalue["user"]))."' where id=".$who); } else { $sceneIDData = unserialize( $user["sceneIDData"] ); } unset( $sceneIDData["nickname"] ); $user = array_merge($user, $sceneIDData); debuglog(var_export($returnvalue,true)); $time["getuserdata"] = microtime_float() - $timetest; $timetest = microtime_float(); // total thumb ups / down $result=mysql_query_debug("SELECT rating, SUM(rating) AS total FROM comments WHERE who=".$user["id"]." GROUP BY rating"); while($tmp=mysql_fetch_array($result)) { if($tmp["rating"]==1) $total_ups=$tmp["total"]; else if($tmp["rating"]==-1) $total_downs=-1*$tmp["total"]; } // glops count $result=mysql_query_debug("SELECT count(0) FROM prods WHERE added=".$user["id"]); $nbprods = mysql_result($result,0); $result=mysql_query_debug("SELECT count(0) FROM groups WHERE added=".$user["id"]); $nbgroups = mysql_result($result,0); $result=mysql_query_debug("SELECT count(0) FROM parties WHERE added=".$user["id"]); $nbparties = mysql_result($result,0); $result=mysql_query_debug("SELECT count(0) FROM screenshots WHERE user=".$user["id"]); $nbscreenshots = mysql_result($result,0); $result=mysql_query_debug("SELECT count(0) FROM nfos WHERE user=".$user["id"]); $nbnfos = mysql_result($result,0); $result=mysql_query_debug("SELECT COUNT(DISTINCT which) FROM comments WHERE who=".$user["id"]); $nbcomments = mysql_result($result,0); // average rating $query="SELECT SUM(rating)/count(0) FROM comments WHERE who=".$user["id"]; $result=mysql_query_debug($query); $avg_rating=mysql_result($result,0); $time["averages"] = microtime_float() - $timetest; //$glops=4*count($prods)+3*count($groups)+2*count($partys)+count($comments)+$ud; // Count only the logos of this user which have been voted in by the pouet users $result=mysql_query_debug("SELECT count(0) FROM logos WHERE author1=".$user["id"]." || author2=".$user["id"]); $nblogos = mysql_result($result,0); $result=mysql_query_debug("SELECT count(0) FROM logos WHERE vote_count>0 and (author1=".$user["id"]." || author2=".$user["id"].")"); $nb_good_logos = mysql_result($result,0); /* $nb_good_logos = 0; if ($logos) foreach($logos as $l) { if($l['vote_count'] > 0) { $nb_good_logos++; } } */ $glops=20*$nb_good_logos+2*$nbprods+$nbgroups+$nbparties+$nbscreenshots+$nbnfos+$ud+$nbcomments; $timetest = microtime_float(); if($user["id"]==$_SESSION["SCENEID_ID"]) { mysql_query_debug("UPDATE users SET glops=".$glops." WHERE id=".$user["id"]); } $time["update"] = microtime_float() - $timetest; debuglog(var_export($time,true)); ?>
0): ?> 0): ?> 0): ?> 0): ?> 0): ?>
" width="16" height="16">
  information
information
glöps
0)&&($user["url"]!="http://")): ?>
level:

nickname:

firstname:

lastname:

country:

email:
hidden, "yes")): ?> ">
hidden
website:
">
:
"); ?>
ojuice:
profile
"); ?>
slengpung:
" target=_blank>pictures
csdb:
" target=_blank>profile
zxdemo:
" target=_blank>profile
coup de coeur:
".stripslashes($cdc[$i]["name"])); ?> ".stripslashes($cdc[$i]["groupname1"]).""); if ($cdc[$i]["groupname2"]) print(" and ".stripslashes($cdc[$i]["groupname2"]).""); if ($cdc[$i]["groupname3"]) print(" and ".stripslashes($cdc[$i]["groupname3"]).""); ?>
average rating:
0) $thumbgfx="gfx/rulez.gif"; elseif($avg_rating==0) $thumbgfx="gfx/isok.gif"; else $thumbgfx="gfx/sucks.gif"; ?> . 
[demoblog view]
" width="160" height="160">
latest added prods glöps
<?=$typess[$kkk]?>
  "> ".stripslashes($prods["groupname1"]).""); if ($prods["groupname2"]) print(" and ".stripslashes($prods["groupname2"]).""); if ($prods["groupname3"]) print(" and ".stripslashes($prods["groupname3"]).""); ?>
<? print($platformss[$kkk]); ?>
added logos glöps
latest added prods glöps [&show=prods">show]
latest added groups glöps
latest added screenshots glöps
latest added nfos glöps
latest 1st comments glöps
top thumb up agreers (total )
top thumb down agreers (total )
account created on the
*clicki clicki clacki* (\/) - - (\/) *clacki clacki clicki*
ciega ciega ciega frikki!!"); ?>