The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Acc. creation complete msgs are stuck together :(

Discussion in 'General Discussion' started by iHost.net.nz, Aug 7, 2004.

  1. iHost.net.nz

    iHost.net.nz Well-Known Member

    Joined:
    Aug 6, 2004
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I made a simple script to create accounts.. but when it processes and outputs the stuff to say it's creating.. it has something like:

    WWWAcct 8.0 by J. Nick Koston Using Delegated Ips List! +===================================+ | New Account Info | +===================================+ | Domain: test.com | Ip: 66.98.252.38 (n) | HasCgi: y | UserName: thatuser | PassWord: password | CpanelMod: x2 | HomeRoot: /home2 | Quota: 1 Meg | NameServer1: ns1.ihost.net.nz | NameServer2: ns2.ihost.net.nz | NameServer3: | NameServer4: | Contact Email: none@nah.com+===================================+ User thatser added Changing password for thatuser Password for thatuser has been changed Keeping Shell Access (y) Jail Shell Enabled Changing shell for thatser. Shell changed. Copying skel files from /home2/ihost/cpanel3-skel/ to /home2/thatuser/ Using redhat 7.1/mdk 8.0 Using new quota support (uid 321 1024 1024 ): Filesystem blocks soft hard inodes soft hard /dev/hda3 0 1024 1024 1 0 0 /dev/hdb1 8 1024 1024 2 0 0 Name Virtual Host already exists Added Entries to httpd.conf (noip) Added Named Entry Added Named File Bind reloading on delta using rndc Bind reloading on alpha using rndc Using Frontpage 5.x! Starting install, port: 80. Creating web http://www.moodo.com. Chowning Content in service /. Install completed. Starting chown, port: 80, web: "/". DocumentRoot: "/home2/thatser/public_html" Setting Password Frontpage passthough auth enabled! Restarting apache Ftp Password Files synced send to CONTACTEMAIL (3) [3] Vhost Passwords synced wwwacct creation finished
    Account Creation Complete!!!

    Its all stuck together :( How do I make it so it outputs like WHM? (line by line..)

    Cheers :D
     
  2. sjackson909

    sjackson909 Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Columbus, OH
    what does your script look like. I'm not falling you very well.

    Thanks
    -Seth
     
  3. mikerobinson

    mikerobinson Member

    Joined:
    Apr 12, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    It probably IS outputting it like WHM. The only problem is that you are probably viewing it in HTML format. Before you echo the output, try replacing the line breaks (\n) with <br>.
     
  4. jester.ro

    jester.ro Well-Known Member
    PartnerNOC

    Joined:
    Feb 6, 2004
    Messages:
    304
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucharest, Romania
    cPanel Access Level:
    DataCenter Provider
    if you use php, pass the output trough the nl2br function.
    it replaces \n with <br>
     
Loading...

Share This Page