diff --git a/nexus/Install/Install.php b/nexus/Install/Install.php
index c779ec35..453818af 100644
--- a/nexus/Install/Install.php
+++ b/nexus/Install/Install.php
@@ -113,7 +113,7 @@ class Install
public function listRequirementTableRows()
{
- $gdInfo = method_exists('gd_info') ? gd_info() : [];
+ $gdInfo = function_exists('gd_info') ? gd_info() : [];
$tableRows = [
[
'label' => 'PHP version',
diff --git a/public/mybonus.php b/public/mybonus.php
index b20905f2..a9b381ce 100644
--- a/public/mybonus.php
+++ b/public/mybonus.php
@@ -246,9 +246,9 @@ print("");
$torrentres = sql_query("select torrents.id, torrents.added, torrents.size, torrents.seeders from torrents LEFT JOIN peers ON peers.torrent = torrents.id WHERE peers.userid = $CURUSER[id] AND peers.seeder ='yes' GROUP BY torrents.id") or sqlerr(__FILE__, __LINE__);
while ($torrent = mysql_fetch_array($torrentres))
{
- $weeks_alive = ($timenow - strtotime($torrent[added])) / $sectoweek;
- $gb_size = $torrent[size] / 1073741824;
- $temp = (1 - exp($valueone * $weeks_alive)) * $gb_size * (1 + $sqrtof2 * exp($valuethree * ($torrent[seeders] - 1)));
+ $weeks_alive = ($timenow - strtotime($torrent['added'])) / $sectoweek;
+ $gb_size = $torrent['size'] / 1073741824;
+ $temp = (1 - exp($valueone * $weeks_alive)) * $gb_size * (1 + $sqrtof2 * exp($valuethree * ($torrent['seeders'] - 1)));
$A += $temp;
$count++;
}
diff --git a/public/usercp.php b/public/usercp.php
index 56766e14..2373b9e9 100644
--- a/public/usercp.php
+++ b/public/usercp.php
@@ -210,8 +210,8 @@ tr($lang_usercp['row_school'], "", 1);
$showtooltipsetting = false;
if ($type == 'save') {
$updateset = array();
- $pmnotif = $_POST["pmnotif"];
- $emailnotif = $_POST["emailnotif"];
+ $pmnotif = $_POST["pmnotif"] ?? '';
+ $emailnotif = $_POST["emailnotif"] ?? '';
$notifs = ($pmnotif == 'yes' ? "[pm]" : "");
$notifs .= ($emailnotif == 'yes' ? "[email]" : "");
@@ -223,7 +223,7 @@ tr($lang_usercp['row_school'], "", 1);
for ($i = 0; $i < $rows; ++$i)
{
$a = mysql_fetch_assoc($r);
- if ($_POST[$cbname.$a['id']] == 'yes')
+ if (isset($_POST[$cbname.$a['id']]) && $_POST[$cbname.$a['id']] == 'yes')
$return .= "[".$cbname.$a['id']."]";
}
return $return;
@@ -328,7 +328,7 @@ tr($lang_usercp['row_school'], "", 1);
$sbrefresh = ($_POST["sbrefresh"] ? max(10, min(3600, intval($_POST["sbrefresh"] ?? 0))) : 120);
$updateset[] = "sbrefresh = " . $sbrefresh;
- if ($_POST["hidehb"] == 'yes')
+ if (isset($_POST["hidehb"]) && $_POST["hidehb"] == 'yes')
$hidehb = 'yes';
else $hidehb = 'no';
$updateset[] = "hidehb = " . sqlesc($hidehb);
@@ -341,7 +341,7 @@ tr($lang_usercp['row_school'], "", 1);
else $showdescription = 'no';
$updateset[] = "showdescription = " . sqlesc($showdescription);
if ($enablenfo_main == 'yes'){
- if ($_POST["shownfo"] == 'yes')
+ if (isset($_POST["shownfo"]) && $_POST["shownfo"] == 'yes')
$shownfo = 'yes';
else $shownfo = 'no';
$updateset[] = "shownfo = " . sqlesc($shownfo);
@@ -559,10 +559,13 @@ if ($showaudiocodec) $audiocodecs = searchbox_item_list("audiocodecs");
$categoryicons .= "\n";
}
tr_small($lang_usercp['row_stylesheet'], " ".$lang_usercp['text_stylesheet_note']."".$lang_usercp['text_stylesheet_link'].".",1);
- tr_small($lang_usercp['row_category_icons'], "",1);
+ /**
+ * make no sense, should no exists!
+ * @since v1.6.0
+ */
+// tr_small($lang_usercp['row_category_icons'], "",1);
tr_small($lang_usercp['row_font_size'], "",1);
-
$s = "