diff --git a/add.php b/add.php index 52c235c..5320fc5 100644 --- a/add.php +++ b/add.php @@ -27,7 +27,7 @@ switch ($_POST["type"]) { if($_SESSION["SCENEID_ID"]==78655) $errormessage[]="nope."; - if($_REQUEST["message"]&&!$errormessage) + if($_REQUEST["message"]&&!$errormessage) { $who=$_SESSION["SCENEID_ID"]; $query="SELECT who FROM oneliner ORDER BY quand DESC LIMIT 1"; @@ -37,14 +37,14 @@ switch ($_POST["type"]) { $result=mysql_query($query); $lastmine=mysql_fetch_assoc($result); - if($lastone["who"]!=$who && trim($lastmine["message"])!=trim($message)) + if($lastone["who"]!=$who && trim($lastmine["message"])!=trim($message)) { $title="You've successfully added the following oneline:"; $query="INSERT INTO oneliner SET who=".$who.", quand=NOW(), message='".addslashes($message)."'"; mysql_query($query); //$title="HOLD ON A SEC (i'm fixing shit.) --garg"; } - else + else { $title="ERROR! DOUBLEPOST == ROB IS JARIG!"; } @@ -54,12 +54,12 @@ switch ($_POST["type"]) { // endif; break; - case "topic": + case "topic": $url="bbs.php"; //if (stristr($topic,"random")!==FALSE) if (date("Y-m-d")=="2008-11-19") $errormessage[] = "bbs is closed today. go use the other 5000 threads for a change."; - + if($topic&&$message&&!$errormessage) { $query="SELECT topic FROM bbs_topics ORDER BY lastpost DESC LIMIT 1"; @@ -90,7 +90,7 @@ switch ($_POST["type"]) { die("FU!"); if (strstr($message,"netetrader.com")!==false) die("FU!"); - + $query="SELECT author,topic,post FROM bbs_posts ORDER BY added DESC LIMIT 1"; $result=mysql_query($query); $lastone=mysql_fetch_assoc($result); @@ -124,7 +124,7 @@ switch ($_POST["type"]) { $message=$comment; if (strstr($comment,"freecliptv.samsonshome.de")!==false) $errormessage[] = "please post video links to this thread"; - + if (strstr($comment,"EmwW_6kUdHw")!==false) $errormessage[] = "please post video links to this thread - also, your link has been removed from youtube."; @@ -156,7 +156,7 @@ switch ($_POST["type"]) { $timestart = microtime_float(); mysql_query($query); $time["query3"] = microtime_float() - $timestart; - + //update vote info unset($commentss); //unset($checktable); @@ -193,7 +193,7 @@ switch ($_POST["type"]) { $timestart = microtime_float(); mysql_query($query); $time["query5"] = microtime_float() - $timestart; - + } $timestart = microtime_float(); //create_cache_module("latest_comments", "SELECT prods.id,prods.name,prods.type,prods.group1,prods.group2,prods.group3,comments.who,users.nickname,users.avatar FROM prods JOIN comments LEFT JOIN users ON users.id=comments.who WHERE comments.which=prods.id ORDER BY comments.quand DESC LIMIT 20",1); diff --git a/affil.php b/affil.php index 97b1d6c..5b3f530 100644 --- a/affil.php +++ b/affil.php @@ -45,7 +45,7 @@ $typ = explode(",", $o->p1type); foreach($typ as $p) { ?> +?> p1name?> @@ -57,7 +57,7 @@ $typ = explode(",", $o->p2type); foreach($typ as $p) { ?> +?> p2name?> diff --git a/api/compo_results.php b/api/compo_results.php index 6cd4225..c5c0067 100644 --- a/api/compo_results.php +++ b/api/compo_results.php @@ -21,4 +21,4 @@ if (!($_GET['latest'] == '1')) { echo $row['prod'] . "\t" . $row['party'] . "\t" . $row['party_year'] . "\t" . $row['partycompo'] . "\t" . $row['party_place'] . "\n"; } } -?> \ No newline at end of file +?> diff --git a/api/downloads.php b/api/downloads.php index 92332cd..88180ca 100644 --- a/api/downloads.php +++ b/api/downloads.php @@ -8,4 +8,4 @@ $result = mysql_query($query); while($row = mysql_fetch_array($result)) { echo $row['prod'] . "\t" . $row['type'] . "\t" . $row['link'] . "\n"; } -?> \ No newline at end of file +?> diff --git a/api/groups.php b/api/groups.php index 8220ca7..8dbc4d2 100644 --- a/api/groups.php +++ b/api/groups.php @@ -12,4 +12,4 @@ while($row = mysql_fetch_array($result)) { echo $row['id'] . "\t" . iconv('iso-8859-1', 'utf-8', $row['name']) . "\t" . $row['web'] . "\t" . $row['csdb'] . "\t" . $row['zxdemo'] . "\t" . iconv('iso-8859-1', 'utf-8', $row['acronym']) . "\n"; } -?> \ No newline at end of file +?> diff --git a/api/parties.php b/api/parties.php index 993fcee..6677c84 100644 --- a/api/parties.php +++ b/api/parties.php @@ -11,4 +11,4 @@ $result = mysql_query($query); while($row = mysql_fetch_array($result)) { echo $row['id'] . "\t" . iconv('iso-8859-1', 'utf-8', $row['name']) . "\t" . $row['web'] . "\n"; } -?> \ No newline at end of file +?> diff --git a/api/party_years.php b/api/party_years.php index f188d3e..6ccf807 100644 --- a/api/party_years.php +++ b/api/party_years.php @@ -8,4 +8,4 @@ $result = mysql_query($query); while($row = mysql_fetch_array($result)) { echo $row['id'] . "\t" . $row['party'] . "\t" . $row['year'] . "\t" . $row['csdb'] . "\t" . $row['zxdemo'] . "\t" . $row['slengpung'] . "\n"; } -?> \ No newline at end of file +?> diff --git a/api/platforms.php b/api/platforms.php index 208a717..ca86044 100644 --- a/api/platforms.php +++ b/api/platforms.php @@ -8,4 +8,4 @@ $result = mysql_query($query); while($row = mysql_fetch_array($result)) { echo $row['id'] . "\t" . $row['name'] . "\t" . $row['icon'] . "\n"; } -?> \ No newline at end of file +?> diff --git a/api/prods.php b/api/prods.php index 78b65e8..38dc1e9 100644 --- a/api/prods.php +++ b/api/prods.php @@ -25,4 +25,4 @@ while($bailout < 1000000) { break; } } -?> \ No newline at end of file +?> diff --git a/api/screenshots.php b/api/screenshots.php index a086ee5..ac3dc47 100644 --- a/api/screenshots.php +++ b/api/screenshots.php @@ -20,4 +20,4 @@ while($row = mysql_fetch_array($result)) { } echo $row['id'] . "\t" . $row['prod'] . "\t" . $format . "\n"; } -?> \ No newline at end of file +?> diff --git a/api/user_level.php b/api/user_level.php index 67f0b22..f90da35 100644 --- a/api/user_level.php +++ b/api/user_level.php @@ -10,4 +10,4 @@ if ($row = mysql_fetch_array($result)) { } else { echo 'none'; } -?> \ No newline at end of file +?> diff --git a/api/zx_demos_without_zxdemo.php b/api/zx_demos_without_zxdemo.php index a074d26..4e7cc39 100644 --- a/api/zx_demos_without_zxdemo.php +++ b/api/zx_demos_without_zxdemo.php @@ -8,4 +8,4 @@ $result = mysql_query($query); while($row = mysql_fetch_array($result)) { echo $row['id'] . '|' . $row['name'] . '|' . $row['download'] . "\n"; } -?> \ No newline at end of file +?> diff --git a/ascii.php b/ascii.php index b082108..b5d71e2 100644 --- a/ascii.php +++ b/ascii.php @@ -21,7 +21,7 @@ function write($txt,$a,$b,$br,$bg,$bb) imagecolorset($fnt,$f2,($br+255)/2,($bg+255)/2,($bb+255)/2); imagecolorset($fnt,$f3,255,255,255); for($i=0;$i \ No newline at end of file +?> diff --git a/awardscandidates.php b/awardscandidates.php index 0d57cc2..53b64fd 100644 --- a/awardscandidates.php +++ b/awardscandidates.php @@ -12,8 +12,8 @@ print("
"); $year = $sceneorgyear; if (!$year) die("all done for now, see you next year!"); - -if ($_SESSION["SCENEID_ID"]) + +if ($_SESSION["SCENEID_ID"]) { if ($action=='alter') { @@ -29,7 +29,7 @@ if ($_SESSION["SCENEID_ID"]) $sqlc = array(); $prod = (int)$prod; - + if ($_POST["cat"]) { foreach ($_POST["cat"] as $v) $sqlc[(int)$v] = (int)$prod; @@ -39,18 +39,18 @@ if ($_SESSION["SCENEID_ID"]) if (isset($_POST["cat".$x])) $sqlc[$x] = (int)$_POST["cat".$x]; } - + foreach ($sqlc as $k=>$v) { $v = (int)$v; if ($v >= 0) { $r = mysql_fetch_object(mysql_query(sprintf("select date from prods where id=%d",$v))); if (substr($r->date,0,4)!=$year) continue; - + $query = "update awardscand_".$year." set cat".$k."='".(int)$v."' where user='".$_SESSION["SCENEID_ID"]."'"; mysql_query($query); } - } + } } $query = "SELECT * FROM awardscand_".$year." WHERE user='".$_SESSION["SCENEID_ID"]."'"; @@ -132,7 +132,7 @@ foreach($awardscat[$year] as $x=>$name) { most outstanding 4k intro from . -\1'; - // [url=xxxx://www.phpbb.com]phpBB[/url] code.. + // [url=xxxx://www.phpbb.com]phpBB[/url] code.. $patterns[2] = "#\[url=([a-z]+?://){1}(.*?)\](.*?)\[/url\]#si"; $replacements[2] = '\3'; @@ -148,7 +148,7 @@ function bbdecode($message) { /** * James Atkinson - Feb 5, 2001 * This function does exactly what the PHP4 function array_push() does - * however, to keep phpBB compatable with PHP 3 we had to come up with out own + * however, to keep phpBB compatable with PHP 3 we had to come up with out own * method of doing it. */ function bbcode_array_push(&$stack, $value) { @@ -181,11 +181,11 @@ function bbcode_array_pop(&$stack) { /** * Nathan Codding - Jan. 12, 2001. * Performs [quote][/quote] bbencoding on the given string, and returns the results. - * Any unmatched "[quote]" or "[/quote]" token will just be left alone. + * Any unmatched "[quote]" or "[/quote]" token will just be left alone. * This works fine with both having more than one quote in a message, and with nested quotes. * Since that is not a regular language, this is actually a PDA and uses a stack. Great fun. * - * Note: This function assumes the first character of $message is a space, which is added by + * Note: This function assumes the first character of $message is a space, which is added by * bbencode(). */ function bbencode_quote($message) @@ -224,7 +224,7 @@ function bbencode_quote($message) // Check if we've already found a matching starting tag. if (sizeof($stack) > 0) { - // There exists a starting tag. + // There exists a starting tag. // We need to do 2 replacements now. $start_index = bbcode_array_pop($stack); @@ -241,7 +241,7 @@ function bbencode_quote($message) $message .= $between_tags . ""; $message .= $after_end_tag; - // Now.. we've screwed up the indices by changing the length of the string. + // Now.. we've screwed up the indices by changing the length of the string. // So, if there's anything in the stack, we want to resume searching just after it. // otherwise, we go back to the start. if (sizeof($stack) > 0) @@ -277,11 +277,11 @@ function bbencode_quote($message) /** * Nathan Codding - Jan. 12, 2001. * Performs [code][/code] bbencoding on the given string, and returns the results. - * Any unmatched "[code]" or "[/code]" token will just be left alone. + * Any unmatched "[code]" or "[/code]" token will just be left alone. * This works fine with both having more than one code block in a message, and with nested code blocks. * Since that is not a regular language, this is actually a PDA and uses a stack. Great fun. * - * Note: This function assumes the first character of $message is a space, which is added by + * Note: This function assumes the first character of $message is a space, which is added by * bbencode(). */ function bbencode_code($message, $is_html_disabled) @@ -297,7 +297,7 @@ function bbencode_code($message, $is_html_disabled) // $message = preg_replace("/$str_to_match/si", "
Code:
$after_replace
", $message); - // Second things second: we have to watch out for stuff like [1code] or [/code1] in the + // Second things second: we have to watch out for stuff like [1code] or [/code1] in the // input.. So escape them to [#1code] or [/code#1] for now: $message = preg_replace("/\[([0-9]+?)code\]/si", "[#\\1code]", $message); $message = preg_replace("/\[\/code([0-9]+?)\]/si", "[/code#\\1]", $message); @@ -329,7 +329,7 @@ function bbencode_code($message, $is_html_disabled) // Check if we've already found a matching starting tag. if (sizeof($stack) > 0) { - // There exists a starting tag. + // There exists a starting tag. $curr_nesting_depth = sizeof($stack); $max_nesting_depth = ($curr_nesting_depth > $max_nesting_depth) ? $curr_nesting_depth : $max_nesting_depth; @@ -349,7 +349,7 @@ function bbencode_code($message, $is_html_disabled) $message .= $between_tags . "[/code" . $curr_nesting_depth . "]"; $message .= $after_end_tag; - // Now.. we've screwed up the indices by changing the length of the string. + // Now.. we've screwed up the indices by changing the length of the string. // So, if there's anything in the stack, we want to resume searching just after it. // otherwise, we go back to the start. if (sizeof($stack) > 0) @@ -422,11 +422,11 @@ function bbencode_code($message, $is_html_disabled) /** * Nathan Codding - Jan. 12, 2001. * Performs [list][/list] and [list=?][/list] bbencoding on the given string, and returns the results. - * Any unmatched "[list]" or "[/list]" token will just be left alone. + * Any unmatched "[list]" or "[/list]" token will just be left alone. * This works fine with both having more than one list in a message, and with nested lists. * Since that is not a regular language, this is actually a PDA and uses a stack. Great fun. * - * Note: This function assumes the first character of $message is a space, which is added by + * Note: This function assumes the first character of $message is a space, which is added by * bbencode(). */ function bbencode_list($message) @@ -478,7 +478,7 @@ function bbencode_list($message) // Check if we've already found a matching starting tag. if (sizeof($stack) > 0) { - // There exists a starting tag. + // There exists a starting tag. // We need to do 2 replacements now. $start = bbcode_array_pop($stack); $start_index = $start[0]; @@ -510,7 +510,7 @@ function bbencode_list($message) $message .= $after_end_tag; - // Now.. we've screwed up the indices by changing the length of the string. + // Now.. we've screwed up the indices by changing the length of the string. // So, if there's anything in the stack, we want to resume searching just after it. // otherwise, we go back to the start. if (sizeof($stack) > 0) @@ -549,7 +549,7 @@ function bbencode_list($message) * Nathan Codding - Oct. 30, 2000 * * Escapes the "/" character with "\/". This is useful when you need - * to stick a runtime string into a PREG regexp that is being delimited + * to stick a runtime string into a PREG regexp that is being delimited * with slashes. */ function escape_slashes($input) @@ -564,7 +564,7 @@ function escape_slashes($input) * - Goes through the given string, and replaces xxxx://yyyy with an HTML tag linking * to that URL * - Goes through the given string, and replaces www.xxxx.yyyy[zzzz] with an HTML tag linking - * to http://www.xxxx.yyyy[/zzzz] + * to http://www.xxxx.yyyy[/zzzz] * - Goes through the given string, and replaces xxxx@yyyy with an HTML mailto: tag linking * to that email address * - Only matches these 2 patterns either after a space, or at the beginning of a line @@ -609,7 +609,7 @@ function make_clickable($text) { * - Does not distinguish between "www.xxxx.yyyy" and "http://aaaa.bbbb" type URLs. * */ - + function undo_make_clickable($text) { $text = preg_replace("#.*?#i", "\\1", $text); @@ -653,7 +653,7 @@ function normalize_whitespace($str) } $output .= $tok[$tok_count - 1]; - + return $output; } diff --git a/include/sceneidlib.inc.php b/include/sceneidlib.inc.php index 363817c..25b9352 100644 --- a/include/sceneidlib.inc.php +++ b/include/sceneidlib.inc.php @@ -11,7 +11,7 @@ * * 200701 Nicolas Leveille * Updated to run over SSL, optionaly using certificates (to enable -* registration capabilities, for portal class 1-2) +* registration capabilities, for portal class 1-2) */ @include_once("sceneidlib.config.php"); @@ -57,7 +57,7 @@ class FopenStream extends Stream class CurlStream extends Stream { /** - * options can be: + * options can be: * CURLOPT_CAINFO : path for the CA certificate to use * => implies peer verification * CURLOPT_SSLCERT : path for the certificate to use @@ -142,17 +142,17 @@ class SceneID $out = "GET ".$url["path"]."?".$url["query"]." HTTP/1.1\r\n"; $out .= "Host: ".$url["host"]."\r\n"; $out .= "Connection: Close\r\n\r\n"; - + fwrite($f, $out); $data = NULL; while (!feof($f)) $data .= fgets($f, 4096); fclose($f); list($header,$data) = explode("\r\n\r\n",$data,2); - return $data; + return $data; } } - + //private static function parseSceneIdData($command, $param=NULL) { @@ -171,7 +171,7 @@ class SceneID SceneID::$portals = NULL; SceneID::$cookie = NULL; SceneID::$file = NULL; - + if(is_array($param)) { while(list($k,$v)=each($param)) @@ -222,7 +222,7 @@ class SceneID $returnvalue = -1; $curdata = ""; $curlevel = 0; - + if(!strcasecmp($vals[0]["tag"], "sceneid")) { while(list($k,$v)=each($vals)) @@ -233,11 +233,11 @@ class SceneID if(strtolower($v["tag"])=="email"&&$v["attributes"]["HIDDEN"]) { SceneID::$hidden = $v["attributes"]["HIDDEN"]; SceneID::$user["hidden"] = $v["attributes"]["HIDDEN"]; - } + } else if(strtolower($v["tag"])=="emailhidden") { SceneID::$hidden = $v["value"]; SceneID::$user["hidden"] = $v["value"]; - } + } else if(strtolower($v["tag"])=="country"&&$v["attributes"]["ID"]) { SceneID::$country = $v["attributes"]["ID"]; @@ -329,10 +329,10 @@ class SceneID } } } - + SceneID::$userID = SceneID::$user["id"]; SceneID::$fileID = SceneID::$file["id"]; - + $tmpArray = array("returnvalue" => $returnvalue, "message" => SceneID::$message); if(isset(SceneID::$userID)) $tmpArray = array_merge($tmpArray, array("userID" => SceneID::$userID)); @@ -347,9 +347,9 @@ class SceneID return $tmpArray; } } - + /* Functions for all the SceneID enabled sites (minor website / portal class 4 or less). */ - + public static function loginUser($login, $password, $ip, $permanent=NULL, $externalid=NULL) { return SceneID::parseSceneIdData("loginUserMD5", array("login" => $login, "password" => md5($password), @@ -365,7 +365,7 @@ class SceneID { return SceneID::logoutUser(NULL, $login); } - + public static function logoutUser_Cookie($cookie) { return SceneID::logoutUser(NULL, NULL, $cookie); @@ -375,7 +375,7 @@ class SceneID { return SceneID::parseSceneIdData("logoutUser", array("userID" => $userID, "login" => $login, "cookie" => $cookie)); } - + public static function getUserInfo_UserID($userID) { return SceneID::getUserInfo($userID); @@ -395,16 +395,16 @@ class SceneID { return SceneID::parseSceneIdData("getUserInfo", array("userID" => $userID, "login" => $login, "cookie" => $cookie)); } - + public static function getPortalList() { return SceneID::parseSceneIdData("getPortalList"); } - + /* Functions for websites (portal class 3 or less) */ - public static function setUserInfo($userID, $email=NULL, $password=NULL, $password2=NULL, - $nickname=NULL, $firstname=NULL, $lastname=NULL, + public static function setUserInfo($userID, $email=NULL, $password=NULL, $password2=NULL, + $nickname=NULL, $firstname=NULL, $lastname=NULL, $url=NULL, $showinfo=NULL, $birthdate=NULL, $country=NULL) { $params["userID"] = $userID; @@ -448,7 +448,7 @@ class SceneID { return SceneID::parseSceneIdData("requestNewUserPassword", array("userID" => $userID, "login" => $login)); } - + /* Functions for portals (portal class 2 or less) */ public static function renewUserPassword($key) @@ -456,7 +456,7 @@ class SceneID return SceneID::parseSceneIdData("renewUserPassword", array("key" => $key)); } - public static function registerUser($login, $email, $password, $password2, $nickname=NULL, $firstname=NULL, $lastname=NULL, + public static function registerUser($login, $email, $password, $password2, $nickname=NULL, $firstname=NULL, $lastname=NULL, $url=NULL, $showinfo=NULL, $birthdate=NULL, $country=NULL) { $params["login"] = $login; @@ -486,4 +486,4 @@ class SceneID } } -?> \ No newline at end of file +?> diff --git a/lastRSS.php b/lastRSS.php index 799278b..5fd552c 100644 --- a/lastRSS.php +++ b/lastRSS.php @@ -2,11 +2,11 @@ /* ====================================================================== lastRSS 0.9.1 - + Simple yet powerfull PHP class to parse RSS files. - + by Vojtech Semecky, webmaster @ webdot . cz - + Latest version, features, manual and examples: http://lastrss.webdot.cz/ @@ -239,4 +239,4 @@ class lastRSS { } } -?> \ No newline at end of file +?> diff --git a/lists.php b/lists.php index 65b9525..4f688ae 100644 --- a/lists.php +++ b/lists.php @@ -28,7 +28,7 @@ function goodfleche($wanted,$current) { return $fleche; } -function reorder_prodtype($a, $b) +function reorder_prodtype($a, $b) { if (($a["type"] == "prod") && ($b["type"] == "prod")) { if ($a["prodtype"] == $b["prodtype"]) @@ -58,7 +58,7 @@ function reorder_prodtype($a, $b) } } -/*function reorder_date($a, $b) +/*function reorder_date($a, $b) { if ($a["date"] == $b["date"]) { @@ -67,7 +67,7 @@ function reorder_prodtype($a, $b) return ($a["date"] > $b["date"]) ? -1 : 1; } -function reorder_id($a, $b) +function reorder_id($a, $b) { if ($a["id"] == $b["id"]) { @@ -76,7 +76,7 @@ function reorder_id($a, $b) return ($a["id"] > $b["id"]) ? -1 : 1; }*/ -function reorder_id_and_date($a, $b) +function reorder_id_and_date($a, $b) { if (($a["type"] == "prod") && ($b["type"] == "prod")) { if ($a["date"] == $b["date"]) @@ -107,7 +107,7 @@ function reorder_id_and_date($a, $b) } -function reorder_partycompo($a, $b) +function reorder_partycompo($a, $b) { if (($a["type"] == "prod") && ($b["type"] == "prod")) { if ($a["partycompo"] == $b["partycompo"]) @@ -137,7 +137,7 @@ function reorder_partycompo($a, $b) } } -function reorder_name($a, $b) +function reorder_name($a, $b) { if (($a["type"] == "prod") && ($b["type"] == "prod")) { if (strtolower($a["name"]) == strtolower($b["name"])) @@ -167,7 +167,7 @@ function reorder_name($a, $b) } } -function reorder_platform($a, $b) +function reorder_platform($a, $b) { if (($a["type"] == "prod") && ($b["type"] == "prod")) { if ($a["platform"] == $b["platform"]) @@ -197,7 +197,7 @@ function reorder_platform($a, $b) } } -/*function reorder_views($a, $b) +/*function reorder_views($a, $b) { if ($a["views"] == $b["views"]) { @@ -206,7 +206,7 @@ function reorder_platform($a, $b) return ($a["views"] > $b["views"]) ? -1 : 1; } -function reorder_thumbup($a, $b) +function reorder_thumbup($a, $b) { if ($a["voteup"] == $b["voteup"]) { @@ -215,7 +215,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"]) { @@ -225,7 +225,7 @@ function reorder_thumbpig($a, $b) } -function reorder_thumbdown($a, $b) +function reorder_thumbdown($a, $b) { if ($a["votedown"] == $b["votedown"]) { @@ -234,7 +234,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"]) { @@ -381,11 +381,11 @@ if($which) { } switch($prodorder) { - case "type": usort($listitems, "reorder_id_and_date"); + 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"); + 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; @@ -411,7 +411,7 @@ if($which) {
- ".$lists[$i]["name"]." - ".$lists[$i]["desc"]); print("".$lists[$i]["name"].""); @@ -593,7 +593,7 @@ if($which) { print("\n"); } //print("pokaman"); - if ($listitems[$i]["type"]=="prod"): + if ($listitems[$i]["type"]=="prod"): $typess = explode(",", $listitems[$i]["prodtype"]); print(""); $platforms = explode(",", $listitems[$i]["platform"]); - for($kkk=0; $kkk
"); } @@ -648,7 +648,7 @@ if($which) { case 61: case 71: case 81: - case 91: $placeadj="st"; + case 91: $placeadj="st"; print("
\n"); break; case 2: @@ -659,7 +659,7 @@ if($which) { case 62: case 72: case 82: - case 92: $placeadj="nd"; + case 92: $placeadj="nd"; print("\n"); break; case 3: @@ -670,7 +670,7 @@ if($which) { case 63: case 73: case 83: - case 93: $placeadj="rd"; + case 93: $placeadj="rd"; print("\n"); break; case 97: print("\n"); @@ -683,15 +683,15 @@ if($which) { print("\n"); break; } - } else + } else { - $placeadj = "??"; + $placeadj = "??"; print("\n"); } } else { - if ($listitems[$i]["party"]==1024) print("\n"); + if ($listitems[$i]["party"]==1024) print("\n"); else print("\n"); - } + } if(($listitems[$i]["date"]!="0000-00-00")&&(strlen($listitems[$i]["date"])>0)) { @@ -713,7 +713,7 @@ if($which) { } print("\n"); } else { - print("\n"); + print("\n"); } /* if ($listitems[$i]["voteup"]) @@ -756,7 +756,7 @@ if($which) { ">">"> -
*/ +
*/ elseif ($listitems[$i]["type"]=="user"): ?> - +
"); @@ -624,7 +624,7 @@ if($which) { 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."
".$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
no party
??
".$rmonth." ".$rdate[0]."
 
 
@@ -771,7 +771,7 @@ if($which) { - "); - if($which): + if($which): if(count($lists)!=0): ?> \n"); } - + ?> - +
"> web]\n"); ?>
">"> web]\n"); if($listitems[$i]["groupcsdb"]) print(" [csdb]\n"); @@ -785,9 +785,9 @@ if($which) {
diff --git a/login.php b/login.php index 49d74c9..ee13874 100644 --- a/login.php +++ b/login.php @@ -22,12 +22,12 @@ $refer = $HTTP_REFERER ? $HTTP_REFERER : "index.php"; switch($returnvalue["returnvalue"]) { case 30: { // login successful - + if(authenticate($returnvalue["userID"]) != 1) // user found from pouet.net db { // no user found from pouet.net database, create a new one. $userparams = array("userID" => $returnvalue["userID"]); - + $returnvalue = $xml->parseSceneIdData("getUserInfo", $userparams); //if($returnvalue["returnvalue"]==10) $u = $returnvalue["user"]; @@ -35,24 +35,24 @@ switch($returnvalue["returnvalue"]) $query= "INSERT users SET "; $query.="id=".(int)$returnvalue["userID"].", "; $query.="nickname='".mysql_real_escape_string($u["nickname"] ? $u["nickname"] : $_REQUEST["login"])."', "; - + $entry = glob("./avatars/*.gif"); $r = $entry[array_rand($entry)]; $a = str_replace("./avatars/","",$r); - + $query.="avatar='".$a."', "; // todo $query.="lastip='".$_SERVER["REMOTE_ADDR"]."', "; $query.="lasthost='".gethostbyaddr($_SERVER["REMOTE_ADDR"])."', "; $query.="quand=NOW()"; mysql_query($query); - + authenticate($returnvalue["userID"]); } setcookie($returnvalue["cookie"]["name"], $returnvalue["cookie"]["value"], - $returnvalue["cookie"]["expires"], + $returnvalue["cookie"]["expires"], $returnvalue["cookie"]["path"], ".pouet.net"); // $cookie["path"], $cookie["domain"]); // $returnvalue["cookie["path"], "localhost"); diff --git a/logogallery.php b/logogallery.php index e5723e0..cfb1476 100644 --- a/logogallery.php +++ b/logogallery.php @@ -8,7 +8,7 @@ while ($tmp = mysql_fetch_assoc($result)) ?> @@ -32,4 +32,4 @@ foreach ($logos as $logo) { // we display each logo - \ No newline at end of file + diff --git a/logout.php b/logout.php index e0a5442..ac93209 100644 --- a/logout.php +++ b/logout.php @@ -13,13 +13,13 @@ $command = "logoutUser"; session_unset(); session_destroy(); -if($_COOKIE["SCENEID_COOKIE"]) +if($_COOKIE["SCENEID_COOKIE"]) { // setcookie("SCENEID_COOKIE","", time() - 3600, "/", "scene.org"); setcookie("SCENEID_COOKIE","", time() - 3600, "/", "pouet.net"); unset($_COOKIE["SCENEID_COOKIE"]); } -if($_COOKIE["SCENEID_SESSION"]) +if($_COOKIE["SCENEID_SESSION"]) { // setcookie("SCENEID_SESSION","", time() - 3600, "/", "scene.org"); setcookie("SCENEID_SESSION","", time() - 3600, "/", "pouet.net"); diff --git a/nfo.php b/nfo.php index 98c335d..4be5839 100644 --- a/nfo.php +++ b/nfo.php @@ -82,16 +82,16 @@ if(!$f) $f=1; diff --git a/parties.php b/parties.php index 17f9468..bd0b2d2 100644 --- a/parties.php +++ b/parties.php @@ -5,7 +5,7 @@ $order=$_REQUEST['order']; require("include/top.php"); -function cmp_year($a, $b) +function cmp_year($a, $b) { if ($a["year"] == $b["year"]) { @@ -14,7 +14,7 @@ function cmp_year($a, $b) return ($a["year"] > $b["year"]) ? -1 : 1; } -function cmp_name($a, $b) +function cmp_name($a, $b) { if (strtolower($a["name"]) == strtolower($b["name"])) { @@ -122,16 +122,16 @@ function lettermenu($pattern) { "); - $j++; + $j++; if($j%2) { print(""); } - + endif; ?> - + - - + + diff --git a/piclens/piclens.rss.php b/piclens/piclens.rss.php index 92b58bc..05514b5 100644 --- a/piclens/piclens.rss.php +++ b/piclens/piclens.rss.php @@ -18,7 +18,7 @@ $result = mysql_query($query) or die(mysql_error()); Pouet.net Piclens feeden-ushttp://feedvalidator.org/docs/rss2.html - + http://www.pouet.net/favicon.ico diff --git a/popup_avatars.php b/popup_avatars.php index f5c0592..6a24c96 100644 --- a/popup_avatars.php +++ b/popup_avatars.php @@ -18,7 +18,7 @@ function pickAvatar(s) { window.opener.document.forms[""]..value=s; window.opener.document.avatr.src='avatars/'+s; window.close(); -} +} //--> @@ -50,4 +50,4 @@ function pickAvatar(s) { - \ No newline at end of file + diff --git a/popup_groups.php b/popup_groups.php index ce24f7f..75447df 100644 --- a/popup_groups.php +++ b/popup_groups.php @@ -24,7 +24,7 @@ function lettermenu($pattern) { print(" ]
\n"); } -function cmpcomments($a, $b) +function cmpcomments($a, $b) { if ($a["lcom_quand"] == $b["lcom_quand"]) { @@ -81,7 +81,7 @@ while($tmp = mysql_fetch_array($result)) { function pickGroup(s) { window.opener.document.forms[""]..value=s; window.close(); -} +} //--> @@ -159,7 +159,7 @@ function pickGroup(s) { */ } ?> - +
- +
[ "); ?> - html + html | - "); ?>
- [ admin: upload new nfo ] diff --git a/othernfo.php b/othernfo.php index a0feda1..314fa29 100644 --- a/othernfo.php +++ b/othernfo.php @@ -42,10 +42,10 @@ if(!$f) $f=1; [ "); ?> - html + html | - "); ?>
".$parties[$i]["year"]."
"); } else { @@ -150,16 +150,16 @@ function lettermenu($pattern) { } else { print("

".$parties[$i]['year']."\n"); ?> - [">slengpung] + [">slengpung] - [">csdb] + [">csdb] [">zxdemo] @@ -170,17 +170,17 @@ function lettermenu($pattern) {
[">prods] - [&when=">results] + [&when=">results]
@@ -175,4 +175,4 @@ function pickGroup(s) { - \ No newline at end of file + diff --git a/popup_parties.php b/popup_parties.php index 1ffe92e..1379deb 100644 --- a/popup_parties.php +++ b/popup_parties.php @@ -2,7 +2,7 @@ require("include/misc.php"); conn_db(); -function cmp_year($a, $b) +function cmp_year($a, $b) { if ($a["year"] == $b["year"]) { @@ -11,7 +11,7 @@ function cmp_year($a, $b) return ($a["year"] > $b["year"]) ? -1 : 1; } -function cmp_name($a, $b) +function cmp_name($a, $b) { if (strtolower($a["name"]) == strtolower($b["name"])) { @@ -64,7 +64,7 @@ if($pattern=="#") { } else { $sqlwhere="name LIKE '".$pattern."%'"; } - + $query = "SELECT * FROM parties "; $query .= " WHERE ".$sqlwhere; $query .= " ORDER BY parties.name ASC"; @@ -91,7 +91,7 @@ while($row = mysql_fetch_assoc($result)) { function pickParty(s) { window.opener.document.forms[""]..value=s; window.close(); -} +} //--> @@ -130,7 +130,7 @@ function pickParty(s) {
@@ -146,4 +146,4 @@ function pickParty(s) { - \ No newline at end of file + diff --git a/popup_prodslastyear.php b/popup_prodslastyear.php index e0c89af..e6dacb0 100644 --- a/popup_prodslastyear.php +++ b/popup_prodslastyear.php @@ -68,7 +68,7 @@ while($tmp = mysql_fetch_array($result)) { function pickProd(s) { window.opener.document.forms[""]..value=s; window.close(); -} +} //--> @@ -148,9 +148,9 @@ function pickProd(s) { print("
@@ -166,4 +166,4 @@ function pickProd(s) { - \ No newline at end of file + diff --git a/postgraph.class.php b/postgraph.class.php index fa823b2..8672b33 100644 --- a/postgraph.class.php +++ b/postgraph.class.php @@ -4,7 +4,7 @@ // Version: 1.0 // Copyright (c) Maros Fric, qualityunit.com 2004 // All rights reserved -// +// // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either @@ -14,11 +14,11 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// +// // Copy of GNU Lesser General Public License at: http://www.gnu.org/copyleft/lesser.txt // // For support contact support@qualityunit.com @@ -27,27 +27,27 @@ class PostGraph { var $img; - + var $graphWidth; // Graph Image Width var $graphHeight; // Graph Image Height var $textPadding; // Graph Text Padding - + var $graphTitle; // Graph main Title at the top center var $graphXTitle; // Graph Title at x axe var $graphYTitle; // Graph Title at y axe - + var $yTicks; // Number of Ticks on y axe var $yNumberFormat; // Format numbers at y axe var $yValueMode; // Mode that defines place of y numbers. 3 for outside of bar, 2 inside, 1 inside if bar height is bigger then 13 - + var $textXOrientation; // Text orientation at x axe. Usually normal. - + var $data = null; // Graph data var $countData; // Count of data var $dataSum; // Summary of data var $maxData; // Maximum value of data var $maxTextLength; // Lenght of maximum value - + var $colorWhiteArray; // White color in RGB format var $colorLinesArray; // Line color in RGB format var $colorBarsArray; // Bar color in RGB format @@ -56,10 +56,10 @@ class PostGraph var $colorTextArray; // Text color in RGB format var $colorAboveBarArray; // Number color above the bar in RGB format var $colorInsideBarArray; // Number color inside the bar in RGB format - + //------------------------------------------------------------------------ - /** + /** * constructor Create an PostGraph object. * * @param width Width of graph image. If it is not defined, width is set to 400. @@ -69,7 +69,7 @@ class PostGraph function PostGraph($width = 400, $height = 300) { register_shutdown_function(array(&$this, '_PostGraph')); - + $this->graphWidth = $width; $this->graphHeight = $height; $this->textPadding = 3; @@ -77,7 +77,7 @@ class PostGraph $this->yNumberFormat = ''; $this->yValueMode = 3; $this->textXOrientation = 'horizontal'; - + $this->colorWhiteArray = array(255, 255, 255); $this->colorLinesArray = array(72, 107, 143); $this->colorBarsArray = array(72, 107, 143); @@ -88,10 +88,10 @@ class PostGraph $this->colorInsideBarArray = array(255, 255, 255); } - + //------------------------------------------------------------------------ - /** + /** * create graph image with functions. Create the image, initialise Colors and * area, draw axis, bars and titles. * @@ -102,23 +102,23 @@ class PostGraph { /* Create initial image */ $this->img = ImageCreate($this->graphWidth, $this->graphHeight); - + $this->initColors(); - + $this->initArea(); - + $this->drawYAxe(); - + $this->drawXAxe(); - + $this->drawBars(); - + $this->drawTitles(); } - + //------------------------------------------------------------------------ - /** + /** * initialise all graph colors * * @param null @@ -135,7 +135,7 @@ class PostGraph $this->colorAboveBar = ImageColorAllocate($this->img, $this->colorAboveBarArray[0], $this->colorAboveBarArray[1], $this->colorAboveBarArray[2]); $this->colorInsideBar = ImageColorAllocate($this->img, $this->colorInsideBarArray[0], $this->colorInsideBarArray[1], $this->colorInsideBarArray[2]); } - + //------------------------------------------------------------------------ /** @@ -150,7 +150,7 @@ class PostGraph $this->posXEnd = $this->graphWidth - 5; $this->posYStart = 35; $this->posYEnd = $this->graphHeight - 15 - ($this->maxTextLength*6+15); - + ImageFilledRectangle($this->img, $this->posXStart, $this->posYStart, $this->posXEnd , $this->posYEnd, $this->colorBackground); ImageRectangle($this->img, $this->posXStart, $this->posYStart, $this->posXEnd , $this->posYEnd, $this->colorLines); } @@ -168,13 +168,13 @@ class PostGraph // draw lines $startPos = $this->posXStart; $step = round(( ($this->posXEnd - $this->posXStart) / $this->countData), 2); - for($i=0; $i<=$this->countData; $i++) + for($i=0; $i<=$this->countData; $i++) { ImageLine($this->img, $startPos, $this->posYEnd-5, $startPos, $this->posYEnd+5, $this->colorLines); - + $startPos += $step; } - + // draw numbers $startPos = $this->posXStart; foreach($this->data as $key => $value) @@ -187,7 +187,7 @@ class PostGraph $startPos += $step; } } - + //------------------------------------------------------------------------ /** @@ -205,27 +205,27 @@ class PostGraph { $style = array($this->colorStyle, $this->colorStyle, $this->colorStyle, $this->colorStyle, IMG_COLOR_TRANSPARENT, IMG_COLOR_TRANSPARENT, IMG_COLOR_TRANSPARENT); ImageSetStyle($this->img, $style); - + ImageLine($this->img, $this->posXStart-5, $top, $this->posXStart+5, $top, $this->colorLines); - + $top += $step; } - + // draw numbers $xAxeValue = $this->maxData; $top = $this->posYStart; - for($i=0; $i<=$this->yTicks; $i++) + for($i=0; $i<=$this->yTicks; $i++) { ImageString($this->img, 2, $this->posXStart-12-strlen($xAxeValue)*4, $top-6, $xAxeValue, $this->colorText); - + $xAxeValue -= ($this->maxData/$this->yTicks); if($xAxeValue < 0.01) $xAxeValue = 0; - + $top += $step; } } - + //------------------------------------------------------------------------ /** @@ -238,34 +238,34 @@ class PostGraph { $startPos = $this->posXStart; $step = (($this->posXEnd - $this->posXStart)/$this->countData)/2; - foreach($this->data as $key => $value) + foreach($this->data as $key => $value) { $barWidth = (0.75*($this->posXEnd-$this->posXStart)/$this->countData)/2; $barHeight = (($this->posYEnd-$this->posYStart)*$value)/$this->maxData; ImageFilledRectangle($this->img, $startPos + $step- $barWidth, $this->posYEnd - $barHeight, $startPos + $step + $barWidth, $this->posYEnd, $this->colorBars); - + $startX = $startPos + $step - (strlen($value)*3); - - if(($barHeight>13 && $this->yValueMode == 1) || $this->yValueMode == 2) + + if(($barHeight>13 && $this->yValueMode == 1) || $this->yValueMode == 2) { $startY = $this->posYEnd - $barHeight; ImageString($this->img, 1, $startX, $startY, $value, $this->colorInsideBar); - } - else + } + else { $startY = $this->posYEnd - $barHeight - 13; ImageString($this->img, 1, $startX, $startY, $value, $this->colorAboveBar); } - - $startPos = round((($this->posXEnd-$this->posXStart)/$this->countData),2) + $startPos; + + $startPos = round((($this->posXEnd-$this->posXStart)/$this->countData),2) + $startPos; } } - + //------------------------------------------------------------------------ /** - * draw titles of graph. Main title on the top center, verticaly on the left + * draw titles of graph. Main title on the top center, verticaly on the left * side and horizontaly on the botton * * @param null @@ -277,7 +277,7 @@ class PostGraph ImageStringUp($this->img, 3, $this->textPadding, $this->graphHeight/2+strlen($this->graphYTitle)*3, $this->graphYTitle, $this->colorText); ImageString($this->img, 3, $this->graphWidth/2-strlen($this->graphXTitle)*3, $this->posYEnd+$this->textPadding+($this->maxTextLength*6+15)-10, $this->graphXTitle, $this->colorText); } - + //------------------------------------------------------------------------ /** @@ -305,10 +305,10 @@ class PostGraph function setGraphTitles($mainTitle, $xTitle, $yTitle) { $this->graphTitle = $mainTitle; - $this->graphXTitle = $xTitle; + $this->graphXTitle = $xTitle; $this->graphYTitle = $yTitle; } - + //------------------------------------------------------------------------ /** @@ -456,13 +456,13 @@ class PostGraph function setYTicks($ticks) { $this->yTicks = $ticks; - + if($this->data != null && $this->yNumberFormat == 'integer') { if($this->yTicks > $this->maxData) $this->yTicks = $this->maxData; } - + if($this->yTicks == 0) $this->yTicks = 1; } @@ -493,11 +493,11 @@ class PostGraph { if(count($data) == 0) $data = array('' => 0); - + $this->data = $data; $this->computeDataSum(); $this->findMaxValues(); - + $this->countData = count($data); if($this->yTicks > $this->maxData && $this->yNumberFormat == 'integer') @@ -506,7 +506,7 @@ class PostGraph if($this->yTicks == 0) $this->yTicks = 1; } - + //------------------------------------------------------------------------ /** @@ -519,7 +519,7 @@ class PostGraph { $this->textXOrientation = $orientation; } - + //------------------------------------------------------------------------ /** @@ -532,10 +532,10 @@ class PostGraph { if(!is_array($this->data)) return; - + $this->dataSum = 0; - - foreach($this->data as $key => $value) + + foreach($this->data as $key => $value) $this->dataSum += $value; } @@ -551,14 +551,14 @@ class PostGraph { if(!is_array($this->data)) return; - + $this->maxData = 0; $this->maxTextLength = 0; foreach($this->data as $key => $value) { if($this->maxData < $value) $this->maxData = $value; - + $length = strlen($key); if($this->maxTextLength < $length) $this->maxTextLength = $length; @@ -569,19 +569,19 @@ class PostGraph if($this->maxData == 0) $this->maxData = 1; } - + //------------------------------------------------------------------------ /** * do special round on max value of data. Round at first digit for 2 digit - * int number. Round at second digit for bigger int number. + * int number. Round at second digit for bigger int number. * * @param number Float or int number * @returns number Special round number */ - function specialRound($number) + function specialRound($number) { - if(strlen(ceil($number)) < 2) // check if number is smaller then 10 + if(strlen(ceil($number)) < 2) // check if number is smaller then 10 { if( (strpos($number, ".")) !== false ) // float number ? { @@ -621,7 +621,7 @@ class PostGraph if($dot_place == 0) $number = "0."; else $number = substr($undot_number,0,$dot_place); - + if( $length > 4 ) { if(strlen($undot_number) == 2) @@ -635,7 +635,7 @@ class PostGraph } } return $number; - } + } else // big number { $number = ceil($number); @@ -643,7 +643,7 @@ class PostGraph if(substr($number, 1) == 0) return $number; - + if($length < 3) // if number is smaller then 3 digit increment it 1 digit, other digits set to 0 { $firstDigit = substr($number, 0, 1) + 1; @@ -660,7 +660,7 @@ class PostGraph return $number; // finally set the y axe maximum } } - + //------------------------------------------------------------------------ /** @@ -669,7 +669,7 @@ class PostGraph * @param null * @returns nothing */ - function _PostGraph () + function _PostGraph () { //ImageDestroy($this->img); return; @@ -678,4 +678,4 @@ class PostGraph //------------------------------------------------------------------------ } -?> \ No newline at end of file +?> diff --git a/preview_prod.php b/preview_prod.php index 8d19fc2..b130d91 100644 --- a/preview_prod.php +++ b/preview_prod.php @@ -68,7 +68,7 @@ $o = mysql_fetch_object($result);
@@ -78,4 +78,4 @@ $o = mysql_fetch_object($result); - \ No newline at end of file + diff --git a/preview_topic.php b/preview_topic.php index a27d3b5..ae17b50 100644 --- a/preview_topic.php +++ b/preview_topic.php @@ -71,4 +71,4 @@ if ($which) { - \ No newline at end of file + diff --git a/processeditrequest.php b/processeditrequest.php index 6358886..102eb6a 100644 --- a/processeditrequest.php +++ b/processeditrequest.php @@ -12,7 +12,7 @@ $fields = array( "party" => "release party", "party_year" => "release party year", "party_place" => "release party ranking", -); +); if ($_POST["requestid"]) { if ($_POST["approve"]) { @@ -23,7 +23,7 @@ if ($_POST["requestid"]) { $sql = sprintf("update prods set %s = '%s' where id=%d", $o->field,addslashes($o->newvalue),$o->prodid); $r = mysql_query($sql); - + $sql = sprintf("update editrequests set approved = 1, gloperatorid = %d where id=%d", $_SESSION["SCENEID_ID"],$_POST["requestid"]); mysql_query($sql); diff --git a/prod_comments.rss.php b/prod_comments.rss.php index 3ff424f..0e5883d 100644 --- a/prod_comments.rss.php +++ b/prod_comments.rss.php @@ -39,4 +39,4 @@ while($o = mysql_fetch_object($result)) { } ?> - \ No newline at end of file + diff --git a/prod_xml.php b/prod_xml.php index d4e3e9d..82665cd 100644 --- a/prod_xml.php +++ b/prod_xml.php @@ -129,7 +129,7 @@ echo "\t".$prod["date"]."\n". // other parties? // for($i=0;$i10 && $prods[$i]["groupacron3"]) $prods[$i]["groupn3"]=$prods[$i]["groupacron3"]; endif; - + $result=mysql_query("SELECT * from sceneorgrecommended where prodid=".$prods[$i]["id"]." ORDER BY type"); while($tmp=mysql_fetch_array($result)) { $sceneorgrecommends[]=$tmp; @@ -245,7 +245,7 @@ if($platfcheck) { */ -require("include/bottom.php"); ?> \ No newline at end of file +require("include/bottom.php"); ?> diff --git a/stat_graph_users.php b/stat_graph_users.php index 918725e..1ca0d1e 100644 --- a/stat_graph_users.php +++ b/stat_graph_users.php @@ -4,14 +4,14 @@ include_once("include/sqllib.inc.php"); $r = SQLLib::selectRows("select count(*) as c, substr(quand,1,7) as d from users group by d order by d"); -include('postgraph.class.php'); +include('postgraph.class.php'); $graph = new PostGraph(1920,1080); $data = array(); foreach ($r as $o) $data[$o->d] = $o->c; - + $graph->setData($data); $graph->setXTextOrientation('vertical'); @@ -19,4 +19,4 @@ $graph->drawImage(); $graph->printImage(); -?> \ No newline at end of file +?> diff --git a/stat_platform.php b/stat_platform.php index 0955e72..be5038c 100644 --- a/stat_platform.php +++ b/stat_platform.php @@ -16,7 +16,7 @@ $r = mysql_query($sql); @@ -320,9 +320,9 @@ if(!$maxglops)$maxglops=1;
- ".$sortlink."<-"); - + function printSortlink($ord) { global $sortlink; @@ -274,7 +274,7 @@ if($platfcheck) { if ($_GET["order"]) $pagelink.="order=".rawurlencode($_GET["order"])."&"; ?> - + "); } ?> - +
">.gif" width="13" height="12" border="0">
@@ -374,7 +374,7 @@ if($platfcheck) { print("
"); + + print(""); if(count($sceneorgrecommends)): print(""); endif; - print(""); + print(""); $platforms = explode(",", $prods[$i]["allplatforms"]); for($kkk=0;$kkk".$prods[$i]["party_place"].$placeadj." at ".$prods[$i]["partyname"]."
\n"); break; case 2: @@ -458,7 +458,7 @@ if($platfcheck) { case 62: case 72: case 82: - case 92: $placeadj="nd"; + case 92: $placeadj="nd"; print("
\n"); break; case 3: @@ -469,7 +469,7 @@ if($platfcheck) { case 63: case 73: case 83: - case 93: $placeadj="rd"; + case 93: $placeadj="rd"; print("\n"); break; case 97: print("\n"); @@ -482,9 +482,9 @@ if($platfcheck) { print("\n"); break; } - } else + } else { - $placeadj = "??"; + $placeadj = "??"; print("\n"); } } else { @@ -506,7 +506,7 @@ if($platfcheck) { ?>
- + \n".$prods[$i]["voteup"]."\n"); @@ -560,7 +560,7 @@ if($platfcheck) { - + - +  
\n"); + print("\n"); } } ?>
"); for($k=0;$k ">   "); @@ -403,7 +403,7 @@ if($platfcheck) { print("
  ".$prods[$i]["party_place"].$placeadj." at ".$prods[$i]["partyname"]."
".$prods[$i]["party_place"].$placeadj." at ".$prods[$i]["partyname"]."
disqualified at ".$prods[$i]["partyname"]."
".$prods[$i]["party_place"].$placeadj." at ".$prods[$i]["partyname"]."
".$prods[$i]["party_place"].$placeadj." at ".$prods[$i]["partyname"]."
@@ -62,7 +62,7 @@ if ($o->group1) $a[] = sprintf("%s",$o->group1 if ($o->group2) $a[] = sprintf("%s",$o->group2,$o->groupn2); if ($o->group3) $a[] = sprintf("%s",$o->group3,$o->groupn3); echo implode(" :: ",$a); -?> +?> type); foreach($typ as $p) { ?><?=$p?> +?> name?> @@ -131,7 +131,7 @@ if ($o->group1) $a[] = sprintf("%s",$o->group1 if ($o->group2) $a[] = sprintf("%s",$o->group2,$o->groupn2); if ($o->group3) $a[] = sprintf("%s",$o->group3,$o->groupn3); echo implode(" :: ",$a); -?> +?> type); foreach($typ as $p) { ?><?=$p?> +?> name?> @@ -203,7 +203,7 @@ if ($o->group1) $a[] = sprintf("%s",$o->group1 if ($o->group2) $a[] = sprintf("%s",$o->group2,$o->groupn2); if ($o->group3) $a[] = sprintf("%s",$o->group3,$o->groupn3); echo implode(" :: ",$a); -?> +?> \ No newline at end of file +?> diff --git a/results.php b/results.php index a28e95e..ffddd27 100644 --- a/results.php +++ b/results.php @@ -35,16 +35,16 @@ if(!$f) $f=1; [ "); ?> - html + html | - "); ?>
- [ admin: upload new res ] diff --git a/rulez/ip.php b/rulez/ip.php index 306cb9a..6b7aa12 100644 --- a/rulez/ip.php +++ b/rulez/ip.php @@ -11,7 +11,7 @@ if ($_SESSION["SESSION_LEVEL"]=='administrator' && $_POST["ban_id"]) { $sql = sprintf("update users set level='banned' where id=%d",$_POST["ban_id"]); echo $sql; mysql_query($sql); - + } ?> @@ -53,7 +53,7 @@ if ($SESSION_LEVEL=='administrator') { +?> "); mysql_query($query); - } + } print("voteavg!
"); } @@ -441,7 +441,7 @@ if ($bbstopics||$all) $query="UPDATE bbs_topics SET lastpost='".$topics[$i]["lastpost"]."', firstpost='".$topics[$i]["firstpost"]."', userlastpost='".$topics[$i]["latest"]."', userfirstpost='".$topics[$i]["starter"]."', count='".$topics[$i]["replies"]."' where id=".$topics[$i]["id"]; print($query."
"); mysql_query($query); - } + } print("bbstopics!
"); } @@ -526,7 +526,7 @@ if ($webtv||$all) $query ="insert into downloadlinks set type = 'demoscene.tv', link = 'http://www.demoscene.tv/prod.php?id_prod=".$dtvid."', prod =". $pouetid; $result = mysql_query($query); echo "inserted, pouetid: " . $pouetid . " dtvid: " . $dtvid . "
"; - } else { + } else { echo "already existed, pouetid: " . $pouetid . " dtvid: " . $dtvid . "
"; } unset($prods); @@ -573,7 +573,7 @@ if ($webtv||$all) $query ="insert into downloadlinks set type = 'capped.tv', link = 'http://capped.tv/playeralt.php?vid=".$capped."', prod =". $pouetid; $result = mysql_query($query); echo "inserted, pouetid: " . $pouetid . " capped: " . $capped . "
"; - } else { + } else { echo "already existed, pouetid: " . $pouetid . " capped: " . $capped . "
"; } } else { echo "no pouetid for capped: " . $capped . "
"; } diff --git a/sceneorg.php b/sceneorg.php index 0fc73a6..b9941aa 100644 --- a/sceneorg.php +++ b/sceneorg.php @@ -67,7 +67,7 @@ $typ = explode(",", $o->type); foreach($typ as $p) { ?> +?> name?>"); } - + $typess = explode(",", $results[$i]["type"]); print("\n"); - - + + ?> - -".$results[$i]["party_place"].$placeadj." at ".$results[$i]["partyname"]." ".sprintf("%02d",$results[$i]["party_year"])."".$compophrase."
\n"); break; case 2: @@ -374,7 +374,7 @@ if($type=="prod") { case 62: case 72: case 82: - case 92: $placeadj="nd"; + case 92: $placeadj="nd"; print("\n"); break; case 3: @@ -385,7 +385,7 @@ if($type=="prod") { case 63: case 73: case 83: - case 93: $placeadj="rd"; + case 93: $placeadj="rd"; print("\n"); break; case 97: print("\n"); @@ -451,12 +451,12 @@ if($type=="prod") { DoBar($pourcent); print("\n"); -?> - - +?> + + - + 0): ?> \n"); break; case 2: @@ -278,7 +278,7 @@ while($tmp = mysql_fetch_array($result)) { case 62: case 72: case 82: - case 92: $placeadj="nd"; + case 92: $placeadj="nd"; print("\n"); break; case 3: @@ -289,7 +289,7 @@ while($tmp = mysql_fetch_array($result)) { case 63: case 73: case 83: - case 93: $placeadj="rd"; + case 93: $placeadj="rd"; print("\n"); break; case 97: print("\n"); @@ -302,15 +302,15 @@ while($tmp = mysql_fetch_array($result)) { print("\n"); break; } - } else + } else { - $placeadj = "??"; + $placeadj = "??"; print("\n"); } } else { - if ($prods[$j]["party"]==1024) print("\n"); + if ($prods[$j]["party"]==1024) print("\n"); else print("\n"); - } + } if(($prods[$j]["date"]!="0000-00-00")&&(strlen($prods[$j]["date"])>0)) { @@ -332,7 +332,7 @@ while($tmp = mysql_fetch_array($result)) { } print("\n"); } else { - print("\n"); + print("\n"); } if ($prods[$j]["voteup"]) @@ -401,10 +401,10 @@ while($tmp = mysql_fetch_array($result)) {
@@ -77,7 +77,7 @@ if ($o->group1) $a[] = sprintf("%s",$o->group1 if ($o->group2) $a[] = sprintf("%s",$o->group2,$o->groupn2); if ($o->group3) $a[] = sprintf("%s",$o->group3,$o->groupn3); echo implode(" :: ",$a); -?> +?> type); foreach($typ as $p) { ?> +?> name?> group1) $a[] = sprintf("%s",$o->group1 if ($o->group2) $a[] = sprintf("%s",$o->group2,$o->groupn2); if ($o->group3) $a[] = sprintf("%s",$o->group3,$o->groupn3); echo implode(" :: ",$a); -?> +?> $b["avg_rating"]) ? -1 : 1; } -function cmp_avg_rev($a, $b) +function cmp_avg_rev($a, $b) { if ($a["avg_rating"] == $b["avg_rating"]) { @@ -20,7 +20,7 @@ function cmp_avg_rev($a, $b) return ($a["avg_rating"] < $b["avg_rating"]) ? -1 : 1; } -function cmp_tot($a, $b) +function cmp_tot($a, $b) { if ($a["total"] == $b["total"]) { @@ -303,7 +303,7 @@ if($type=="prod") { } else { print("
"); for($k=0;$k
"> @@ -343,8 +343,8 @@ if($type=="prod") { "> ".$results[$i]["party_place"].$placeadj." at ".$results[$i]["partyname"]." ".sprintf("%02d",$results[$i]["party_year"])."".$compophrase."
".$results[$i]["party_place"].$placeadj." at ".$results[$i]["partyname"]." ".sprintf("%02d",$results[$i]["party_year"])."".$compophrase."
disqualified at ".$results[$i]["partyname"]." ".sprintf("%02d",$results[$i]["party_year"])."".$compophrase."
diff --git a/search_suggest.php b/search_suggest.php index 98177f5..1308e26 100644 --- a/search_suggest.php +++ b/search_suggest.php @@ -6,10 +6,10 @@ conn_db(); $r = mysql_query("select name,type,party_year from prods where name like '".mysql_real_escape_string($_GET["what"])."%' order by views desc limit 10"); $res[0] = $_GET["what"]; -while($o = mysql_fetch_object($r)) +while($o = mysql_fetch_object($r)) { $res[1][] = $o->name; $res[2][] = $o->type.($o->party_year?", ".$o->party_year:""); -} +} echo json_encode($res); -?> \ No newline at end of file +?> diff --git a/sess.php b/sess.php index d0096aa..e807ca4 100644 --- a/sess.php +++ b/sess.php @@ -1,4 +1,4 @@ \ No newline at end of file +?> diff --git a/solo2_tagcloud.php b/solo2_tagcloud.php index 548aca7..7a48d01 100644 --- a/solo2_tagcloud.php +++ b/solo2_tagcloud.php @@ -11,7 +11,7 @@ if (!$_GET["tag"]) { $sql = "select * from users where id=".$poor_fucker.""; $r = mysql_query($sql) or die(mysql_error()); $usr = mysql_fetch_object($r); - + $r = mysql_query( sprintf("select comment from comments where who=%d",$poor_fucker) ) or die(mysql_error()); while ($o = mysql_fetch_object($r)) $posts[] = $o->comment; @@ -24,56 +24,56 @@ if (!$_GET["tag"]) { while ($o = mysql_fetch_object($r)) $posts[] = $o->post; } } - else + else { $threshold = 2000; $sql = "select * from comments"; $r = mysql_query($sql) or die(mysql_error()); - + $usr->avatar = "r.gif"; $usr->nickname = "ALL USERS"; } $tags = array(); - + foreach ($posts as $post) { $a = preg_split("/[^a-zA-Z0-9]/",$post); foreach($a as $v) if (strlen(trim($v))>1) $tags[strtolower($v)] += 1; } - + // remove common words $common = unserialize(@file_get_contents("common_words.txt")); if (!$common) { - $f = file_get_contents("http://en.wikipedia.org/w/index.php?title=Most_common_words_in_English&action=raw"); + $f = file_get_contents("http://en.wikipedia.org/w/index.php?title=Most_common_words_in_English&action=raw"); echo preg_match_all("/^\| [0-9]+ \|\| ([a-zA-Z]+)$/m",$f,$matches); - + foreach ($matches[1] as $v) $common[] = strtolower($v); - + $common[] = "is"; $common[] = "are"; - + file_put_contents("common_words.txt",serialize($common)); } - + foreach ($common as $v) unset($tags[$v]); - + $max = 0; $avg = 0; $avgn = 0; foreach ($tags as $v) { $max = max($max, $v); $avg += $v; $avgn++; } - + $avg = (int)($avg / $avgn); - + ksort($tags); //var_dump($tags); - + ?> - + - +
@@ -94,7 +94,7 @@ if (!$_GET["tag"]) {
\n"); } -function cmpcomments($a, $b) +function cmpcomments($a, $b) { if ($a["lcom_quand"] == $b["lcom_quand"]) { @@ -109,7 +109,7 @@ while($tmp = mysql_fetch_array($result)) { //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"); ?> @@ -267,7 +267,7 @@ while($tmp = mysql_fetch_array($result)) { case 61: case 71: case 81: - case 91: $placeadj="st"; + case 91: $placeadj="st"; 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."
".$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
no party
??
".$rmonth." ".$rdate[0]."
 
 
 
diff --git a/stat_activity.php b/stat_activity.php index 6f09a4e..17a3e44 100644 --- a/stat_activity.php +++ b/stat_activity.php @@ -94,4 +94,4 @@ echo $o->c; ?>
- + \n"; require("include/bottom.php"); -?> \ No newline at end of file +?> diff --git a/stat_sceneorgawards.php b/stat_sceneorgawards.php index bdf51d7..12b6ddc 100644 --- a/stat_sceneorgawards.php +++ b/stat_sceneorgawards.php @@ -23,7 +23,7 @@ $sqlz["scene.org nominations by party"] = foreach ($sqlz as $desc=>$sql) { $r = mysql_query($sql) or die(mysql_error()); ?> - +
platform icon check
@@ -344,7 +344,7 @@ if ((int)($_SESSION["SCENEID_ID"])==3254) { - + @@ -354,7 +354,7 @@ if ((int)($_SESSION["SCENEID_ID"])==3254) { - + diff --git a/submitprodeditrequest.php b/submitprodeditrequest.php index e5150c2..473d396 100644 --- a/submitprodeditrequest.php +++ b/submitprodeditrequest.php @@ -12,7 +12,7 @@ $fields = array( "party" => "release party", "party_year" => "release party year", "party_place" => "release party ranking", -); +); $pid = $_GET["which"] ? $_GET["which"] : $_POST["prodid"]; if ($pid) { @@ -42,7 +42,7 @@ please enter the prod id you wish to have edited: ?> please select the field/parameter you wish to have edited for name?>: - + ">
diff --git a/submitbbs.php b/submitbbs.php index e0d6819..b9c29f2 100644 --- a/submitbbs.php +++ b/submitbbs.php @@ -65,7 +65,7 @@ if($submitok){ $query.= "added=NOW()"; mysql_query($query); $lastid=mysql_insert_id(); - + for($i=0;$idate('m'))&&($ryear>=date('Y')))) { @@ -97,7 +97,7 @@ if($name) $errormessage[] = "please select a party"; if(($party&&!$pyear)&&$party!=1024) $errormessage[] = "please select a party year"; - + // check the screenshot if(is_uploaded_file($sshotfile)) { $fileinfo = GetImageSize($sshotfile); @@ -334,7 +334,7 @@ if ((int)($_SESSION["SCENEID_ID"])==3254) { - +
@@ -125,7 +125,7 @@ if (canEditBBSCategories()) {
"> "); ?> - closed) { ?> @@ -306,7 +306,7 @@ else
-
diff --git a/update.php b/update.php index 39523d2..58c1565 100644 --- a/update.php +++ b/update.php @@ -396,7 +396,7 @@ if ($voteavg||$all) $query="UPDATE prods SET voteup=".$rulez.", votepig=".$piggie.", votedown=".$sucks.", voteavg='".$avg."' where id=".$prods[$j]["id"]; print($query."
"); mysql_query($query); - } + } print("voteavg!
"); } @@ -442,7 +442,7 @@ if ($bbstopics||$all) $query="UPDATE bbs_topics SET lastpost='".$topics[$i]["lastpost"]."', firstpost='".$topics[$i]["firstpost"]."', userlastpost='".$topics[$i]["latest"]."', userfirstpost='".$topics[$i]["starter"]."', count='".$topics[$i]["replies"]."' where id=".$topics[$i]["id"]; print($query."
"); mysql_query($query); - } + } print("bbstopics!
"); } @@ -528,7 +528,7 @@ if ($webtv||$all) $query ="insert into downloadlinks set type = 'demoscene.tv', link = 'http://www.demoscene.tv/prod.php?id_prod=".$dtvid."', prod =". $pouetid; $result = mysql_query($query); echo "inserted, pouetid: " . $pouetid . " dtvid: " . $dtvid . "
"; - } else { + } else { echo "already existed, pouetid: " . $pouetid . " dtvid: " . $dtvid . "
"; } unset($prods); @@ -572,7 +572,7 @@ if ($webtv||$all) $query ="insert into downloadlinks set type = 'capped.tv', link = 'http://capped.tv/playeralt.php?vid=".$capped."', prod =". $pouetid; $result = mysql_query($query); echo "inserted, pouetid: " . $pouetid . " capped: " . $capped . "
"; - } else { + } else { echo "already existed, pouetid: " . $pouetid . " capped: " . $capped . "
"; } unset($prods); diff --git a/userlist.php b/userlist.php index 05f2ed2..be3b3b9 100644 --- a/userlist.php +++ b/userlist.php @@ -50,7 +50,7 @@ switch($order) { $query="SELECT id,nickname,quand,level,avatar,glops FROM users WHERE (".$sqlwhere.") ORDER BY nickname"; $cquery="SELECT count(0) FROM users WHERE (".$sqlwhere.") ORDER BY nickname"; break; - case "age": + case "age": $query="SELECT id,nickname,quand,level,avatar,glops FROM users ORDER BY quand"; if(($page<=0)||(!$page)) { $page=1; @@ -58,7 +58,7 @@ switch($order) { $query.=" LIMIT ".(($page-1)*$users_per_page).",$users_per_page"; $cquery="SELECT count(0) FROM users ORDER BY quand"; break; - case "glops": + case "glops": $query="SELECT id,nickname,quand,level,avatar,glops FROM users ORDER BY glops DESC"; if(($page<=0)||(!$page)) { $page=1; @@ -66,7 +66,7 @@ switch($order) { $query.=" LIMIT ".(($page-1)*$users_per_page).",$users_per_page"; $cquery="SELECT count(0) FROM users ORDER BY glops DESC"; break; - case "level": + case "level": $query="SELECT id,nickname,quand,level,avatar,glops FROM users ORDER BY level ASC, quand"; if(($page<=0)||(!$page)) { $page=1; @@ -74,7 +74,7 @@ switch($order) { $query.=" LIMIT ".(($page-1)*$users_per_page).",$users_per_page"; $cquery="SELECT count(0) FROM users ORDER BY quand"; break; - default: + default: $query="SELECT id,nickname,quand,level,avatar,glops FROM users WHERE (".$sqlwhere.") ORDER BY nickname"; $cquery="SELECT count(0) FROM users WHERE (".$sqlwhere.") ORDER BY nickname"; break; @@ -263,7 +263,7 @@ if(!$maxglops)$maxglops=1;
- - - + + + diff --git a/videoprod.php b/videoprod.php index fea441b..e68421b 100644 --- a/videoprod.php +++ b/videoprod.php @@ -19,7 +19,7 @@ function lettermenu($pattern) { print(" ]
\n"); } -function cmpcomments($a, $b) +function cmpcomments($a, $b) { if ($a["lcom_quand"] == $b["lcom_quand"]) { @@ -109,7 +109,7 @@ while($tmp = mysql_fetch_array($result)) { //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"); ?> @@ -267,7 +267,7 @@ while($tmp = mysql_fetch_array($result)) { case 61: case 71: case 81: - case 91: $placeadj="st"; + case 91: $placeadj="st"; print("".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
\n"); break; case 2: @@ -278,7 +278,7 @@ while($tmp = mysql_fetch_array($result)) { case 62: case 72: case 82: - case 92: $placeadj="nd"; + case 92: $placeadj="nd"; print("".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
\n"); break; case 3: @@ -289,7 +289,7 @@ while($tmp = mysql_fetch_array($result)) { case 63: case 73: case 83: - case 93: $placeadj="rd"; + case 93: $placeadj="rd"; print("".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
\n"); break; case 97: print("disqualified at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
\n"); @@ -302,15 +302,15 @@ while($tmp = mysql_fetch_array($result)) { print("".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
\n"); break; } - } else + } else { - $placeadj = "??"; + $placeadj = "??"; print("".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
\n"); } } else { - if ($prods[$j]["party"]==1024) print("no party
\n"); + if ($prods[$j]["party"]==1024) print("no party
\n"); else print("??
\n"); - } + } if(($prods[$j]["date"]!="0000-00-00")&&(strlen($prods[$j]["date"])>0)) { @@ -332,7 +332,7 @@ while($tmp = mysql_fetch_array($result)) { } print("".$rmonth." ".$rdate[0]."
\n"); } else { - print(" 
\n"); + print(" 
\n"); } if ($prods[$j]["voteup"]) @@ -401,10 +401,10 @@ while($tmp = mysql_fetch_array($result)) { - +  
\n"); + print(" 
\n"); } } ?>