From 033cb3704c47461edaf556e5ab5c60c044c53122 Mon Sep 17 00:00:00 2001 From: Laurent Raufaste Date: Tue, 7 May 2013 21:07:27 -0400 Subject: [PATCH] Whitespace cleaning --- party.php | 75 +++++++++++++++++++++++++++---------------------------- 1 file changed, 37 insertions(+), 38 deletions(-) diff --git a/party.php b/party.php index b4b5cbc..4da2671 100644 --- a/party.php +++ b/party.php @@ -14,7 +14,7 @@ function goodfleche($wanted,$current) { return $fleche; } -function cmpyears($a, $b) +function cmpyears($a, $b) { if ($a["py"] == $b["py"]) { @@ -23,20 +23,20 @@ function cmpyears($a, $b) return ($a["py"] < $b["py"]) ? -1 : 1; } -function pushinvit($a, $b) +function pushinvit($a, $b) { if ($a["partycompo"]=="invit") return -1; else if ($b["partycompo"]=="invit") return 1; if ($a["partycompo"]=="none") return 1; else if ($b["partycompo"]=="none") return -1; - else if ($a["partycompo"]==$b["partycompo"]) + else if ($a["partycompo"]==$b["partycompo"]) { return ($a["party_place"] < $b["party_place"]) ? -1 : 1; } else return ($a["partycompo"] < $b["partycompo"]) ? -1 : 1; } -function reorder_type($a, $b) +function reorder_type($a, $b) { if ($a["type"] == $b["type"]) { @@ -45,7 +45,7 @@ function reorder_type($a, $b) return ($a["type"] < $b["type"]) ? -1 : 1; } -function reorder_partycompo($a, $b) +function reorder_partycompo($a, $b) { if ($a["partycompo"] == $b["partycompo"]) { @@ -54,7 +54,7 @@ function reorder_partycompo($a, $b) return ($a["partycompo"] < $b["partycompo"]) ? -1 : 1; } -function reorder_name($a, $b) +function reorder_name($a, $b) { if (strtolower($a["name"]) == strtolower($b["name"])) { @@ -63,7 +63,7 @@ function reorder_name($a, $b) return (strtolower($a["name"]) < strtolower($b["name"])) ? -1 : 1; } -function reorder_platform($a, $b) +function reorder_platform($a, $b) { if ($a["platform"] == $b["platform"]) { @@ -72,7 +72,7 @@ function reorder_platform($a, $b) return ($a["platform"] < $b["platform"]) ? -1 : 1; } -function reorder_views($a, $b) +function reorder_views($a, $b) { if ($a["views"] == $b["views"]) { @@ -81,7 +81,7 @@ function reorder_views($a, $b) return ($a["views"] > $b["views"]) ? -1 : 1; } -function reorder_thumbup($a, $b) +function reorder_thumbup($a, $b) { if ($a["voteup"] == $b["voteup"]) { @@ -90,7 +90,7 @@ function reorder_thumbup($a, $b) return ($a["voteup"] > $b["voteup"]) ? -1 : 1; } -function reorder_thumbpig($a, $b) +function reorder_thumbpig($a, $b) { if ($a["votepig"] == $b["votepig"]) { @@ -100,7 +100,7 @@ function reorder_thumbpig($a, $b) } -function reorder_thumbdown($a, $b) +function reorder_thumbdown($a, $b) { if ($a["votedown"] == $b["votedown"]) { @@ -109,7 +109,7 @@ function reorder_thumbdown($a, $b) return ($a["votedown"] > $b["votedown"]) ? -1 : 1; } -function reorder_avg($a, $b) +function reorder_avg($a, $b) { if ($a["voteavg"] == $b["voteavg"]) { @@ -149,7 +149,7 @@ if ($partyaka) $partyaka = array_unique($partyaka); } -if (count($partyaka)) +if (count($partyaka)) { $s = implode(",",$partyaka); $query = sprintf("SELECT * from partiesaka WHERE party1 IN (%s) OR party2 IN (%s)",$s,$s); @@ -198,11 +198,11 @@ $zxdemoflag=0; for($i=0;$i27): if (strlen($prods[$i]["groupn1"])>10 && $prods[$i]["groupacron1"]) $prods[$i]["groupn1"]=$prods[$i]["groupacron1"]; if (strlen($prods[$i]["groupn2"])>10 && $prods[$i]["groupacron2"]) $prods[$i]["groupn2"]=$prods[$i]["groupacron2"]; @@ -258,7 +258,7 @@ for($i=0;$i10 && $tmp["groupacron2"]) $tmp["groupn2"]=$tmp["groupacron2"]; if (strlen($tmp["groupn3"])>10 && $tmp["groupacron3"]) $tmp["groupn3"]=$tmp["groupacron3"]; endif; - + $tquery="select platforms.name from prods_platforms, platforms where prods_platforms.prod='".$tmp["id"]."' and platforms.id=prods_platforms.platform"; $tresult=mysql_query($tquery); $check=0; @@ -352,7 +351,7 @@ while($tmp=mysql_fetch_array($result)) { $tmp["platform"].=$ttmp["name"]; } // print($tquery."<-".$tmp["platform"]); - + $prods[]=$tmp; $extracount++; } @@ -362,7 +361,7 @@ if ($extracount) { switch($order) { case "type": usort($prods, "reorder_type"); break; - case "compo": usort($prods, "reorder_partycompo"); + case "compo": usort($prods, "reorder_partycompo"); usort($prods, "pushinvit"); break; case "name": usort($prods, "reorder_name"); break; //case "platform": usort($prods, "reorder_platform"); break; @@ -434,7 +433,7 @@ for($i=1;$i+download] - + [">slengpung] @@ -444,7 +443,7 @@ for($i=1;$i+slengpung] - + [">csdb] @@ -452,7 +451,7 @@ for($i=1;$i+csdb] - + [">zxdemo] @@ -460,7 +459,7 @@ for($i=1;$i+zxdemo] - + [">artcity] @@ -468,7 +467,7 @@ for($i=1;$i+artcity] - +
@@ -504,7 +503,7 @@ for($i=1;$i - + @@ -550,7 +549,7 @@ for($i=1;$i - +
@@ -576,7 +575,7 @@ for($i=1;$i.gif" width="13" height="12" border="0">
- µ + ?
@@ -613,7 +612,7 @@ for($i=1;$i">
"); for($k=0;$k"); endif; - - //if($prods[$i]["cdc"]) print("\"cdc\"".$prods[$i]["cdc"]); - - + + //if($prods[$i]["cdc"]) print("\"cdc\"".$prods[$i]["cdc"]); + + ?> @@ -754,7 +753,7 @@ for($i=1;$i -

you sure it took place that year?

*clack* (\/) O ô (\/) *clack*"); ?>
+

you sure it took place that year?

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

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