<?php require("miniyaml.inc"); require("masterapi_client.inc"); $domains = array( 'domain1.cz', 'domain2.cz', 'domain3.cz', ); $client = new MasterApi_Client(array( "username" => "GR:PLATCE", "password" => "open sesame", "server_url" => "https://reseller.forpsi.hu/masterapi/server.php", )); foreach($domains as $dom){ $result = $client->sendCommand("update cz domain",array( "domain" => $dom, "nsset" => "GRDNS", ),array( "contact" => "ADMIN_ID", "password" => "admin password", )); if($result->IsSuccess()){ echo "$dom: ok\n"; }else{ // HIBA! echo "commnad WAS NOT executed successfuly\n"; echo "------------------------------------\n"; echo "message: ".$result->getMessage()."\n"; echo "temporary error: ".($result->IsTemporaryError() ? "yes (request should be repeated)" : "no")."\n"; echo "------------------------------------\n"; break; } sleep(2); }
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add st@forpsi.hu to your trusted senders list in your email software.
A code was sent to the recovery email address. Please provide the 6-digit code.
A code can be retrieved from your authentication app. Please provide the 6-digit code.
An email was sent to your recovery email address. If you need further assistance, please contact your system admin.