JoshuaLuke
Posting Freak
- Jan 29, 2012
- 529
- 51
Hello,
I've been trying to fix the UberCMS last signed in. I have this code:
Which if I put %lastsignedin%, it displays a Unix time stamp. So I tried to convert the Unix timestamp through Java:
But now it displays nothing? What is the error here?
I've been trying to fix the UberCMS last signed in. I have this code:
Code:
function GetUserVar($id, $var, $allowCache = true)
{
if ($allowCache && isset($this->userCache[$id][$var]))
{
if ($var == "last_online")
{
return "<i>Never</i>";
}
else
{
return $this->userCache[$id][$var];
}
}
$val = @mysql_result(dbquery("SELECT " . $var . " FROM users WHERE id = '" . $id . "' LIMIT 1"), 0);
$this->userCache[$id][$var] = $val;
return $val;
}
Which if I put %lastsignedin%, it displays a Unix time stamp. So I tried to convert the Unix timestamp through Java:
Code:
<script type="text/javascript">document.write(PHPDate("l F jS, Y g:ia", %lastSignedIn%));</script>