Hmmmm I've added this mod successfully , but for some reason , i tried adding it to log in block , but no matter what status i set , it shows as PC at night off, although still working in account details ......... any ideas please ?
Its OK , i sorted it
AFTER
$connectable = get_row_count("peers", "WHERE connectable='yes' AND userid=$CURUSER[id]");
$unconnectable = get_row_count("peers", "WHERE connectable='no' AND userid=$CURUSER[id]");
if ($unconnectable)
print "<br><b>Connectable: <font color='#FF0000'>NO</font></b>";
elseif ($connectable)
print "<br><b>Connectable: <font color='#00FF00'>YES</font></b>";
else
print "<br><b>Connectable: <font color='#FF9900'>N/A</font></b>";
ADD
if ($CURUSER["pcoff"] == 'yes')
{
print("<br><b>PC at night:<font size=\"\" color=\"green\"></b><B> ON</B></font>"); }
else
{
print("<br><b>PC at night:<font size=\"\" color=\"red\"></b><B> OFF</B></font>");
}