Sfoglia il codice sorgente

cleanup unused file

andre 5 anni fa
parent
commit
54d020f82d
1 ha cambiato i file con 0 aggiunte e 19 eliminazioni
  1. 0 19
      zimbraAddressCheck.php

+ 0 - 19
zimbraAddressCheck.php

@@ -1,19 +0,0 @@
-<?php
-$allowed_host = 'admin.seecure.ch';
-$host = parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST);
-
-if(substr($host, 0 - strlen($allowed_host)) != $allowed_host) {
-  die("This file cannot be accessed directly");
-}
-require_once("api/Zm/Auth.php");
-require_once("api/Zm/Account.php");
-
-$account_name = $_GET['name'] . "@" .  $_GET['domain'];
-$api = new Zm_Auth('192.168.16.225', 'admin@thurdata.local', 'Technics2312', "admin");
-$login = $api->login();
-$apiAccountManager = new Zm_Account($api);
-if( $apiAccountManager->accountExists($account_name)) {
-	echo 'no';
-} else {
-	echo 'yes';
-}