$val ) { $trimmedKey = trim( key ); if( $trimmedKey != $key ) $_COOKIES[ $trimmedKey ] = $val; } $query="SELECT MAX(id) FROM prods"; $result=mysql_query($query); $maxid=mysql_result($result,0); $query ="SELECT * FROM prods "; if((!$which)||($which>$maxid)) { $query.="ORDER BY RAND() "; } else { $query.="WHERE id=".(int)$which." "; } $query.="LIMIT 1"; $result = mysql_query($query); $prod = mysql_fetch_array($result); if((!$which)||($which>$maxid)) { $which=$prod["id"]; } $which = (int)$which; $query="SELECT nickname,avatar FROM users WHERE id=".$prod["added"]; $result=mysql_query($query); if ($result) { $tmp=mysql_fetch_array($result); $prod["nickname"]=$tmp["nickname"]; $prod["avatar"]=$tmp["avatar"]; } if($prod["party"]) { $query="SELECT name FROM parties WHERE id=".$prod["party"]; $result=mysql_query($query); $prod["partyname"]=mysql_result($result,0); } if($prod["invitation"]) { $query="SELECT name FROM parties WHERE id=".$prod["invitation"]; $result=mysql_query($query); $prod["invitationpartyname"]=mysql_result($result,0); } if ($prod["boardID"]) { $query="SELECT name FROM bbses WHERE id=".$prod["boardID"]; $result=mysql_query($query); $prod["boardname"]=mysql_result($result,0); } if(isset($prod["party_year"])) { $pyear = $prod["party_year"]; } if(isset($prod["invitationyear"])) { $piyear = $prod["invitationyear"]; } if($prod["group1"]) { $query="SELECT name,web,acronym FROM groups WHERE id=".$prod["group1"]; $result=mysql_query($query); $tmp=mysql_fetch_array($result); $prod["groupname1"]=$tmp["name"]; $prod["groupweb1"]=$tmp["web"]; $prod["groupa1"]=$tmp["acronym"]; } if($prod["group2"]) { $query="SELECT name,web,acronym FROM groups WHERE id=".$prod["group2"]; $result=mysql_query($query); $tmp=mysql_fetch_array($result); $prod["groupname2"]=$tmp["name"]; $prod["groupweb2"]=$tmp["web"]; $prod["groupa2"]=$tmp["acronym"]; } if($prod["group3"]) { $query="SELECT name,web,acronym FROM groups WHERE id=".$prod["group3"]; $result=mysql_query($query); $tmp=mysql_fetch_array($result); $prod["groupname3"]=$tmp["name"]; $prod["groupweb3"]=$tmp["web"]; $prod["groupa3"]=$tmp["acronym"]; } $query="SELECT prodotherparty.party, prodotherparty.party_place, prodotherparty.party_year, prodotherparty.partycompo, parties.name FROM prodotherparty LEFT JOIN parties ON parties.id=prodotherparty.party WHERE prod=".$prod["id"]; $result = mysql_query($query); if ($result) { while($tmp = mysql_fetch_array($result)) { $prodotherparties[]=$tmp; } } $query="select platforms.name, platforms.icon from prods_platforms, platforms where prods_platforms.prod='".$which."' and platforms.id=prods_platforms.platform"; $result = mysql_query($query); while($tmp = mysql_fetch_array($result)) { $platforms[]=$tmp; } for ($i=0; $i= 0) $query .= " LIMIT $comments_offset, $comments_per_page"; // print ($query); $result=mysql_query($query); if ($result) { while($tmp=mysql_fetch_array($result)) { $comments[]=$tmp; } } } $query = "SELECT * from users_cdcs where users_cdcs.cdc='".$prod["id"]."'"; $result=mysql_query($query); while($tmp=mysql_fetch_array($result)) { $cdcs[]=$tmp; } for($j=0; $juser; } // comments end if($prod["id"]) { //cdc count $result=mysql_query("SELECT count(0) from users_cdcs where cdc=".$prod["id"]); $prod["cdc"]=mysql_result($result,0); $result=mysql_query("SELECT count(0) from cdc where which=".$prod["id"]); $prod["cdc"]=$prod["cdc"]+mysql_result($result,0); //sceneorgrecommended check $result=mysql_query("SELECT * from sceneorgrecommended where prodid=".$prod["id"]." ORDER BY type"); while($tmp=mysql_fetch_array($result)) { $sceneorgrecommends[]=$tmp; } //affiliated prods $result=mysql_query( " SELECT affiliatedprods.type as type,". " affiliatedprods.derivative as derivative,". " affiliatedprods.original as original,". " prods.name as name". " from affiliatedprods". " join prods on prods.id=affiliatedprods.original". " where affiliatedprods.derivative=".$prod["id"]." ORDER BY affiliatedprods.type"); while($tmp=mysql_fetch_array($result)) { $tmp["prod"] = "original"; $affils[]=$tmp; } $result=mysql_query( " SELECT affiliatedprods.type as type,". " affiliatedprods.derivative as derivative,". " affiliatedprods.original as original,". " prods.name as name". " from affiliatedprods". " join prods on prods.id=affiliatedprods.derivative". " where affiliatedprods.original=".$prod["id"]." ORDER BY affiliatedprods.type"); while($tmp=mysql_fetch_array($result)) { $tmp["prod"] = "derivative"; $affils[]=$tmp; } $query="SELECT downloadlinks.id,downloadlinks.link,downloadlinks.type FROM downloadlinks WHERE downloadlinks.prod=".$prod["id"]." ORDER BY downloadlinks.type"; $result = mysql_query($query); while($tmp=mysql_fetch_array($result)) { $dl[]=$tmp; } } if(file_exists("screenshots/".$prod["id"].".jpg")) { $shotpath = "screenshots/".$prod["id"].".jpg"; } elseif(file_exists("screenshots/".$prod["id"].".gif")) { $shotpath = "screenshots/".$prod["id"].".gif"; } elseif(file_exists("screenshots/".$prod["id"].".png")) { $shotpath = "screenshots/".$prod["id"].".png"; } ?>
2): ?>
"; else $cdcprint=""; printf( "
by "> [">web] & "> [">web] & "> [">web] [edit] [0) print("&f=4"); ?>">nfo] [ ">+.nfo ]
"> border="0" title="screenshot added on the dt,0,10)?> by nick)?>">
border="0" title="screenshot added on the dt,0,10)?> by nick)?>">
no screenshot yet...
">upload one
platform :
">" width="16" height="16" border="0" title="">
  ">
