".
- "| ".$lang_invite['text_invite_someone']."$SITENAME ($inv[invites]".$lang_invite['text_invitation'].$_s.$lang_invite['text_left'] .") |
".
+ "| ".$lang_invite['text_invite_someone']."$SITENAME ({$inv['invites']}".$lang_invite['text_invitation'].$_s.$lang_invite['text_left'] .") |
".
"| ".$lang_invite['text_email_address']." | ".$lang_invite['text_email_address_note']."".($restrictemaildomain == 'yes' ? " ".$lang_invite['text_email_restriction_note'].allowedemails() : "")." |
".
"| ".$lang_invite['text_message']." | |
".
@@ -71,14 +71,14 @@ if ($type == 'new'){
} else {
print("| ".$lang_invite['text_username']." | ".$lang_invite['text_email']." | ".$lang_invite['text_uploaded']." | ".$lang_invite['text_downloaded']." | ".$lang_invite['text_ratio']." | ".$lang_invite['text_status']." | ");
- if ($CURUSER[id] == $id || get_user_class() >= UC_SYSOP)
+ if ($CURUSER['id'] == $id || get_user_class() >= UC_SYSOP)
print("".$lang_invite['text_confirm']." | ");
print("
");
for ($i = 0; $i < $num; ++$i)
{
$arr = mysql_fetch_assoc($ret);
- $user = "" . get_username($arr[id]) . " | ";
+ $user = "" . get_username($arr['id']) . " | ";
if ($arr["downloaded"] > 0) {
$ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3);
@@ -92,15 +92,15 @@ if ($type == 'new'){
}
}
if ($arr["status"] == 'confirmed')
- $status = "".$lang_invite['text_confirmed']."";
+ $status = "".$lang_invite['text_confirmed']."";
else
- $status = "".$lang_invite['text_pending']."";
+ $status = "".$lang_invite['text_pending']."";
- print("$user| $arr[email] | " . mksize($arr[uploaded]) . " | " . mksize($arr[downloaded]) . " | $ratio | $status | ");
- if ($CURUSER[id] == $id || get_user_class() >= UC_SYSOP){
+ print("
$user| $arr[email] | " . mksize($arr['uploaded']) . " | " . mksize($arr[downloaded]) . " | $ratio | $status | ");
+ if ($CURUSER['id'] == $id || get_user_class() >= UC_SYSOP){
print("");
if ($arr[status] == 'pending')
- print("");
+ print("");
print(" | ");
}
@@ -111,7 +111,7 @@ if ($type == 'new'){
if ($CURUSER['id'] == $id || get_user_class() >= UC_SYSOP)
{
- $pendingcount = number_format(get_row_count("users", "WHERE status='pending' AND invited_by=$CURUSER[id]"));
+ $pendingcount = number_format(get_row_count("users", "WHERE status='pending' AND invited_by={$CURUSER['id']}"));
if ($pendingcount){
print("");
print("
|
");
diff --git a/public/modtask.php b/public/modtask.php
index ff021091..676659e7 100644
--- a/public/modtask.php
+++ b/public/modtask.php
@@ -173,7 +173,7 @@ if ($action == "edituser")
$passupdate=true;
}
- if ($passupdate) {
+ if (isset($passupdate) && $passupdate) {
$sec = mksecret();
$passhash = md5($sec . $chpassword . $sec);
$updateset[] = "secret = " . sqlesc($sec);
@@ -267,7 +267,7 @@ if ($action == "edituser")
if ($privacy == "low" OR $privacy == "normal" OR $privacy == "strong")
$updateset[] = "privacy = " . sqlesc($privacy);
- if ($_POST["resetkey"] == "yes")
+ if (isset($_POST["resetkey"]) && $_POST["resetkey"] == "yes")
{
$newpasskey = md5($arr['username'].date("Y-m-d H:i:s").$arr['passhash']);
$updateset[] = "passkey = ".sqlesc($newpasskey);
diff --git a/public/usercp.php b/public/usercp.php
index bd96bf05..abd9d32a 100644
--- a/public/usercp.php
+++ b/public/usercp.php
@@ -254,7 +254,7 @@ tr($lang_usercp['row_school'], "", 1);
if ($inclbookmarked)
$notifs .= "[inclbookmarked=".$inclbookmarked."]";
$stylesheet = $_POST["stylesheet"];
- $caticon = $_POST["caticon"];
+// $caticon = $_POST["caticon"];
$sitelanguage = $_POST["sitelanguage"];
$fontsize = $_POST["fontsize"];
if ($fontsize == 'large')
diff --git a/public/userdetails.php b/public/userdetails.php
index 2b4b9dd9..c531fb98 100644
--- a/public/userdetails.php
+++ b/public/userdetails.php
@@ -290,6 +290,7 @@ else
{
print("| ".$lang_userdetails['text_public_access_denied'].$user['username'].$lang_userdetails['text_user_wants_privacy']." |
\n");
}
+$showpmbutton = 0;
if ($CURUSER["id"] != $user["id"])
if (get_user_class() >= $staffmem_class)
$showpmbutton = 1;