#"); } 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 goodfleche($wanted,$current) { if($wanted==$current) { $fleche="fleche1a"; } else { $fleche="fleche1b"; } return $fleche; } function reorder_prodtype($a, $b) { if (($a["type"] == "prod") && ($b["type"] == "prod")) { if ($a["prodtype"] == $b["prodtype"]) { return 0; } return ($a["prodtype"] < $b["prodtype"]) ? -1 : 1; } else { if ($a["type"] == $b["type"]) { if (strtolower($a["groupname"]) == strtolower($b["groupname"])) { if (strtolower($a["nickname"]) == strtolower($b["nickname"])) { if (strtolower($a["partyname"]) == strtolower($b["partyname"])) { return 0; } return (strtolower($a["partyname"]) < strtolower($b["partyname"])) ? -1 : 1; } return (strtolower($a["nickname"]) < strtolower($b["nickname"])) ? -1 : 1; } return (strtolower($a["groupname"]) < strtolower($b["groupname"])) ? -1 : 1; } return ($a["type"] < $b["type"]) ? -1 : 1; } } /*function reorder_date($a, $b) { if ($a["date"] == $b["date"]) { return 0; } return ($a["date"] > $b["date"]) ? -1 : 1; } function reorder_id($a, $b) { if ($a["id"] == $b["id"]) { return 0; } return ($a["id"] > $b["id"]) ? -1 : 1; }*/ function reorder_id_and_date($a, $b) { if (($a["type"] == "prod") && ($b["type"] == "prod")) { if ($a["date"] == $b["date"]) { return ($a["id"] > $b["id"]) ? -1 : 1; } return ($a["date"] > $b["date"]) ? -1 : 1; } else { if ($a["type"] == $b["type"]) { if (strtolower($a["groupname"]) == strtolower($b["groupname"])) { if (strtolower($a["nickname"]) == strtolower($b["nickname"])) { if (strtolower($a["partyname"]) == strtolower($b["partyname"])) { return 0; } return (strtolower($a["partyname"]) < strtolower($b["partyname"])) ? -1 : 1; } return (strtolower($a["nickname"]) < strtolower($b["nickname"])) ? -1 : 1; } return (strtolower($a["groupname"]) < strtolower($b["groupname"])) ? -1 : 1; } return ($a["type"] < $b["type"]) ? -1 : 1; } } function reorder_partycompo($a, $b) { if (($a["type"] == "prod") && ($b["type"] == "prod")) { if ($a["partycompo"] == $b["partycompo"]) { return 0; } return ($a["partycompo"] < $b["partycompo"]) ? -1 : 1; } else { if ($a["type"] == $b["type"]) { if (strtolower($a["groupname"]) == strtolower($b["groupname"])) { if (strtolower($a["nickname"]) == strtolower($b["nickname"])) { if (strtolower($a["partyname"]) == strtolower($b["partyname"])) { return 0; } return (strtolower($a["partyname"]) < strtolower($b["partyname"])) ? -1 : 1; } return (strtolower($a["nickname"]) < strtolower($b["nickname"])) ? -1 : 1; } return (strtolower($a["groupname"]) < strtolower($b["groupname"])) ? -1 : 1; } return ($a["type"] < $b["type"]) ? -1 : 1; } } function reorder_name($a, $b) { if (($a["type"] == "prod") && ($b["type"] == "prod")) { if (strtolower($a["name"]) == strtolower($b["name"])) { return 0; } return (strtolower($a["name"]) < strtolower($b["name"])) ? -1 : 1; } else { if ($a["type"] == $b["type"]) { if (strtolower($a["groupname"]) == strtolower($b["groupname"])) { if (strtolower($a["nickname"]) == strtolower($b["nickname"])) { if (strtolower($a["partyname"]) == strtolower($b["partyname"])) { return 0; } return (strtolower($a["partyname"]) < strtolower($b["partyname"])) ? -1 : 1; } return (strtolower($a["nickname"]) < strtolower($b["nickname"])) ? -1 : 1; } return (strtolower($a["groupname"]) < strtolower($b["groupname"])) ? -1 : 1; } return ($a["type"] < $b["type"]) ? -1 : 1; } } function reorder_platform($a, $b) { if (($a["type"] == "prod") && ($b["type"] == "prod")) { if ($a["platform"] == $b["platform"]) { return 0; } return ($a["platform"] < $b["platform"]) ? -1 : 1; } else { if ($a["type"] == $b["type"]) { if (strtolower($a["groupname"]) == strtolower($b["groupname"])) { if (strtolower($a["nickname"]) == strtolower($b["nickname"])) { if (strtolower($a["partyname"]) == strtolower($b["partyname"])) { return 0; } return (strtolower($a["partyname"]) < strtolower($b["partyname"])) ? -1 : 1; } return (strtolower($a["nickname"]) < strtolower($b["nickname"])) ? -1 : 1; } return (strtolower($a["groupname"]) < strtolower($b["groupname"])) ? -1 : 1; } return ($a["type"] < $b["type"]) ? -1 : 1; } } /*function reorder_views($a, $b) { if ($a["views"] == $b["views"]) { return 0; } return ($a["views"] > $b["views"]) ? -1 : 1; } function reorder_thumbup($a, $b) { if ($a["voteup"] == $b["voteup"]) { return 0; } return ($a["voteup"] > $b["voteup"]) ? -1 : 1; } function reorder_thumbpig($a, $b) { if ($a["votepig"] == $b["votepig"]) { return 0; } return ($a["votepig"] > $b["votepig"]) ? -1 : 1; } function reorder_thumbdown($a, $b) { if ($a["votedown"] == $b["votedown"]) { return 0; } return ($a["votedown"] > $b["votedown"]) ? -1 : 1; } function reorder_avg($a, $b) { if ($a["voteavg"] == $b["voteavg"]) { return 0; } return ($a["voteavg"] > $b["voteavg"]) ? -1 : 1; }*/ if(!$pattern&&!$which) { $pattern=chr(mt_rand(96,122)); if($pattern==chr(96)) { $pattern="#"; } } if($which) { $query="SELECT lists.id,lists.name,lists.desc,lists.upkeeper,lists.added,users.nickname,users.avatar FROM lists LEFT JOIN users on users.id=lists.upkeeper WHERE lists.id=".$which; } elseif($pattern) { if($pattern=="#") { $sqlwhere="(name LIKE '0%')||(name LIKE '1%')||(name LIKE '2%')||(name LIKE '3%')||(name LIKE '4%')||(name LIKE '5%')||(name LIKE '6%')||(name LIKE '7%')||(name LIKE '8%')||(name LIKE '9%')"; } else { $sqlwhere="name LIKE '".$pattern."%'"; } $query="SELECT lists.id,lists.name,lists.desc,lists.upkeeper,lists.added,users.nickname,users.avatar FROM lists LEFT JOIN users on users.id=lists.upkeeper WHERE (".$sqlwhere.") ORDER BY name"; } $result = mysql_query($query); while($tmp = mysql_fetch_array($result)) { $lists[]=$tmp; } if($which) { $query="SELECT * from listitems WHERE list=$which ORDER BY listitems.type"; $result = mysql_query($query); //print("->".$query); while($tmp = mysql_fetch_array($result)) { //print("\n->".$tmp["type"]); if($tmp["type"]=="prod") { //print("kaja"); $prodquery="SELECT prods.id,prods.name,prods.views,prods.type,prods.date,prods.party,prods.party_year,prods.party_place,prods.partycompo,prods.group1,prods.group2,prods.group3,parties1.name as partyname FROM prods LEFT JOIN parties as parties1 ON parties1.id=prods.party WHERE prods.id='".$tmp["itemid"]."' LIMIT 1"; $prodresult = mysql_query($prodquery); $tmp2 = mysql_fetch_array($prodresult); $tmp["id"]=$tmp2["id"]; $tmp["name"]=$tmp2["name"]; $tmp["views"]=$tmp2["views"]; $tmp["prodtype"]=$tmp2["type"]; $tmp["date"]=$tmp2["date"]; $tmp["party"]=$tmp2["party"]; $tmp["party_year"]=$tmp2["party_year"]; $tmp["party_place"]=$tmp2["party_place"]; $tmp["partycompo"]=$tmp2["partycompo"]; $tmp["group1"]=$tmp2["group1"]; $tmp["group2"]=$tmp2["group2"]; $tmp["group3"]=$tmp2["group3"]; $tmp["partyname"]=$tmp2["partyname"]; if ($tmp["group1"]): $gquery="select name,acronym from groups where id='".$tmp["group1"]."'"; $gresult=mysql_query($gquery); while($gtmp = mysql_fetch_array($gresult)) { $tmp["groupname1"]=$gtmp["name"]; $tmp["groupacron1"]=$gtmp["acronym"]; } endif; if ($tmp["group2"]): $gquery="select name,acronym from groups where id='".$tmp["group2"]."'"; $gresult=mysql_query($gquery); while($gtmp = mysql_fetch_array($gresult)) { $tmp["groupname2"]=$gtmp["name"]; $tmp["groupacron2"]=$gtmp["acronym"]; } endif; if ($tmp["group3"]): $gquery="select name,acronym from groups where id='".$tmp["group3"]."'"; $gresult=mysql_query($gquery); while($gtmp = mysql_fetch_array($gresult)) { $tmp["groupname3"]=$gtmp["name"]; $tmp["groupacron3"]=$gtmp["acronym"]; } endif; if (strlen($tmp["groupname1"].$tmp["groupname2"].$tmp["groupname3"])>27): if (strlen($tmp["groupname1"])>10 && $tmp["groupacron1"]) $tmp["groupname1"]=$tmp["groupacron1"]; if (strlen($tmp["groupname2"])>10 && $tmp["groupacron2"]) $tmp["groupname2"]=$tmp["groupacron2"]; if (strlen($tmp["groupname3"])>10 && $tmp["groupacron3"]) $tmp["groupname3"]=$tmp["groupacron3"]; endif; //get platforms $pltquery="select platforms.name from prods_platforms, platforms where prods_platforms.prod='".$tmp["id"]."' and platforms.id=prods_platforms.platform"; $pltresult=mysql_query($pltquery); $check=0; $tmp["platform"]=""; while($pltmp = mysql_fetch_array($pltresult)) { if ($check>0) $tmp["platform"].=","; $check++; $tmp["platform"].=$pltmp["name"]; } //get array of sceneorgrecommendations for this group $result2=mysql_query("SELECT * from sceneorgrecommended where prodid=".$tmp["itemid"]." ORDER BY type"); while($tmp2=mysql_fetch_array($result2)) { $sceneorgrecommends[]=$tmp2; } } elseif($tmp["type"]=="party") { $prodquery="SELECT name,web from parties where id='".$tmp["itemid"]."' LIMIT 1"; $prodresult = mysql_query($prodquery); $tmp2 = mysql_fetch_array($prodresult); $tmp["partyname"]=$tmp2["name"]; $tmp["partyweb"]=$tmp2["web"]; /* } elseif($tmp["type"]=="partylinks") { $prodquery="SELECT name from parties where id='".$tmp["itemid"]."' LIMIT 1"; $prodresult = mysql_query($prodquery); $tmp2 = mysql_fetch_array($prodresult); $tmp["partylinkname"]=$tmp2["name"]; $prodquery="SELECT * from partylinks where id='".$tmp["itemid"]."' and year='".$tmp["itempartyyear"]."' LIMIT 1"; $prodresult = mysql_query($prodquery); $tmp2 = mysql_fetch_array($prodresult); $tmp["partyname"]=$tmp2["name"]; */ } elseif($tmp["type"]=="user") { $prodquery="SELECT nickname,avatar from users where id='".$tmp["itemid"]."' LIMIT 1"; $prodresult = mysql_query($prodquery); $tmp2 = mysql_fetch_array($prodresult); $tmp["nickname"]=$tmp2["nickname"]; $tmp["avatar"]=$tmp2["avatar"]; } elseif($tmp["type"]=="group") { $prodquery="SELECT name,acronym,web,csdb,zxdemo from groups where id='".$tmp["itemid"]."' LIMIT 1"; $prodresult = mysql_query($prodquery); $tmp2 = mysql_fetch_array($prodresult); $tmp["groupname"]=$tmp2["name"]; $tmp["groupacronym"]=$tmp2["acronym"]; $tmp["groupweb"]=$tmp2["web"]; $tmp["groupcsdb"]=$tmp2["csdb"]; $tmp["groupzxdemo"]=$tmp2["zxdemo"]; /* } elseif($tmp["type"]=="lists") { $prodquery="SELECT lists.name,lists.desc,lists.upkeeper,users.nickname,users.avatar from lists LEFT JOIN users ON users.id=lists.upkeeper where id='".$tmp["itemid"]."' LIMIT 1"; $prodresult = mysql_query($prodquery); $tmp2 = mysql_fetch_array($prodresult); $tmp["listname"]=$tmp2["name"]; $tmp["desc"]=$tmp2["desc"]; $tmp["upkeeper"]=$tmp2["upkeeper"]; $tmp["upkeepernickname"]=$tmp2["nickname"]; $tmp["upkeeperavatar"]=$tmp2["avatar"]; */ } $listitems[]=$tmp; } switch($prodorder) { case "type": usort($listitems, "reorder_id_and_date"); usort($listitems, "reorder_prodtype"); break; case "name": usort($listitems, "reorder_name"); break; case "release": usort($listitems, "reorder_id_and_date"); break; case "platform": usort($listitems, "reorder_id_and_date"); usort($listitems, "reorder_platform"); break; /* case "views": usort($listitems, "reorder_views"); break; case "thumbup": usort($listitems, "reorder_thumbup"); break; case "thumbpig": usort($listitems, "reorder_thumbpig"); break; case "thumbdown": usort($listitems, "reorder_thumbdown"); break; case "avg": usort($listitems, "reorder_avg"); break;*/ default: case "release": usort($listitems, "reorder_id_and_date"); break; $prodorder="release"; break; } } ?>
\n"); } else { print("\n"); } print("\n"); print("\n"); print("\n\n"); } } else { //print("->kok9".count($listitems)); for($i=0;$i".$listitems[$i]["type"]); if ($listitems[$i]["type"]!=$listitems[$i-1]["type"]): if ($listitems[$i]["type"]=="prod") { //print("kakak000"); ?> rulez */ ?> "); } endif; if($i%2) { print("\n"); } else { print("\n"); } //print("pokaman"); if ($listitems[$i]["type"]=="prod"): $typess = explode(",", $listitems[$i]["prodtype"]); print("\n"); if(($listitems[$i]["partyname"])&&!($listitems[$i]["party"]==1024)) { $placeadj=""; if ($listitems[$i]["partycompo"]=="") $compophrase=""; else $compophrase=" ".$listitems[$i]["partycompo"]; if (($listitems[$i]["partycompo"]=="none")||($listitems[$i]["partycompo"]=="invit")) $listitems[$i]["party_place"]=98; if($listitems[$i]["party_place"]) { switch($listitems[$i]["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 ($listitems[$i]["party"]==1024) print("\n"); else print("\n"); } if(($listitems[$i]["date"]!="0000-00-00")&&(strlen($listitems[$i]["date"])>0)) { $rdate=explode("-",$listitems[$i]["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 ($listitems[$i]["voteup"]) { print("\n"); } else {print("\n"); } if ($listitems[$i]["votepig"]) { print("\n"); } else {print("\n"); } if ($listitems[$i]["votedown"]) { print("\n"); } else {print("\n"); } if($listitems[$i]["voteavg"]>0) $thumbgfx="gfx/rulez.gif"; elseif($listitems[$i]["voteavg"]==0) $thumbgfx="gfx/isok.gif"; else $thumbgfx="gfx/sucks.gif"; printf("\n",$listitems[$i]["voteavg"]); //popularity bar print("\n"); */ /* ?> */ elseif ($listitems[$i]["type"]=="user"): ?> ".$listitems[$i]["itemid"]."
"); ?> "); if($which): if(count($lists)!=0): ?>
".$lists[$i]["name"]." - ".$lists[$i]["desc"]); print("".$lists[$i]["name"].""); if($SESSION_LEVEL=='administrator' || $SESSION_LEVEL=='moderator' || $SESSION_LEVEL=='gloperator') print(" [editlist]\n"); $query = "SELECT upkeeper FROM lists where id='".$lists[$i]["id"]."'"; $result=mysql_query($query); $listupkeeper=mysql_result($result,0); if($_SESSION["SCENEID_ID"]==$listupkeeper || $SESSION_LEVEL=='administrator' || $SESSION_LEVEL=='moderator' || $SESSION_LEVEL=='gloperator') { print(" [add item]\n"); print(" [del item]\n"); } ?>

