Does anyone know how to use the doadddomain.html from the command line or in a script?
I havebut it is not adding the subdomain.Code:<?php $new = "newsub"; $host = "www.mydomain.com"; $domain = "mydomain.com"; $cpaneluser = "username"; $cpanelpass = "password"; $cpaneltheme= "x"; if(!isset($newuser)) { $socket = fsockopen($domain,2082); $authstr = "$cpaneluser:$cpanelpass"; $pass = base64_encode($authstr); $in = "GET /frontend/x/subdomain/doadddomain.html?domain=$new&rootdomain =$domain\r\n HTTP/1.0\r\nAuthorization: Basic $pass \r\n"; fputs($socket,$in); fclose( $socket ); } else print "OK"; // this means nothing ?>



LinkBack URL
About LinkBacks
Reply With Quote




