File: 0.00.0a/bin/clearalert.sh (View as HTML)

  1: #!/usr/bin/php -q
  2: <?php
  3: require("include.php");
  4: $NATS->Start();
  5: 
  6: $q="UPDATE fnalert SET closedx=".time()." WHERE closedx=0";
  7: $NATS->DB->Query($q);
  8: echo "Closed ".$NATS->DB->Affected_Rows()." Alerts\n";
  9: 
 10: $q="UPDATE fnnode SET alertlevel=0 WHERE alertlevel>1";
 11: $NATS->DB->Query($q);
 12: echo "Closed ".$NATS->DB->Affected_Rows()." Node Alerts\n";
 13: 
 14: $NATS->Stop();
 15: 
 16: ?>
 17: 
 18: