#"); } 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; } $pattern=$_REQUEST['pattern']; if (strlen($pattern) > 1) { $pattern = $pattern[0]; } $which=intval($_REQUEST['which']); if(!$pattern&&!$which) { $pattern=chr(mt_rand(96,122)); if($pattern==chr(96)) { $pattern="#"; } } /* if ($which == 1317 && strstr($_SERVER["HTTP_USER_AGENT"],"Yahoo Pipes")!==false) { // ha ha asd $a = array(796,5718,1564,2085); $which = $a[ array_rand($a) ]; } */ if($which) { $query = "SELECT group2 from groupsaka WHERE group1=".$which; $result = mysql_query($query); while($tmp=mysql_fetch_array($result)) { $groupaka[]=$tmp; } $query="SELECT id,name,acronym,web,csdb,zxdemo,added,quand FROM groups WHERE id=".$which; 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); //get user who added this group $query="SELECT id,nickname,avatar FROM users WHERE id=".$groups[0]["added"]; $result=mysql_query($query); $myuser=mysql_fetch_array($result); if ($order=="latestcomment") usort($prods, "cmpcomments"); if (!$groupiesort) $groupiesort=1; switch ($groupiesort) { //groupies case 1: $fftype="comments.rating=1"; break; //dissers case 2: $fftype="comments.rating=-1"; break; //followers default: $fftype="1"; break; } if ($groupiesort!=0) { //get groupies $sql = "select comments.who AS who,count(0) as c,users.nickname,users.avatar from prods,comments left join users on users.id=comments.who where ".$fftype." and comments.which=prods.id and (prods.group1=".$groups[0]['id']." or prods.group2=".$groups[0]['id']." or prods.group3=".$groups[0]['id'].") group by comments.who order by c DESC LIMIT 10"; debuglog($sql); $result=mysql_query($sql); debuglog(mysql_error()); while($tmp=mysql_fetch_array($result)) { $groupies[]=$tmp; } //print(count($groupies)." ".$result); } //get bbsaffils $result=mysql_query("SELECT bbses.id, bbses.name, affiliatedbbses.type from bbses,affiliatedbbses where affiliatedbbses.group=".$groups[0]['id']." and affiliatedbbses.bbs=bbses.id ORDER BY affiliatedbbses.type, bbses.name"); while($tmp=mysql_fetch_array($result)) { $bbsaffils[]=$tmp; } } ?>
\n"); } else { print("\n"); } print("\n"); print("\n\n"); } } else { $i=0; if (count($prods)==0) { print("\n \n\n"); } else { for($j=0;$j\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"); } }}} ?> 0): //board affils list ?>
".$groups[$i]["name"]); if($groups[$i]["acronym"]) print(" [".$groups[$i]["acronym"]."]"); print(""); if($SESSION_LEVEL=='administrator' || $SESSION_LEVEL=='moderator' || $SESSION_LEVEL=='gloperator') print(" [editgroup]\n"); if($groups[$i]["web"]) print(" [web]\n"); if($groups[$i]["csdb"]) { print(" [csdb]\n"); } else { if(($csdbflag>0)&&($_SESSION["SCENEID_ID"])) print(" [+csdb]\n"); } if($groups[$i]["zxdemo"]) { print(" [zxdemo]\n"); } else { if(($zxdemoflag>0)&&($_SESSION["SCENEID_ID"])) print(" [+zxdemo]\n"); } if (count($groupaka)) { print(" aka ".$groups[$i+1]["name"]); if($groups[$i+1]["acronym"]) print(" [".$groups[$i+1]["acronym"]."]"); print(""); if($SESSION_LEVEL=='administrator' || $SESSION_LEVEL=='moderator' || $SESSION_LEVEL=='gloperator') print(" [editgroup]\n"); if($groups[$i+1]["web"]) print(" [web]\n"); if($groups[$i+1]["csdb"]) { print(" [csdb]\n"); } else { if(($csdbflag>0)&&($_SESSION["SCENEID_ID"])) print(" [+csdb]\n"); } if($groups[$i+1]["zxdemo"]) { print(" [zxdemo]\n"); } else { if(($zxdemoflag>0)&&($_SESSION["SCENEID_ID"])) print(" [+zxdemo]\n"); } } else { print("
\n"); } ?>
.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

congratulations! you just found a dupe group that has been deleted from our database!! \o/


groups
prods

no group name beginning with a yet =(

".$groups[$i]["name"]); if($groups[$i]["acronym"]) print(" [".$groups[$i]["acronym"]."]"); print(""); if($SESSION_LEVEL=='administrator' || $SESSION_LEVEL=='moderator' || $SESSION_LEVEL=='gloperator') print(" [editgroup]\n"); if($groups[$i]["web"]) print(" [web]\n"); if($groups[$i]["csdb"]) print(" [csdb]\n"); if($groups[$i]["zxdemo"]) print(" [zxdemo]\n"); print("\n\n"); $k=0; # Try this instead, using the homework we did above (jeffry) if ($prodsbygroup[$groups[$i]["id"]]) { foreach ($prodsbygroup[$groups[$i]["id"]] as $prod) { $typess=explode(",", $prod["type"]); print("\n"); $k++; } } if(!$k){ print("\n"); } print("
"); for($kk=0;$kk"); } print("

".strtolower(stripslashes($prod["name"]))."

\n
no prods on pouet for this group yet!
"); $a = array(); if ($prods[$j]["g1id"] && $prods[$j]["g1id"]!=$which) $a[] = sprintf("%s",$prods[$j]["g1id"],htmlentities($prods[$j]["g1name"])); if ($prods[$j]["g2id"] && $prods[$j]["g2id"]!=$which) $a[] = sprintf("%s",$prods[$j]["g2id"],htmlentities($prods[$j]["g2name"])); if ($prods[$j]["g3id"] && $prods[$j]["g3id"]!=$which) $a[] = sprintf("%s",$prods[$j]["g3id"],htmlentities($prods[$j]["g3name"])); if (count($a)) echo ""; 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"); } $s = $prods[$j]["name"]; $s = stripslashes($s); $s = htmlspecialchars($s); $s = str_replace("&#","&#",$s); print("".strtolower($s)."
 (with ".implode(", ",$a).")"); 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="">

  "; break; case 0: echo "\"piggie\""; break; case -1: echo "\"sucks\""; break; }?>
added on the by ">  
">" width="16" height="16" border="0">

\n"); } else { print("\n"); } ?> 0): ?>
BBS affiliations
">


\n"); } else { print("\n"); } ?>
top
">" width="16" height="16" border="0">
 
">