zimbraAddressCheck.php 562 B

12345678910111213141516171819
  1. <?php
  2. $allowed_host = 'admin.seecure.ch';
  3. $host = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST);
  4. if(substr($host, 0 - strlen($allowed_host)) != $allowed_host) {
  5. die("This file cannot be accessed directly");
  6. }
  7. define("CLIENTAREA", true);
  8. require_once(__DIR__ . '/../../../init.php');
  9. require_once(ROOTDIR . '/includes/dbfunctions.php');
  10. require_once dirname(__FILE__) . '/zimbraSingle.inc';
  11. $whmcs = App::self();
  12. $whmcs->set_req_var('id', $_GET['pid']);
  13. if(zimbraSingleDoesEMailExist($_GET['name'], $_GET['domain'])) {
  14. echo 'no';
  15. } else {
  16. echo 'yes';
  17. }