A lot off user where complaining that they get a warning during the night, whene they shut down the pc.
so i make a little notice for the mods, so they can see. maby you like it maby you dont :blink:
It,s yes or No in profile en show in userdetails above the frame if its on or not at night
thx to "sarges" for this litle hack
sql
finde in account.php
after add
finde
after add
save and close
open account-details.php and above
add
save and close
DONE..... ;)
so i make a little notice for the mods, so they can see. maby you like it maby you dont :blink:
It,s yes or No in profile en show in userdetails above the frame if its on or not at night
thx to "sarges" for this litle hack
sql
ALTER TABLE `users` ADD `pcoff` ENUM( 'yes', 'no' ) DEFAULT 'yes' NOT NULL;finde in account.php
$teams .= "<option value=$sasha[id]" . ($CURUSER["team"] == $sasha['id'] ? " selected" : "") . ">$sasha[name]</option>n";after add
print ("<TR><TD align=right class=table_col2><B>PC ON:</B> </td><td class=table_col2><input type=radio name=pcoff" . ($CURUSER["pcoff"] == "yes" ? " checked" : "") . " value=yes><B>PC on at night</B><input type=radio name=pcoff" . ($CURUSER["pcoff"] == "no" ? " checked" : "") . " value=no><B>PC off at night.</B></td></tr>");finde
$updateset[] = "age = '$age'";after add
$pcoff = $_POST["pcoff"];
$updateset[] = "pcoff = " . sqlesc($pcoff)
save and close
open account-details.php and above
begin_frame("User Details for " . $user["username"] . "");add
// PC on-off night
if ($CURUSER["pcoff"] == 'yes')
{
print ("<br /><b> PC on the night </b><font color="green" ><b> Yes </b></ font>");
}
else
{
print ("<br /><b> PC on the night </b><font color="red" ><b> NO </b></ font>");
}
// PC on-of night END
save and close
DONE..... ;)
