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 =$year?>.
-\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) {