diff --git a/include/functions.php b/include/functions.php index 0a635a13c..9c0c9405e 100644 --- a/include/functions.php +++ b/include/functions.php @@ -818,7 +818,7 @@ function closeall() { tagRemove = popstack(bbtags) if ( (tagRemove != 'color') ) { doInsert("[/"+tagRemove+"]", "", false); - eval("document.." + tagRemove + ".value = ' " + tagRemove + " '"); + eval("document.." + tagRemove + ".value = ' " + tagRemove.toUpperCase() + " '"); eval(tagRemove + "_open = 0"); } else { doInsert("[/"+tagRemove+"]", "", false); diff --git a/nexus/Database/DBMysqli.php b/nexus/Database/DBMysqli.php index 1f04d0536..c1d6dc565 100644 --- a/nexus/Database/DBMysqli.php +++ b/nexus/Database/DBMysqli.php @@ -12,8 +12,8 @@ public function connect($host, $username, $password, $database, $port) if (mysqli_connect_errno()) { throw new DatabaseException(mysqli_connect_error()); } - $mysqli->query("SET NAMES UTF8"); - $mysqli->query("SET collation_connection = 'utf8_general_ci'"); + $mysqli->set_charset("utf8mb4"); + $mysqli->query("SET collation_connection = 'utf8mb4_unicode_ci'"); $mysqli->query("SET sql_mode=''"); $mysqli->query("SET time_zone='".date('P')."'"); diff --git a/public/attachment.php b/public/attachment.php index c70d3d045..a2290dfb5 100644 --- a/public/attachment.php +++ b/public/attachment.php @@ -109,7 +109,7 @@ if ($orig && !$stop) { $thumb = imagecreatetruecolor($newwidth, $newheight); - imagecopyresized($thumb, $orig, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); + imagecopyresampled($thumb, $orig, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); if ($thumbnailtype_attachment == 'createthumb'){ $hasthumb = true; imagejpeg($thumb, $file_location.".".$ext.".thumb.jpg", $thumbquality_attachment); diff --git a/public/bitbucket-upload.php b/public/bitbucket-upload.php index bcbfb7b7e..da598450a 100644 --- a/public/bitbucket-upload.php +++ b/public/bitbucket-upload.php @@ -48,7 +48,7 @@ if(!$orig) stderr($lang_bitbucketupload['std_image_processing_failed'],$lang_bitbucketupload['std_sorry_the_uploaded']."$imgtypes[$it]".$lang_bitbucketupload['std_failed_processing']); $thumb = imagecreatetruecolor($newwidth, $newheight); - imagecopyresized($thumb, $orig, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); + imagecopyresampled($thumb, $orig, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); switch ($it) { case 1: $ret = imagegif($thumb, $tgtfile); diff --git a/public/torrents.php b/public/torrents.php index ee11320c5..4a621e882 100644 --- a/public/torrents.php +++ b/public/torrents.php @@ -702,7 +702,6 @@ if (isset($searchstr)) { if (!isset($_GET['notnewword']) || !$_GET['notnewword']){ - insert_suggest($searchstr, $CURUSER['id']); $notnewword=""; } else{ @@ -956,6 +955,9 @@ if ($count) { + if (isset($searchstr) && (!isset($_GET['notnewword']) || !$_GET['notnewword'])){ + insert_suggest($searchstr, $CURUSER['id']); + } if ($addparam != "") { if ($pagerlink != "") diff --git a/public/userdetails.php b/public/userdetails.php index 5cd202153..830e2a44e 100644 --- a/public/userdetails.php +++ b/public/userdetails.php @@ -238,7 +238,7 @@ function bark($msg) tr_small($lang_userdetails['row_ip_address'], $user['ip'].$locationinfo.$seedBoxIcon, 1); } $clientselect = ''; -$res = sql_query("SELECT peer_id, agent, ipv4, ipv6, port FROM peers WHERE userid = {$user['id']} GROUP BY agent") or sqlerr(); +$res = sql_query("SELECT peer_id, agent, ipv4, ipv6, port FROM peers WHERE userid = {$user['id']} GROUP BY agent, ipv4, ipv6, port") or sqlerr(); if (mysql_num_rows($res) > 0) { $clientselect .= ""; diff --git a/server.php b/server.php index 5fb6379e7..6ae40f5ff 100644 --- a/server.php +++ b/server.php @@ -18,4 +18,4 @@ return false; } -require_once __DIR__.'/public/index.php'; +require_once __DIR__.'/public/nexus.php';
AgentIPV4IPV6Port