A late answer for the OP but may come in useful for someone else:
That code provided by the OP (froxlor.php) should be added to the froxlor script, not THT. Then you need to modify da.php (in THT) with:
public function signup($server, $reseller, $user = '', $email = '', $pass = '') {
...
$testFroxlor = new altruFroxlor("127.0.0.1","3306","froxlor","superpassword","froxlor");
$cust_id = $testFroxlor->createCustomer(...);
$testFroxlor->createDomain(...);
return true;
}
How to use:
<?php
include_once ("classes/altrufroxlor.class.php");
$testFroxlor = new altruFroxlor("127.0.0.1","3306","froxlor","supersecretpassword","froxlor");
$cust_id = $testFroxlor->createCustomer("testclass","testpassword","2048","10","test user",
"test","[email protected]",3,10,3,3,3);
$testFroxlor->createDomain($cust_id,"testdomain.com","testclass");
$testFroxlor->renderOpenCP("testclass","testpassword","https://localhost",true,true);
?>
That code provided by the OP (froxlor.php) should be added to the froxlor script, not THT. Then you need to modify da.php (in THT) with:
public function signup($server, $reseller, $user = '', $email = '', $pass = '') {
...
$testFroxlor = new altruFroxlor("127.0.0.1","3306","froxlor","superpassword","froxlor");
$cust_id = $testFroxlor->createCustomer(...);
$testFroxlor->createDomain(...);
return true;
}
How to use:
<?php
include_once ("classes/altrufroxlor.class.php");
$testFroxlor = new altruFroxlor("127.0.0.1","3306","froxlor","supersecretpassword","froxlor");
$cust_id = $testFroxlor->createCustomer("testclass","testpassword","2048","10","test user",
"test","[email protected]",3,10,3,3,3);
$testFroxlor->createDomain($cust_id,"testdomain.com","testclass");
$testFroxlor->renderOpenCP("testclass","testpassword","https://localhost",true,true);
?>