Automate user signup.

Discussion in 'Tips/Tricks/Mods' started by Tommahawk, Aug 15, 2007.

  1. bswinnerton

    bswinnerton New Member

    Also, I don't know if this is part of my problem but when I add remote users, and give them whatever access they're supposed to have they don't show up after I click save.

    EDIT - Fixed this by re-uploading the remoting package from

    One of the updates may have broken it.
    Last edited: Mar 24, 2008
  2. bswinnerton

    bswinnerton New Member

    P.S. the way that I fixed the
    Fatal error: Cannot redeclare class soapclient in /var/www/web1/web/autosignup/soap.lib.php on line 4101
    Was by going into the autosignup.php and soap.lib.php and changed all instances of soapclient to soap_client.
  3. bswinnerton

    bswinnerton New Member


    I have everything uploaded and can fill in all of the forms, but for some reason nothing happens after i click submit. I just get the webpage that says

    But after logging into ispconfig, nothing is there. Are there any logs or anything that I can check out?

    Also, should I be filling in this in autosignup.php:

    if ($parameters['user'] == "") {
    		echo "Please enter your remoting framework username on line 11<br />";
    		$e = 1;
    	if ($parameters['pass'] == "") {
    		echo "Please enter your remoting framework password on line 11<br />";
    		$e = 1;
    	if ($server == "") {
    		echo "Please enter your server domain name on line 6<br />";
    		echo "e.g $server = \"\";<br />";
    		$e = 1;
    	if ($serverpath == "") {
    		echo "Please enter the path to your soap server on line 7<br />";
    		echo "e.g $serverpath=\"\";<br />";	//soap server
    		$e = 1;
  4. rvarkevisser

    rvarkevisser New Member

    The download you provided, doesn't work anymore. Can you tell us which version of ISPConfig you use and how you installed the framework? I've been trying to get this to work for ages, but somehow doesn't work.

  5. bswinnerton

    bswinnerton New Member

    rvarkevisser, have you set up the remoting framework for ispconfig? You have to use the update manager in ispconfig its a .pkg file.

    What exactly doesn't work?
  6. grandpagenocide

    grandpagenocide ISPConfig Developer ISPConfig Developer

    it works in all versions. I am going to guess that you upgraded your ispconfig, and did not reinstall the remote framework. If you have upgraded or downgraded, you must reinstall it.

    no you dont fill those in.

    the trick to getting it working is install the remote package, then edit the language file en.lng if your using english, i am at work right now but will post the edit when i get home.

    And guys I am writing a new autosignup with recurring billing and a client and admin interface with paypal, its almost complete. Give me a few days and ill put it up
  7. bswinnerton

    bswinnerton New Member

    That would be great!

    If I edit that english file, should that solve my problem where it doesn't change anything in ISPConfig? Or is that a separate problem that i'm having
  8. grandpagenocide

    grandpagenocide ISPConfig Developer ISPConfig Developer

    bswinnerton if you installed it properly, it should fix the whole problem. Also check your server address in the autosignup script and if your https or http, make sure its correct.
  9. bswinnerton

    bswinnerton New Member

    Well the problem is I don't know if I installed correctly or not. I am pretty sure that I did because if i go to: I get something that says

    <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="">
    <faultactor>method '' not defined in service ''</faultactor>
    <soapVal xsi:type="xsd:string"/>
    soap_server: entering parseRequest() on 14:14 2008-03-25
    soap_server: Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    soap_server: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    soap_server: Accept-Encoding: gzip,deflate
    soap_server: Accept-Language: en-us,en;q=0.5
    soap_server: Connection: keep-alive
    soap_server: Cookie: roundcube_sessid=ab406364028acf13801bb0833ae48a55; PHPSESSID=cea95f0ad46f03bec4a0085d684e9812; sessionispconfig=8b7245aec99baa535176e897e2cf38a1
    soap_server: Host:
    soap_server: Keep-Alive: 300
    soap_server: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9b4) Gecko/2008030317 Firefox/3.0b4
    soap_server: got encoding: UTF-8
    soap_server: method name: 
    soap_server: method '' not found!
    soap_server: parser debug: 
    soap_parser: xml was empty, didn't parse!
    soap_server: server sending...
    Also in the autosignup.php file should I be putting in the remote username and password here?

    $parameters = array('user' =>
    If all of that is correct, How can I try setting this up again the correct way?

    Thanks for all of your help!
    Last edited: Apr 14, 2008
  10. grandpagenocide

    grandpagenocide ISPConfig Developer ISPConfig Developer

    yes in $parameters = array('user' => you put your username and pass, if you have my script you see where it says user grandpa pass genocide change that to your username and pass
    in /home/admispconfig/ispconfig/lib/lang/en.lng comment out this section at the bottom and it will work
    Ill ask till or falko if i can just write a guide to remote install and set up alot of people asking about it.
    Last edited: Mar 25, 2008
  11. bswinnerton

    bswinnerton New Member

    Last edited: Mar 25, 2008
  12. grandpagenocide

    grandpagenocide ISPConfig Developer ISPConfig Developer

    bswinnerton and if you go back i edited my previous post with the edits for the en.lng file. Ill get to putting my downloads page back up this week
  13. bswinnerton

    bswinnerton New Member


    I'm still having trouble even with your script. I think something might be wrong with the remoting framework. Is there a quick simple way to completely remove it, and then I can just re upload the .pkg file?
  14. menki

    menki New Member


    The script ist realy OK. I have install it and with grandpagenocide help i work on it.
    Please make sure your remoting user password contains letters and numbers!!
    Without numbers in the pasword it will not WORK!

  15. grandpagenocide

    grandpagenocide ISPConfig Developer ISPConfig Developer

    and when a user signs up password must be numbers and letters on non english systems in english only letters is fine, why i dunno
  16. bswinnerton

    bswinnerton New Member

    Alright, I have uploaded the script, commented out those lines. But whenever I fill out all the forms and click submit, it says everything worked great. When I go to ISPConfig however nothing is there. I think that I may have messed up the remoting framework, is there a way to uninstall or remove it so that I can start over?

  17. grandpagenocide

    grandpagenocide ISPConfig Developer ISPConfig Developer

    if it worked you will get 3 sets of 2 digit #'s, and did you restart ispconfig?
  18. bswinnerton

    bswinnerton New Member

    No, I didn't restart ISPConfig, I'll have to look up how to do that LOL but I only got one set of 2 digit numbers.

    ..After restarting ISPConfig I get no numbers.
    Last edited: Mar 26, 2008
  19. PingBomb

    PingBomb New Member


    can we just use php scrip instead of ispconfig that change manuali DNS com under ISPconfig and make special reaload at this interface that tell to ISPconfg DB that change is correct ? Ant thats all :)

    sorry i just dot fisnish to all posts...

  20. EWNOC

    EWNOC New Member

    Please Help

    I am trying to get the script to run i have installed remoting and confg the user and added it to the script but every time I click submit I get the header and tht is it feel free to try it to what i am talking about ...

    here is the code you can see i have tried to get some echo's after the serverpath they never show
    	$e = 0;
    //	$server = ""; 		//for subdomains
    //	$serverpath = "";	//soap server
    	$server = ""; 	//for subdomains
    	$serverpath="";	//soap server
    	$parameters = array('user' => '*****', 'pass' => *******);
    	if ($parameters['user'] == "") {
    		echo "Please enter your remoting framework username on line 11<br />";
    		$e = 1;
    	if ($parameters['pass'] == "") {
    		echo "Please enter your remoting framework password on line 11<br />";
    		$e = 1;
    	if ($server == "") {
    		echo "Please enter your server domain name on line 6<br />";
    		echo "e.g $server = \"\";<br />";
    		$e = 1;
    	if ($serverpath == "") {
    		echo "Please enter the path to your soap server on line 7<br />";
    		echo "e.g $serverpath=\"\";<br />";	//soap server
    		$e = 1;
    	if ($e == 1) exit();
    ?><style type="text/css">
    body {
    	background-color: #999999;
    	background-image: url();
    <p align="center"><img src="images/back.gif" width="800" height="174"></p>
    <table align="center">
    <div class="nifty" style="width: 586px">
    <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
    <div class="inside" style="text-align: left; height: 654px">
    <div style="display: block; padding: 10px 10px 0px 10px; text-decoration: none">
    	$id = 0;
    	if (isset($_GET['id'])) $id = $_GET['id'];
    	switch ($id) {
    		case 1:
    		    $plan = " : Standard Signup";
    		case 2:
    		    $plan = " : Corperate Site";
    		case 3:
    		    $plan = " : BUSINESS ONLINE";
    		case 4:
    		    $plan = " : COMPANY ONLINE";
    		case 5:
    		    $plan = " : CORPERATION ONLINE";
    		case 6:
    		    $plan = " : UNLIMITED ONLINE";
    		case 7:
    		    $plan = " : RESELLER Signup (REQUIRES PRE AUTHORIZATION";
    		    $plan = " : Standard Signup";
    <h2><? echo $plan; ?></h2>
    $df = 0;
    if (isset($_POST['submit'])) {
    //echo "clicked on submit";
    	if (strlen($_POST['company']) < 2) $error = "Please enter a company name";
    	elseif (strlen($_POST['firstname']) < 2) $error = "Please enter a firstname";
    	elseif (!preg_match('/^[a-zA-Z]+$/', $_POST['firstname']))  $error = "Please enter a firstname";
    	elseif (strlen($_POST['lastname']) < 2) $error = "Please enter a lastname";
    	elseif (!preg_match('/^[a-zA-Z]+$/', $_POST['lastname'])) $error = "Please enter a lastname";
    	elseif (strlen($_POST['address']) < 4) $error = "Please enter an address";
    	elseif (strlen($_POST['suburb']) < 2) $error = "Please enter a suburb";
    	elseif (strlen($_POST['state']) < 2) $error = "Please enter a state";
    	elseif (empty($_POST['country'])) $error = "Please enter a country";
    	elseif (strlen($_POST['postcode']) < 4) $error = "Please enter a postcode";
    	elseif (strlen($_POST['telephone']) < 5) $error = "Please enter a telephone number";
    	elseif (!preg_match('/^[0-9]+$/', $_POST['telephone'])) $error = "Please enter a valid telephone number";
    	elseif (empty($_POST['email'])) $error = "Please enter an email address";
    	elseif (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $_POST['email'])) $error="Please enter a valid email address";
    	elseif (empty($_POST['domain']) && $_POST['fqdn'] == 1) $error = "Please enter a domain name";
    	elseif (empty($_POST['domain']) && $_POST['fqdn'] == 2) $error = "Please enter a sub-domain name";
    	elseif ($_POST['fqdn'] == 1 && !preg_match("/^([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $_POST['domain'])) $error = "Please enter a valid domain name";
    	elseif ($_POST['fqdn'] == 2 && !ereg("^[A-Za-z0-9]{1,16}$",$_POST['domain'])) $error = "Please enter a valid sub-domain";
    	elseif (strlen($_POST['username']) < 5) $error = "Please enter a valid username";
    	elseif (!ereg("^[A-Za-z0-9]{1,16}$",$_POST['username'])) $error = "Invalid username. Maximum 15 chars and only letters &amp; numbers";
    	elseif (strlen($_POST['password']) < 5) $error = "Please enter a valid password";
    	elseif (!ereg("^[A-Za-z0-9]{1,16}$",$_POST['password'])) $error = "Invalid password. Maximum 15 chars and only letters &amp; numbers";
    	else {
    		$company = $_POST['company'];
    		$title = $_POST['title'];
    		$firstname = $_POST['firstname'];
    		$lastname = $_POST['lastname'];
    		$address = $_POST['address'];
    		$suburb = $_POST['suburb'];
    		$state = $_POST['state'];
    		$country = $_POST['country'];
    		$postcode = $_POST['postcode'];
    		$telephone = $_POST['telephone'];
    		$email = $_POST['email'];
    		$fqdn = $_POST['fqdn'];
    		$domain = $_POST['domain'];
    		$username = $_POST['username'];
    		$password = $_POST['password'];
    //echo "test before login call";
    //echo "\n\n";
    		//echo $serverpath;
     $soap_client = new soap_client($serverpath);
    echo "test after server path";
    	//$soap_client->soap_defencoding = "UTF-8";
    //username and password array moved to top
    	$session_id = $soap_client->call('login', $parameters);  //login
    echo "test after login call";
    I know its not the full code of the page that was just alot to put on anything I am missing I have the soap.lib.php in the same folder and I am not sure what to do aboutthe ispconfig_kunde.lib.php there is not a lot of info on that

    Any help would be great
    Sorry for being the n00b

Share This Page