11function getZones($key, $email, $page = 1, $per_page = 100) {
2 $cmd = 'curl -s -X GET "https://api.cloudflare.com/client/v4/zones?'.
3 'status=active&page=$page&per_page=$per_page&order=status&direction=desc&match=all" -H "X-Auth-Email: '.$email.
4 '" -H "X-Auth-Key: '.$key.
5 '" -H "Content-Type: application/json"';
6 return json_decode(shell_exec($cmd));
7}
82
93
104
115
126
137
14