ZM_SYSTEM_SHUTDOWN

The system will need to have sudo installed and the following added to /etc/sudoers

www-data ALL=NOPASSWD: /sbin/shutdown

to perform the shutdown or reboot