|
|
@@ -39,44 +39,6 @@ function siteBuilder_MetaData() {
|
|
|
|
|
|
function siteBuilder_ConfigOptions() {
|
|
|
siteBuilderCreateTables();
|
|
|
- $api = new SiteProApiClient('https://site.pro/', 'apikey0', '993yVHwC05TLsx2JI2XFlAhkkPUxR6JbQUYbI.a5HiRtmNV9');
|
|
|
-
|
|
|
- try {
|
|
|
- // this call is used to open builder, so you need to set correct parameters to represent users website you want to open
|
|
|
- // this data usually comes from your user/hosting manager system
|
|
|
- $res = $api->remoteCall('api/builder/plans', array(
|
|
|
- 'action' => 'read',
|
|
|
- 'brandId' => '852604',
|
|
|
- 'builderPlan' => 'Free'
|
|
|
- ));
|
|
|
- if (!$res || !is_object($res)) {
|
|
|
- logModuleCall(
|
|
|
- 'siteBuilder',
|
|
|
- __FUNCTION__,
|
|
|
- $params,
|
|
|
- 'Error: Response format error',
|
|
|
- $res
|
|
|
- );
|
|
|
- return 'Error: Response format error';
|
|
|
- } else {
|
|
|
- logModuleCall(
|
|
|
- 'siteBuilder',
|
|
|
- __FUNCTION__,
|
|
|
- $params,
|
|
|
- 'Debug',
|
|
|
- $res
|
|
|
- );
|
|
|
- }
|
|
|
- } catch (\Exception $e) {
|
|
|
- logModuleCall(
|
|
|
- 'siteBuilder',
|
|
|
- __FUNCTION__,
|
|
|
- $params,
|
|
|
- 'Error: Request error',
|
|
|
- $e->getMessage()
|
|
|
- );
|
|
|
- return 'Error: Request error';
|
|
|
- }
|
|
|
return ["BuilderURL" => [
|
|
|
"FriendlyName" => "Builder URL", # Full Builder URL (prefix//hostname:port/)
|
|
|
"Type" => "text", # Text Box
|
|
|
@@ -88,7 +50,7 @@ function siteBuilder_ConfigOptions() {
|
|
|
"Type" => "text", # Text Box
|
|
|
"Size" => "25", # Defines the Field Width
|
|
|
"Description" => "Set the hostingPlan ID for this Product",
|
|
|
- "Default" => "https://builder.thurdata.ch/",
|
|
|
+ "Default" => "Free",
|
|
|
], [
|
|
|
"FriendlyName" => "Quota in MB",
|
|
|
"Type" => "text", # Text Box
|