From e78e06620784f9b12f967728ed9f535f6d8df8b8 Mon Sep 17 00:00:00 2001 From: Git Date: Sat, 13 Apr 2013 08:00:19 +0000 Subject: [PATCH] Empty commit --- classes/bookmarks.class.php | 2 +- classes/class_debug.php | 50 +-- .../class_mass_user_torrents_table_view.php | 51 +-- classes/class_mysql.php | 34 +- classes/class_torrents.php | 35 +- classes/class_useragent.php | 2 +- classes/class_validate.php | 301 +++++++++----- classes/class_votes.php | 10 +- classes/class_zip.php | 6 +- classes/util.php | 4 +- design/privatefooter.php | 4 +- design/views/generic/reply/quickreply.php | 43 +- image.php | 99 +++-- sections/ajax/forum/main.php | 12 +- sections/ajax/forum/thread.php | 44 +-- sections/ajax/info.php | 2 +- sections/ajax/takevote.php | 14 +- sections/ajax/userhistory/post_history.php | 40 +- sections/artist/notify.php | 14 +- sections/artist/notifyremove.php | 16 +- sections/bookmarks/artists.php | 4 +- sections/collages/collage.php | 108 +++--- sections/forums/main.php | 16 +- sections/forums/thread.php | 8 +- sections/rules/chat.php | 16 +- sections/staff/functions.php | 64 +-- sections/staff/index.php | 53 ++- sections/tools/index.php | 48 ++- sections/tools/managers/tag_aliases.php | 4 +- sections/torrents/download.php | 22 +- sections/torrents/functions.php | 4 +- sections/torrents/merge.php | 2 +- sections/user/linkedfunctions.php | 4 +- sections/user/notify_edit.php | 46 +-- sections/user/notify_handle.php | 60 +-- sections/user/takemoderate.php | 367 +++++++++--------- sections/user/user.php | 114 +++--- sections/userhistory/collage_subscribe.php | 6 +- sections/userhistory/post_history.php | 4 +- sections/userhistory/thread_subscribe.php | 10 +- 40 files changed, 976 insertions(+), 767 deletions(-) diff --git a/classes/bookmarks.class.php b/classes/bookmarks.class.php index e30565b1..18b23cc4 100644 --- a/classes/bookmarks.class.php +++ b/classes/bookmarks.class.php @@ -83,7 +83,7 @@ public static function all_bookmarks($Type, $UserID = false) { $UserID = $LoggedUser['ID']; } $CacheKey = 'bookmarks_' . $Type . '_' . $UserID; - if (($Bookmarks = $Cache->get_value($CacheKey)) === FALSE) { + if (($Bookmarks = $Cache->get_value($CacheKey)) === false) { list ($Table, $Col) = self::bookmark_schema($Type); $DB->query("SELECT $Col FROM $Table WHERE UserID = '$UserID'"); $Bookmarks = $DB->collect($Col); diff --git a/classes/class_debug.php b/classes/class_debug.php index 568422b9..93d41a0a 100644 --- a/classes/class_debug.php +++ b/classes/class_debug.php @@ -91,10 +91,10 @@ public function get_cpu_time() { return false; } - public function log_var($Var, $VarName = FALSE) { + public function log_var($Var, $VarName = false) { $BackTrace = debug_backtrace(); $ID = uniqid(); - if(!$VarName) { + if (!$VarName) { $VarName = $ID; } $File = array('path' => substr($BackTrace[0]['file'], strlen(SERVER_ROOT)), 'line' => $BackTrace[0]['line']); @@ -103,7 +103,7 @@ public function log_var($Var, $VarName = FALSE) { public function set_flag($Event) { global $ScriptStartTime; - $this->Flags[] = array($Event, (microtime(true)-$ScriptStartTime)*1000, memory_get_usage(true), $this->get_cpu_time()); + $this->Flags[] = array($Event, (microtime(true) - $ScriptStartTime) * 1000, memory_get_usage(true), $this->get_cpu_time()); } //This isn't in the constructor because $this is not available, and the function cannot be made static @@ -118,7 +118,7 @@ protected function format_args($Array) { $Return = array(); foreach ($Array as $Key => $Val) { $Return[$Key] = ''; - if (!is_int($Key) || $Key != $LastKey+1) { + if (!is_int($Key) || $Key != $LastKey + 1) { $Return[$Key] .= "'$Key' => "; } if ($Val === true) { @@ -194,7 +194,7 @@ public function php_error_handler($Level, $Error, $File, $Line) { /* //Hiding "session_start(): Server 10.10.0.1 (tcp 11211) failed with: No route to host (113)" errors - if($Call != "session_start") { + if ($Call != "session_start") { $this->Errors[] = array($Error, $File.':'.$Line, $Call, $Args); } */ @@ -277,13 +277,13 @@ public function get_sphinx_time() { } public function get_sphinxql_queries() { - if(class_exists('Sphinxql')) { + if (class_exists('Sphinxql')) { return Sphinxql::$Queries; } } public function get_sphinxql_time() { - if(class_exists('Sphinxql')) { + if (class_exists('Sphinxql')) { return Sphinxql::$Time; } } @@ -314,7 +314,7 @@ public function perf_table($Perf=false) { ?> - +
(View) Performance stats:View Performance stats:
@@ -339,7 +339,7 @@ public function include_table($Includes=false) { ?> - +
(View) Includes:View Includes:
@@ -363,7 +363,7 @@ public function class_table($Classes=false) { ?> - +
(View) Classes:View Classes:
@@ -380,7 +380,7 @@ public function extension_table() { ?> - +
(View) Extensions:View Extensions:
@@ -403,7 +403,7 @@ public function flag_table($Flags=false) { ?> - +
(View) Flags:View Flags:
@@ -441,7 +441,7 @@ public function constant_table($Constants=false) { ?> - +
(View) Constants:View Constants:
@@ -469,11 +469,11 @@ public function cache_table($CacheKeys=false) { ?> - +
(View)View
- +