type :

 
invit for : &when=">
advertising for : ">
release date : 0)) { $rdate=explode("-",$prod["date"]); switch($rdate[1]) { case "01": $rmonth="january"; break; case "02": $rmonth="february"; break; case "03": $rmonth="march"; break; case "04": $rmonth="april"; break; case "05": $rmonth="may"; break; case "06": $rmonth="june"; break; case "07": $rmonth="july"; break; case "08": $rmonth="august"; break; case "09": $rmonth="september"; break; case "10": $rmonth="october"; break; case "11": $rmonth="november"; break; case "12": $rmonth="december"; break; default: $rmonth=""; break; } ?>
n/a [">+]
n/a
release party : 0): ?> &when=">
n/a [">+]
n/a
compo : "); else: if($_SESSION["SCENEID_ID"]): ?> n/a [">+]
n/a
ranked : ".$placeadj."
"); break; case 2: case 22: case 32: case 42: case 52: case 62: case 72: case 82: case 92: $placeadj="nd"; print($prod["party_place"]."".$placeadj."
"); break; case 3: case 23: case 33: case 43: case 53: case 63: case 73: case 83: case 93: $placeadj="rd"; print($prod["party_place"]."".$placeadj."
"); break; case 97: print("disqualified
"); break; case 98: print("n/a
"); break; case 99: print("not shown
"); break; default: $placeadj="th"; print($prod["party_place"]."".$placeadj."
"); break; } ?> n/a [">+]
n/a
release party : 0): ?> &when=">
n/a
compo : "); else: ?> n/a [&what=">+]
n/a
ranked : ".$placeadj."
"); break; case 2: case 22: case 32: case 42: case 52: case 62: case 72: case 82: case 92: $placeadj="nd"; print($prodotherparties[$i]["party_place"]."".$placeadj."
"); break; case 3: case 23: case 33: case 43: case 53: case 63: case 73: case 83: case 93: $placeadj="rd"; print($prodotherparties[$i]["party_place"]."".$placeadj."
"); break; case 97: print("disqualified
"); break; case 98: print("n/a
"); break; case 99: print("not shown
"); break; default: $placeadj="th"; print($prodotherparties[$i]["party_place"]."".$placeadj."
"); break; } else: if($_SESSION["SCENEID_ID"]): ?> n/a [&what=">+]
n/a
related : ">
"); endif; ?>
popularity :
%
"); for($k=0;$k\"%s\"", $sceneorgrecommends[$k]["type"] == "viewingtip" ? substr($prod["date"],0,4) : substr($prod["date"],0,4).str_replace(" ","",$sceneorgrecommends[$k]["category"]), $sceneorgrecommends[$k]["type"], $sceneorgrecommends[$k]["category"], $sceneorgrecommends[$k]["category"]); } print("
0) $thumbgfx="gfx/rulez.gif"; elseif($prod["voteavg"]==0) $thumbgfx="gfx/isok.gif"; else $thumbgfx="gfx/sucks.gif"; if($prod["cdc"]>0) $cdcprint=" \"cdc\" ".$prod["cdc"]."
". "". "". "". "".$cdcprint. "". "
\"average %.2f
\n", $prod["voteavg"]); echo "
"; echo "alltime top: "; if ($prod["rank"]) printf("#%d",$prod["rank"]); else echo "n/a"; echo "
"; ?>
[">csdb]
[ ">+csdb ]
[">sceneorg]
[ ">+sceneorg ] [">zxdemo]
[ ">+zxdemo ]
[">download]
[">]
[">mirrors...]
added on the by ">  
">" width="16" height="16" border="0">

popularity helper
increase the popularity of this prod by spreading this URL:
" size="50" readonly>

0): ?>
"> ">
comments
"> here"); } else { print(parse_message($comments[$i]["comment"])); } ?>
  added on the #c"> by ">   ">" width="16" height="16" border="0" title="">
=1)&&($comments_per_page>0)): ?> 0)): ?>

  previous page
displaying comments 0): ?> (-) out of 0): ?>(go to first)
next page
 

", $o->id, $o->avatar, $o->id, $o->nickname); } ?>
sneaky cdc's
%s
comments
Comments are actually hidden.
Click here to show the comments again.

submit changes
if this prod is a fake, some info is false or the download link is broken,
do not post about it in the comments, it will get lost.
instead, post about it.

">
add a comment
this prod rulez is ok sucks

BB Code is allowed here

add a comment
You need to be logged in to add a comment :: register here



">
scene.org awards candidate
suggest this prod to the jury for a scene.org awards category! check your full suggestions here
probably with a very good reason too!

*clack clack* (\/) o o (\/) *clack clack*"); ?>