mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
userdetails fetch from db
This commit is contained in:
@@ -17,14 +17,9 @@ function bark($msg)
|
|||||||
$id = intval($_GET["id"] ?? 0);
|
$id = intval($_GET["id"] ?? 0);
|
||||||
int_check($id,true);
|
int_check($id,true);
|
||||||
|
|
||||||
if ($id != $CURUSER['id']){
|
$r = sql_query("SELECT * FROM users WHERE id=".sqlesc($id)) or sqlerr(__FILE__, __LINE__);
|
||||||
$r = sql_query("SELECT * FROM users WHERE id=".sqlesc($id)) or sqlerr(__FILE__, __LINE__);
|
$user = mysql_fetch_array($r) or bark($lang_userdetails['std_no_such_user']);
|
||||||
$user = mysql_fetch_array($r) or bark($lang_userdetails['std_no_such_user']);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$user = $CURUSER;
|
|
||||||
}
|
|
||||||
if ($user["status"] == "pending")
|
if ($user["status"] == "pending")
|
||||||
stderr($lang_userdetails['std_sorry'], $lang_userdetails['std_user_not_confirmed']);
|
stderr($lang_userdetails['std_sorry'], $lang_userdetails['std_user_not_confirmed']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user