blob: ecf5d91cb2806d45ce4b625923feb12d9d10de14 (
plain) (
tree)
|
|
<?php
if ($type === '~poweron') {
Database::exec("UPDATE remoteaccess_machine SET password = NULL WHERE machineuuid = :uuid",
['uuid' => $uuid]);
} elseif ($type === '~poweroff') {
Database::exec("UPDATE remoteaccess_machine SET woltime = 0 WHERE machineuuid = :uuid",
['uuid' => $uuid]);
}
|