|
@@ -756,15 +756,6 @@ function siteBuilder_revSiteConfirm($params) {
|
|
|
* @return string "success" or an error message
|
|
* @return string "success" or an error message
|
|
|
*/
|
|
*/
|
|
|
function siteBuilder_revSite($params) {
|
|
function siteBuilder_revSite($params) {
|
|
|
- logModuleCall(
|
|
|
|
|
- 'siteBuilder',
|
|
|
|
|
- __FUNCTION__,
|
|
|
|
|
- $params,
|
|
|
|
|
- 'debug rev params',
|
|
|
|
|
- $_POST
|
|
|
|
|
- );
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
if(!filter_var($_POST['s'], FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)){
|
|
if(!filter_var($_POST['s'], FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)){
|
|
|
return 'Error: invalid site name';
|
|
return 'Error: invalid site name';
|
|
|
}
|
|
}
|
|
@@ -791,6 +782,7 @@ function siteBuilder_revSite($params) {
|
|
|
'resellerClientAccountId' => $params['serviceid'], // (required) ID of website/user in your system
|
|
'resellerClientAccountId' => $params['serviceid'], // (required) ID of website/user in your system
|
|
|
'username' => $params['serverusername'], // (optional) authorization username to be used with API endpoint
|
|
'username' => $params['serverusername'], // (optional) authorization username to be used with API endpoint
|
|
|
'password' => 'your-secure-password', // (optional) authorization password to be used with API endpoint
|
|
'password' => 'your-secure-password', // (optional) authorization password to be used with API endpoint
|
|
|
|
|
+ 'more' => true
|
|
|
));
|
|
));
|
|
|
if (!$res || !is_object($res)) {
|
|
if (!$res || !is_object($res)) {
|
|
|
logModuleCall(
|
|
logModuleCall(
|