envyarchive.php 310 B

123456789101112
  1. <?php
  2. //extracting and storing envy-devices configs into database
  3. if (ubRouting::get('action') == 'envyarchive') {
  4. if ($alterconf['ENVY_ENABLED']) {
  5. $envy = new Envy();
  6. $envy->storeArchiveAllDevices();
  7. die('OK:ENVYARCHIVE');
  8. } else {
  9. die('ERROR:ENVY DISABLED');
  10. }
  11. }