Versio api

Gestart doorWouterp2 reacties101 weergaven

3 berichten · pagina 1 van 1

Wouterp

Lid · Topicstarter

Berichten
1.631
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Heey,

Zouden jullie mij kunnen helpen met de versio api?

Als ik hun domein check gebruik:

[COLOR= #0000BB]<?[/COLOR]
    [URL="http://www.php.net/require"]require[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"../class_versio_api.php"[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]POST[/COLOR][COLOR= #007700]){[/COLOR]
        [URL="http://www.php.net/unset"]unset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$command[/COLOR][COLOR= #007700]);[/COLOR]
       [COLOR= #0000BB]$command[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
       [COLOR= #DD0000]"command"[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]"DomainsCheckAvailability"[/COLOR][COLOR= #007700],[/COLOR]
       [COLOR= #DD0000]"domain"[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]domein[/COLOR][COLOR= #007700]],[/COLOR]
       [COLOR= #DD0000]"tld"[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]tld[/COLOR][COLOR= #007700]]
       );[/COLOR]

       [COLOR= #0000BB]$api[/COLOR] [COLOR= #007700]= new[/COLOR] Versio_api[COLOR= #007700]();[/COLOR]
       [COLOR= #0000BB]$versio[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$api[/COLOR][COLOR= #007700]->[/COLOR]api_send[COLOR= #007700]([/COLOR] [COLOR= #0000BB]$command[/COLOR] [COLOR= #007700]);[/COLOR]

       [URL="http://www.php.net/IF"]IF[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$versio[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]success[/COLOR][COLOR= #007700]]==[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
          [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Fout opgetreden. Fout code: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$versio[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]command_response_code[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]". Fout text: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$versio[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]command_response_message[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);
       }[/COLOR]
       [URL="http://www.php.net/else"]else[/URL]
       [COLOR= #007700]{[/COLOR]
          [URL="http://www.php.net/IF"]IF[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$versio[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]status[/COLOR][COLOR= #007700]]==[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR]
                  [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"De domeinnaam is beschikbaar. "[/COLOR][COLOR= #007700]);
            }[/COLOR]
            [URL="http://www.php.net/else"]else[/URL]
            [COLOR= #007700]{[/COLOR]
                 [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"De domeinnaam is bezet. "[/COLOR][COLOR= #007700]);
            }
       }
    }[/COLOR]
?>
<form method="post">
Domein:<br />
<input type="text" name="domein" /><br />
Tld:<br />
<input type="text" name="tld" /><br />
<input type="submit" value="verzenden" />
</form>


Krijg ik de error:
Fout opgetreden. Fout code: 100-000-001. Fout text: ip address 159.253.0.111 not allowed to connect to this account

Op google vind ik er niks over... <-Dit is het ip van mijn reseller.
0
Wouterp

Lid · Topicstarter

Berichten
1.631
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jha heb ik.

toevoeging op 18 maart 2012, 14:40:21:
Zie het al had copy paste foutje bedankt!
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren