andre 7 bulan lalu
induk
melakukan
b8fa777f73
1 mengubah file dengan 8 tambahan dan 1 penghapusan
  1. 8 1
      siteBuilder.php

+ 8 - 1
siteBuilder.php

@@ -390,6 +390,13 @@ function siteBuilder_ClientArea($params) {
 		}
 		}
 		array_push($clientInfo['sites'],['name' => $site->name, 'sslProd' => $sslProd, 'sslDev' => $sslDev]);
 		array_push($clientInfo['sites'],['name' => $site->name, 'sslProd' => $sslProd, 'sslDev' => $sslDev]);
 	}
 	}
+	logModuleCall(
+		'siteBuilder',
+		__FUNCTION__,
+		$params,
+		'debug',
+		$clientInfo
+		);
 	return array(
 	return array(
         'tabOverviewReplacementTemplate' => 'clientarea',
         'tabOverviewReplacementTemplate' => 'clientarea',
         'vars' => $clientInfo,
         'vars' => $clientInfo,
@@ -570,7 +577,7 @@ function siteBuilder_editSite($params) {
 			'type' => 'internal',				// (required) 'internal'
 			'type' => 'internal',				// (required) 'internal'
 			'domain' => $site,			// (required) domain of the user website you want to edit
 			'domain' => $site,			// (required) domain of the user website you want to edit
 			'lang' => 'de',						// (optional) 2-letter language code, set language code you whant builder to open in
 			'lang' => 'de',						// (optional) 2-letter language code, set language code you whant builder to open in
-			'apiUrl' => '/deployDev', // (required) API endpoint URL
+			'apiUrl' => '/deploy' . $params['username'] . '/' . $site, // (required) API endpoint URL
 			'resellerClientAccountId' => $params['serviceid'],	// (required) ID of website/user in your system
 			'resellerClientAccountId' => $params['serviceid'],	// (required) ID of website/user in your system
 //			'username' => 'example_user',		// (optional) authorization username to be used with API endpoint
 //			'username' => 'example_user',		// (optional) authorization username to be used with API endpoint
 //			'password' => 'example_password',	// (optional) authorization password to be used with API endpoint
 //			'password' => 'example_password',	// (optional) authorization password to be used with API endpoint