EZP-21913: Fixed globals for scripts:

- updateniceurls.php
- runcronjobs.php
- ezasynchronouspublisher.php
- ezsubtreecopy.php