Marius Cramer
2015-06-02 6f2d95f4f36043e38b14599f5878af320566f8f4
interface/web/admin/remote_action_osupdate.php
@@ -32,6 +32,7 @@
//* Check permissions for module
$app->auth->check_module_permissions('admin');
$app->auth->check_security_permissions('admin_allow_osupdate');
//* This is only allowed for administrators
if(!$app->auth->is_admin()) die('only allowed for administrators.');
@@ -75,15 +76,8 @@
   }
   foreach ($servers as $serverId) {
      $sql = "INSERT INTO sys_remoteaction (server_id, tstamp, action_type, action_param, action_state, response) " .
         "VALUES (".
         $app->functions->intval($serverId) . ", " .
         time() . ", " .
         "'os_update', " .
         "'', " .
         "'pending', " .
         "''" .
         ")";
      $app->db->query($sql);
         "VALUES (?, UNIX_TIMESTAMP(), 'os_update', '', 'pending', '')";
      $app->db->query($sql, $serverId);
   }
   $msg = $wb['action_scheduled'];
}