#"); } else { print("#"); } for($i=1;$i<=26;$i++) { print(" | "); if($pattern==chr(96+$i)) { print("".chr(96+$i).""); } else { print("".chr(96+$i).""); } } print(" ]
\n"); } function cmpcomments($a, $b) { if ($a["lcom_quand"] == $b["lcom_quand"]) { return 0; } return ($a["lcom_quand"] > $b["lcom_quand"]) ? -1 : 1; } function goodfleche($wanted,$current) { if($wanted==$current) { $fleche="fleche1a"; } else { $fleche="fleche1b"; } return $fleche; } if(!$pattern&&!$which) { $pattern=chr(mt_rand(96,122)); if($pattern==chr(96)) { $pattern="#"; } } $query="SELECT distinct(prods.id),prods.name,prods.group1,prods.group2,prods.group3,prods.type,prods.partycompo,prods.date,prods.party,prods.party_year,prods.party_place,prods.views,prods.voteup,prods.votepig,prods.votedown,prods.voteavg,dl.link,parties1.name as partyname FROM prods join downloadlinks dl on dl.prod=prods.id LEFT JOIN parties as parties1 ON parties1.id=prods.party WHERE dl.type like 'video%'"; switch($order) { case "party": $query.=" ORDER BY prods.party,prods.party_year,prods.name"; break; case "type": $query.=" ORDER BY prods.type,prods.name"; break; //case "platform": $query.=" ORDER BY prods.platform,prods.name"; break; case "views": $query.=" ORDER BY prods.views DESC"; break; case "release": $query.=" ORDER BY prods.date DESC, prods.quand DESC"; break; case "thumbup": $query.=" ORDER BY prods.voteup DESC, prods.quand DESC"; break; case "thumbpig": $query.=" ORDER BY prods.votepig DESC, prods.quand DESC"; break; case "thumbdown": $query.=" ORDER BY prods.votedown DESC, prods.quand DESC"; break; case "avg": $query.=" ORDER BY prods.voteavg DESC, prods.voteup DESC, prods.quand DESC"; break; default: //if (($order!="avg") && ($order!="avg_rev") && ($order!="thumbs")) { $order="name"; } $query.=" ORDER BY prods.name"; break; } $result = mysql_query($query); while($tmp = mysql_fetch_array($result)) { $prods[]=$tmp; } for($i=0;$i0) $prods[$i]["platform"].=","; $check++; $prods[$i]["platform"].=$tmp["name"]; } if ($prods[$i]["platform"]=="Commodore 64") $csdbflag=1; if ($prods[$i]["platform"]=="ZX Spectrum") $zxdemoflag=1; //get array of sceneorgrecommendations for this group $result=mysql_query("SELECT * from sceneorgrecommended where prodid=".$prods[$i]["id"]." ORDER BY type"); while($tmp=mysql_fetch_array($result)) { $sceneorgrecommends[]=$tmp; } } //get max_views for popularity $result=mysql_query("SELECT MAX(views) FROM prods"); $max_views=mysql_result($result,0); if ($order=="latestcomment") usort($prods, "cmpcomments"); ?>
\n"); } else { print("\n"); } $typess = explode(",", $prods[$j]["type"]); print("\n"); if(($prods[$j]["partyname"])&&!($prods[$j]["party"]==1024)) { $placeadj=""; if ($prods[$j]["partycompo"]=="") $compophrase=""; else $compophrase=" ".$prods[$j]["partycompo"]; if (($prods[$j]["partycompo"]=="none")||($prods[$j]["partycompo"]=="invit")) $prods[$j]["party_place"]=98; if($prods[$j]["party_place"]) { switch($prods[$j]["party_place"]) { case 1: case 21: case 31: case 41: case 51: case 61: case 71: case 81: case 91: $placeadj="st"; print("\n"); break; case 2: case 22: case 32: case 42: case 52: case 62: case 72: case 82: case 92: $placeadj="nd"; print("\n"); break; case 3: case 23: case 33: case 43: case 53: case 63: case 73: case 83: case 93: $placeadj="rd"; print("\n"); break; case 97: print("\n"); break; case 98: print("\n"); break; case 99: print("\n"); break; default: $placeadj="th"; print("\n"); break; } } else { $placeadj = "??"; print("\n"); } } else { if ($prods[$j]["party"]==1024) print("\n"); else print("\n"); } if(($prods[$j]["date"]!="0000-00-00")&&(strlen($prods[$j]["date"])>0)) { $rdate=explode("-",$prods[$j]["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; } print("\n"); } else { print("\n"); } if ($prods[$j]["voteup"]) { print("\n"); } else {print("\n"); } if ($prods[$j]["votepig"]) { print("\n"); } else {print("\n"); } if ($prods[$j]["votedown"]) { print("\n"); } else {print("\n"); } if($prods[$j]["voteavg"]>0) $thumbgfx="gfx/rulez.gif"; elseif($prods[$j]["voteavg"]==0) $thumbgfx="gfx/isok.gif"; else $thumbgfx="gfx/sucks.gif"; printf("\n",$prods[$j]["voteavg"]); //popularity bar print("\n"); if ($prods[$j]["lcom_quand"]){ ?>  
\n"); } } ?>
video prods
.gif" width="13" height="12" border="0">
*/ ?>
.gif" width="13" height="12" border="0">
type
.gif" width="13" height="12" border="0">
prodname
platform
.gif" width="13" height="12" border="0">
release party
.gif" width="13" height="12" border="0">
release date
rulez piggie sucks
.gif" width="13" height="12" border="0">
avg
.gif" width="13" height="12" border="0">
popularity
.gif" width="13" height="12" border="0">
last comment
"); if(count($sceneorgrecommends)): print(""); endif; if($prods[$j]["cdc"]): print(""); endif; print(""); $platforms = explode(",", $prods[$j]["platform"]); for($kkk=0;$kkk
"); for($k=0;$k"); } print("

".strtolower(htmlentities(stripslashes($prods[$j]["name"])))." (video)
 "); for($k=0;$k"); } print("
"); //for($ii=0;$ii<$prods[$j]["cdc"];$ii++): print("\"cdc\""); //endfor; cdcstack($prods[$j]["cdc"]); print("
 
".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
disqualified at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
for ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."
not shown at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
no party
??
".$rmonth." ".$rdate[0]."
 
\n".$prods[$j]["voteup"]."\n0\n".$prods[$j]["votepig"]."\n0\n".$prods[$j]["votedown"]."\n0\n
 %.2f \"average
\n"); $pourcent = floor($prods[$j]["views"]*100/$max_views); DoBar($pourcent); print(" ".$rdate2[2]." ".$rmonth." ".$rdate2[0]."
\n"); ?>
">" width="16" height="16" border="0" title="">