From afa8bee4c31f0808257d566f1a5e9f51dedc4a76 Mon Sep 17 00:00:00 2001 From: Laurent Raufaste Date: Tue, 7 May 2013 20:22:01 -0400 Subject: [PATCH] Whitespace stuff --- prod.php | 88 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/prod.php b/prod.php index 11e86eb..433ff11 100644 --- a/prod.php +++ b/prod.php @@ -5,12 +5,12 @@ require("include/top.php"); require("include/libbb.php"); require("include/awardscategories.inc.php"); -if ($_COOKIES) foreach( $_COOKIES as $key => $val ) -{ +if ($_COOKIES) foreach( $_COOKIES as $key => $val ) +{ $trimmedKey = trim( key ); if( $trimmedKey != $key ) $_COOKIES[ $trimmedKey ] = $val; - + } $query="SELECT MAX(id) FROM prods"; @@ -130,7 +130,7 @@ $query="select platforms.name, platforms.icon from prods_platforms, platforms wh } for ($i=0; $i - + @@ -344,12 +344,12 @@ if(file_exists("screenshots/".$prod["id"].".jpg")) { - "> border="0" title="screenshot added on the dt,0,10)?> by nick)?>">
@@ -478,10 +478,10 @@ if(file_exists("screenshots/".$prod["id"].".jpg")) { "); - else: + else: if($_SESSION["SCENEID_ID"]): ?> n/a [">+]
- n/a + n/a @@ -499,7 +499,7 @@ if(file_exists("screenshots/".$prod["id"].".jpg")) { case 61: case 71: case 81: - case 91: $placeadj="st"; + case 91: $placeadj="st"; print($prod["party_place"]."".$placeadj."
"); break; case 2: @@ -510,7 +510,7 @@ if(file_exists("screenshots/".$prod["id"].".jpg")) { case 62: case 72: case 82: - case 92: $placeadj="nd"; + case 92: $placeadj="nd"; print($prod["party_place"]."".$placeadj."
"); break; case 3: @@ -521,7 +521,7 @@ if(file_exists("screenshots/".$prod["id"].".jpg")) { case 63: case 73: case 83: - case 93: $placeadj="rd"; + case 93: $placeadj="rd"; print($prod["party_place"]."".$placeadj."
"); break; case 97: print("disqualified
"); @@ -538,19 +538,19 @@ if(file_exists("screenshots/".$prod["id"].".jpg")) { n/a [">+]
- n/a + n/a - - - + + + n/a [&what=">+]
- n/a + n/a @@ -592,7 +592,7 @@ if(file_exists("screenshots/".$prod["id"].".jpg")) { case 61: case 71: case 81: - case 91: $placeadj="st"; + case 91: $placeadj="st"; print($prodotherparties[$i]["party_place"]."".$placeadj."
"); break; case 2: @@ -603,7 +603,7 @@ if(file_exists("screenshots/".$prod["id"].".jpg")) { case 62: case 72: case 82: - case 92: $placeadj="nd"; + case 92: $placeadj="nd"; print($prodotherparties[$i]["party_place"]."".$placeadj."
"); break; case 3: @@ -614,7 +614,7 @@ if(file_exists("screenshots/".$prod["id"].".jpg")) { case 63: case 73: case 83: - case 93: $placeadj="rd"; + case 93: $placeadj="rd"; print($prodotherparties[$i]["party_place"]."".$placeadj."
"); break; case 97: print("disqualified
"); @@ -630,7 +630,7 @@ if(file_exists("screenshots/".$prod["id"].".jpg")) { else: if($_SESSION["SCENEID_ID"]): ?> n/a [&what=">+]
- n/a + n/a @@ -638,9 +638,9 @@ if(file_exists("screenshots/".$prod["id"].".jpg")) { - - - + + + related : @@ -668,21 +668,21 @@ if(file_exists("screenshots/".$prod["id"].".jpg")) { - + - + - + @@ -700,7 +700,7 @@ if(file_exists("screenshots/".$prod["id"].".jpg")) { - "); for($k=0;$k - + 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"].""; else $cdcprint=""; - + printf( "". "". @@ -858,7 +858,7 @@ if(file_exists("screenshots/".$prod["id"].".jpg")) { -   +   @@ -946,9 +946,9 @@ foreach($othercdc as $v) { printf("", $o->id, $o->avatar, $o->id, $o->nickname); } -?> +?>
added on the #c"> by ">   ">" width="16" height="16" border="0" title="">
%s
- @@ -1052,7 +1052,7 @@ function checkWarning(cmt) } } //--> - +
BB Code is allowed here
@@ -1064,7 +1064,7 @@ function checkWarning(cmt) document.write('
'); document.write(''); //--> - +
@@ -1094,7 +1094,7 @@ function checkWarning(cmt)

- probably with a very good reason too!

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