congratulations!! you just found a non existant list!!!!11


name

desc

upkeeper

no list name beginning with a yet =(

".$lists[$i]["name"]); print(""); if($SESSION_LEVEL=='administrator' || $SESSION_LEVEL=='moderator' || $SESSION_LEVEL=='gloperator') print(" [editlist]\n"); print("".$lists[$i]["desc"]."".$lists[$i]["nickname"]."
.gif" width="13" height="12" border="0">
type
.gif" width="13" height="12" border="0">
prodname
.gif" width="13" height="12" border="0">
platform
.gif" width="13" height="12" border="0">
release party
.gif" width="13" height="12" border="0">
release date
piggie sucks
.gif" width="13" height="12" border="0">
avg
".$listitems[$i]["type"]."
"); if(count($sceneorgrecommends)): print(""); endif; if($listitems[$i]["cdc"]): print(""); endif; print(""); $platforms = explode(",", $listitems[$i]["platform"]); for($kkk=0; $kkk
"); } print("
"); for($k=0;$k"); } print("

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

">
"> web]\n"); ?>
"> web]\n"); if($listitems[$i]["groupcsdb"]) print(" [csdb]\n"); if($listitems[$i]["groupzxdemo"]) print(" [zxdemo]\n"); ?>
added on the for ">  
">" width="16" height="16" border="0">