Noob guide to api

Discussion in 'General' started by ginner159, Jul 23, 2013.

  1. ginner159

    ginner159 New Member

    Bit outa my depth

    thanks for the git repo.

    as for the rest im abit outa my depth! ive only been learning php whilst making this so im really not sure on what i'm meant to do :confused:. I dont want to go and change something in the database and poof all is lost :eek: especially if people want a copy of it.

    Ill finish this basic api off first then start a new thread for getting technical

    3 questions;

    1) whats the aux for in the add dns record api array??
    2) what should i do about the serial? i know it should be set as YYYYMMDDnn can i just leave it as '' and the api hooks will make it for me or is there some code to set it correctly?


    Thanks as always!
     
    Last edited: Nov 4, 2013
  2. ginner159

    ginner159 New Member

    DNS creation problem

    Hello all,

    I thought i had it setup correctly to automatically create a dns zone and add a few dns records but im getting a soap error like this:

    data_processing_errormbox_error_regex<br />
    SOAP Error: mbox_error_regex

    ive attached the php file. It makes the client and creates a website perfectly fine can anyone point out what im doing wrong? i think its that point of looking at it so much i cannot see my mistake :(
     

    Attached Files:

  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The value for the mbox field of the zone is wrong. This value is a email address were yiu replace the @ with a dot.
     
  4. ginner159

    ginner159 New Member

    in my scrpit tho i have set it so that it creates a variable from the email entered which does a replace of the @ cymbol for a dot on line 401. Or have i not used the correct php function?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The error "mbox_error_regex" meas that the regex which is defined for the mbox field in the dns_soa form file failed. so something must be wring with the value that you send to the function that adds the zone.
     
  6. ginner159

    ginner159 New Member

    found it! forgot the trailing dot!

    is there anyway to auto increment the customer number?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    This will be available in the next update (3.0.5.4).
     
  8. ginner159

    ginner159 New Member

    Awesome! is there anything i can do as a temporary fix?
     

Share This Page