ALTxVentures / plesk-cloudflare-servershield

5 stars 6 forks source link

htdocs/servershield.php is confused about $plesk_rec_name, $plesk_zone_name (fn processZoneRecSet) #1

Closed williamli closed 10 years ago

williamli commented 10 years ago

for faceit.com.hk, the plugin is sending .com.hk as ‘plask_zone_name’ and the following error is returned

preview

williamli commented 10 years ago

problems seems to be caused by https://github.com/19degrees/plesk-cloudflare-servershield/blob/master/plib/library/regDomain.php

williamli commented 10 years ago

effectiveTLDs.inc.php contains all of the correct TLDs. seems like it is being used incorrectly in getRegisteredDomain or findRegisteredDomain

williamli commented 10 years ago

https://github.com/19degrees/plesk-cloudflare-servershield/blob/master/plib/library/regDomain.php#L69 print_r($tldTree); => nothing...

williamli commented 10 years ago

seems like global $tldTree; didn’t get the tree from require_once("effectiveTLDs.inc.php”);

Note: require_once("effectiveTLDs.inc.php"); print_r($tldTree);

dumps the tldTree successfully