|
@@ -36,6 +36,35 @@ function siteBuilder_MetaData() {
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
function siteBuilder_ConfigOptions() {
|
|
function siteBuilder_ConfigOptions() {
|
|
|
|
|
+ // Create a new table.
|
|
|
|
|
+ try {
|
|
|
|
|
+ Capsule::schema()->create(
|
|
|
|
|
+ 'sitePro_acc',
|
|
|
|
|
+ function ($table) {
|
|
|
|
|
+ /** @var \Illuminate\Database\Schema\Blueprint $table */
|
|
|
|
|
+ $table->increments('id');
|
|
|
|
|
+ $table->string('account');
|
|
|
|
|
+ $table->integer('pid');
|
|
|
|
|
+ $table->boolean('enabled');
|
|
|
|
|
+ }
|
|
|
|
|
+ );
|
|
|
|
|
+ } catch (\Exception $e) {
|
|
|
|
|
+ echo "Unable to create sitePro_acc: {$e->getMessage()}";
|
|
|
|
|
+ }
|
|
|
|
|
+ try {
|
|
|
|
|
+ Capsule::schema()->create(
|
|
|
|
|
+ 'sitePro_dom',
|
|
|
|
|
+ function ($table) {
|
|
|
|
|
+ /** @var \Illuminate\Database\Schema\Blueprint $table */
|
|
|
|
|
+ $table->increments('id');
|
|
|
|
|
+ $table->integer('relid');
|
|
|
|
|
+ $table->string('domain');
|
|
|
|
|
+ $table->boolean('enabled');
|
|
|
|
|
+ }
|
|
|
|
|
+ );
|
|
|
|
|
+ } catch (\Exception $e) {
|
|
|
|
|
+ echo "Unable to create sitePro_dom: {$e->getMessage()}";
|
|
|
|
|
+ }
|
|
|
return ["BuilderURL" => [
|
|
return ["BuilderURL" => [
|
|
|
"FriendlyName" => "Builder URL", # Full Builder URL (prefix//hostname:port/)
|
|
"FriendlyName" => "Builder URL", # Full Builder URL (prefix//hostname:port/)
|
|
|
"Type" => "text", # Text Box
|
|
"Type" => "text", # Text Box
|
|
@@ -78,39 +107,6 @@ function siteBuilder_Testconnection($params) {
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function siteBuilder_AdminServicesTabFieldsSave($params) {
|
|
|
|
|
- // Create a new table.
|
|
|
|
|
- try {
|
|
|
|
|
- Capsule::schema()->create(
|
|
|
|
|
- 'sitePro_acc',
|
|
|
|
|
- function ($table) {
|
|
|
|
|
- /** @var \Illuminate\Database\Schema\Blueprint $table */
|
|
|
|
|
- $table->increments('id');
|
|
|
|
|
- $table->string('account');
|
|
|
|
|
- $table->integer('pid');
|
|
|
|
|
- $table->boolean('enabled');
|
|
|
|
|
- }
|
|
|
|
|
- );
|
|
|
|
|
- } catch (\Exception $e) {
|
|
|
|
|
- echo "Unable to create sitePro_acc: {$e->getMessage()}";
|
|
|
|
|
- }
|
|
|
|
|
- try {
|
|
|
|
|
- Capsule::schema()->create(
|
|
|
|
|
- 'sitePro_dom',
|
|
|
|
|
- function ($table) {
|
|
|
|
|
- /** @var \Illuminate\Database\Schema\Blueprint $table */
|
|
|
|
|
- $table->increments('id');
|
|
|
|
|
- $table->integer('relid');
|
|
|
|
|
- $table->string('domain');
|
|
|
|
|
- $table->boolean('enabled');
|
|
|
|
|
- }
|
|
|
|
|
- );
|
|
|
|
|
- } catch (\Exception $e) {
|
|
|
|
|
- echo "Unable to create sitePro_dom: {$e->getMessage()}";
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* Provision a new account of a siteBuilder server.
|
|
* Provision a new account of a siteBuilder server.
|
|
|
*
|
|
*
|