rebuilduserdatacache.php 607 B

1234567891011121314151617
  1. <?php
  2. /*
  3. * users data cache rebuild for external scripts
  4. */
  5. if ($_GET['action'] == 'rebuilduserdatacache') {
  6. $cacheAddressArr = zb_AddressGetFulladdresslist();
  7. $cacheAddressArr = serialize($cacheAddressArr);
  8. $cacheIpsArr = zb_UserGetAllIPs();
  9. $cacheIpsArr = serialize($cacheIpsArr);
  10. $cacheMacArr = zb_UserGetAllIpMACs();
  11. $cacheMacArr = serialize($cacheMacArr);
  12. file_put_contents('exports/cache_address', $cacheAddressArr);
  13. file_put_contents('exports/cache_ips', $cacheIpsArr);
  14. file_put_contents('exports/cache_mac', $cacheMacArr);
  15. die('OK:REBUILDUSERDATACACHE');
  16. }