Description
The function allows to get information about all Sites in SiteBuilder. The information include the following: site status (activated/deactivated), publish information, i.e. whether the site is published or not, web site type (trial/regular), name of web site reseller, site creation date, and site expiration date.
Synopsis
Name of the script to call
[SiteBuilderHost]/remote_admin/sites.php
Login:password for accessing the directory
Login: Root
Password: Reseller
Parameters
cmd=get_sites
Result
<RESULT_ACTION><RESULT NAME="Name">Result</RESULT><STATUS CODE="Status Code">Status string</STATUS></RESULT_ACTION>
Status string - a string containing information on the result of the function including description of an error if it has occurred during execution of the function. Status string always contains a value.
Name - the name of the returning value. If no errors have occurred during execution of the function, then Name = 'sites', else Name is empty.
Status code - a 6-digits number containing code of the result of the function, i.e. error code or code of successful completion of the function. Status code always contains a value.
Result - the returning value. If some errors have occurred during execution of the function, then Result is empty, else if the function has been completed successfully Result contains an XML-format string, where each Site is described with a tag:<SITE
SITE_ALIAS="sb_siteid"
ACTIVE="sb_active"
TYPE="sb_site_type"
PUBLISH="sb_publish"
CREATION_DATE="cr_date"
CREATION_DATE_TIMESTAMP="cr_date_timestamp"
EXPIRATION_DATE="exp_date"
EXPIRATION_DATE_TIMESTAMP="exp_date_timestamp"
RESELLER="sb_owner_login"
/>
Parameter |
Parameter Name in Admin Panel |
Value |
Description |
|
|
valid identifier |
Site Alias is used for accessing the site both by administrator (in Admin Panel) and owner (in Wizard). |
|
|
1 | 0 |
1 - the Site is active, 0 - the Site is not active. |
|
|
Trial | Regular |
Site type. |
|
|
1 | 0 | n/a |
1 - publish is allowed for the Site, 0 - publish is forbidden for the Site, n/a - the option is forbidden for the Site (for Trial Sites only) |
|
|
Date: mon, day, year |
Creation Date |
|
|
timestamp |
Creation Date |
|
|
Date: mon day, year or "-" (for Regular Sites only) |
Supposed Date of the Site removal or "-" for Regular Sites |
|
|
timestamp or "-" |
Supposed Date of the Site removal or "-" for Regular Sites |
|
|
reseller login |
Login of the reseller owner of the site |
Example
Command[SiteBuilderHost]/remote_admin/sites.php?cmd=get_sites
Result<RESULT_ACTION><RESULT NAME="sites"><SITE SITE_ALIAS="51942848203" ACTIVE="1" TYPE="Trial" PUBLISH="n/a" CREATION_DATE="May 13, 2005" CREATION_DATE_TIMESTAMP="1115980291" EXPIRATION_DATE="June 12, 2005" EXPIRATION_DATE_TIMESTAMP="1118572291" RESELLER="root" /><SITE SITE_ALIAS="root_tr" ACTIVE="1" TYPE="Trial" PUBLISH="n/a" CREATION_DATE="May 13, 2005" CREATION_DATE_TIMESTAMP="1115974363" EXPIRATION_DATE="June 12, 2005" EXPIRATION_DATE_TIMESTAMP="1118566363" RESELLER="new" /><SITE SITE_ALIAS="rss_reg1" ACTIVE="1" TYPE="Regular" PUBLISH="0" CREATION_DATE="May 13, 2005" CREATION_DATE_TIMESTAMP="1115969123" EXPIRATION_DATE="-" EXPIRATION_DATE_TIMESTAMP="-" RESELLER="rss" /></RESULT><STATUS CODE="010081">OK</STATUS></RESULT_ACTION>
Description
The function allows to get detailed information about the Site. This information contains the following:site status (activated/deactivated), publish information, i.e. whether the site is published or not, web site type (trial/regular), the name of web site reseller, site creation date, site expiration date, site identity, site language, password protection (whether the web site is password protected), site builder Plan, applied to this particular site, site email. If the web site is published via FTP then the site information will include: FTP host, FTP login, FTP password, FTP work directory. Otherwise, if the site is published via VPS (Virtual Private Server) then information will contain: VPS domain, VPS ID, VPS work directory, SiteBuilder user, SiteBuilder group. Web site Plan information is also part of the site details: SiteBuilder plan, last plan revision date, maximum number of pages allowed for the site to contain. The site details also include: module name (the names of the modules web site contains, and template name,i.e. the names of the templates web site is using.
Synopsis
Name of the script to call
[SiteBuilderHost]/remote_admin/sites.php
Login:password for accessing the directory
Login: Root
Password: Reseller
Parameters
cmd=get_site_details
sb_siteid=site_idsite_id - Site Alias or Site Identity (Work Directory)
Result
<RESULT_ACTION><RESULT NAME="Name">Result</RESULT><STATUS CODE="Status Code">Status string</STATUS></RESULT_ACTION>
Status string - a string containing information on the result of the function including description of an error if it has occurred during execution of the function. Status string always contains a value.
Name - the name of the returning value. If no errors have occurred during execution of the function, then Name = 'site_details', else Name is empty.
Status code - a 6-digits number containing code of the result of the function, i.e. error code or code of successful completion of the function. Status code always contains a value.
Result - the returning value. If some errors have occurred during execution of the function, then Result is empty, else if the function has been completed successfully Result contains an XML-format string, where the Site is described with a tag:<SITE
SITE_ALIAS="sb_siteid"
ACTIVE="sb_active"
TYPE="sb_site_type"
PUBLISH="sb_publish"
CREATION_DATE="cr_date"
CREATION_DATE_TIMESTAMP="cr_date_timestamp"
EXPIRATION_DATE="exp_date"
EXPIRATION_DATE_TIMESTAMP="exp_date_timestamp"
LAST_PUBLISH_DATE="publish_date"
LAST_PUBLISH_DATE_TIMESTAMP="publish_date_timestamp"
RESELLER="sb_owner_login" PLAN_ALIAS="sb_plan_alias"
SITE_IDENTITY="sb_site_identity"
LANGUAGE="sb_language"
PASSWORD_PROTECTED="pwd_protected"
PLAN="sb_plan"
EMAIL="sb_email"
SITE_HOST_NAME="sb_host_name"
MODE="sb_mode"
FTP_HOST="sb_ftp_host"
FTP_LOGIN="sb_ftp_login"
FTP_PASSWORD="sb_ftp_pass"
FTP_WORK_DIRECTORY="sb_ftp_workdir"
VPS_DOMAIN="sb_domain"
VPS_SERVICE_VE_IP_ADDRESS="sb_service_ve_ip"
VPS_IDENTIFIER="sb_vps_id"
VPS_WORK_DIRECTORY="sb_vps_workdir"
VPS_OWNER_USER="sb_user"
VPS_OWNER_GROUP="sb_group"
] />
<SITE_PLAN
PLAN="sb_plan"
PLAN_ALIAS="sb_plan_alias"
LAST_REVISION_DATE="last_revision_date"
PAGES_NUMBER="sb_page_num" >
<HOSTS>
<HOST HOST_NAME="host_name" />
...
<HOST HOST_NAME="host_name" />
</HOSTS>
<MODULES>
<MODULE NAME="module_name" />
...
<MODULE NAME="module_name" />
</MODULES>
<TEMPLATES>
<TEMPLATE ID="template_name" />
...
<TEMPLATE ID="template_name" />
</TEMPLATES>
</SITE_PLAN>
</RESULT>
<STATUS CODE="010081">OK</STATUS>
Where parameters enclosed in square brackets [] can be missed.
Parameter |
Parameter Name in Admin Panel |
Value |
Description |
|
|
valid identifier |
Site Alias is used for accessing the site both by administrator (in Admin Panel) and owner (in Wizard). |
|
|
1 | 0 |
1 - the Site is active, 0 - the Site is not active. |
|
|
Trial | Regular |
Site type. |
|
|
1 | 0 | n/a |
1 - publish is allowed for the Site, 0 - publish is forbidden for the Site, n/a - the option is forbidden for the Site (for Trial Sites only) |
|
|
Date: mon day, year |
Creation Date |
|
|
timestamp |
Creation Date |
|
|
Date: mon day, year or "-" |
Supposed Date of the Site removal or "-" for Regular Sites |
|
|
timestamp or "-" |
Supposed Date of the Site removal or "-" for Regular Sites |
|
Publish date |
Date: mon day, year or "-" |
Date of the last site publish |
|
Publish date timestamp |
timestamp or "-" |
Date of the last site publish |
|
|
reseller login |
Login of the reseller owner of the site |
|
|
valid identifier |
Site Identity (Work directory) |
|
|
Language ID |
Language of Wizard Interface for this Site. Can be missed. |
|
|
yes | no |
'yes' - password is set, 'no' - password is not set. |
|
|
Plan Name |
Plan Name. |
|
|
Plan Alias |
Plan Alias |
|
|
valid e-mail |
Owner e-mail. Can be missed |
The following parameters are for Regular Sites only |
|||
|
|
DNS or IP Address |
Host name. The site is accessible at this address after it is published. |
sb_mode |
|
ftp | vps |
Specifies the method of publication for the Site. |
Regular Sites, Mode = ftp can have following parameters |
|||
|
|
DNS or IP Address |
Host for publication. |
|
|
login |
FTP Login. |
|
|
password |
FTP password. |
|
|
directory |
FTP Work Directory. |
Regular Sites, Mode = vps can have following parameters |
|||
|
|
DNS or IP Address |
Host for publication. |
|
|
IP Address |
Domain containing Virtual Machine. |
|
|
|
Virtual Machine Identifier. |
|
|
directory |
VPS Work Directory. |
|
|
directory owner |
Directory owner. |
|
|
directory owner |
Directory owner group. |
Plan Parameters |
|||
|
|
Plan Name |
Plan Name. |
|
|
Plan Alias |
Plan Alias |
|
|
date |
Date of the last plan revision |
|
|
number |
Limitation of total number of pages the Site can contain. |
|
|
DNS Address, IP Address or Host Range Name |
Host Name |
|
|
identifier |
Module Name |
|
|
identifier |
Template name |
Example
Command[SiteBuilderHost]/remote_admin/sites.php?cmd=get_site_details&sb_siteid=JohnDoe
Result
<RESULT_ACTION>
<RESULT NAME="site_details">
<SITE
SITE_ALIAS="JohnDoe"
ACTIVE="1"
TYPE="Regular"
PUBLISH="1"
CREATION_DATE="March 28, 2005"
CREATION_DATE_TIMESTAMP="1111987043"
EXPIRATION_DATE="-"
EXPIRATION_DATE_TIMESTAMP="-"
LAST_PUBLISH_DATE="-"
LAST_PUBLISH_DATE_TIMESTAMP="-"
RESELLER="root"
SITE_IDENTITY="88b06667ef85111c01befb5d596f2a7b"
LANGUAGE="en_US"
PASSWORD_PROTECTED="yes"
PLAN="BasePlan, revision 0.1"
SITE_HOST_NAME="vasia.com"
MODE="vps"
VPS_DOMAIN="192.168.47.41"
VPS_SERVICE_VE_IP_ADDRESS="192.168.0.1"
VPS_IDENTIFIER="180"
VPS_WORK_DIRECTORY="www"
VPS_OWNER_USER="vasia_user"
VPS_OWNER_GROUP="vps_users"
/>
<SITE_PLAN
PLAN="BasePlan, revision 0.1"
PLAN_ALIAS="BasePlan_alias" LAST_REVISION_DATE="2005-05-30"
PAGES_NUMBER="10" >
<HOSTS>
<HOST HOST_NAME="192.168.47.31" />
<HOST HOST_NAME="range(192.168.47.40-60)" />
</HOSTS>
<MODULES>
<MODULE NAME="blogger" />
<MODULE NAME="counter" />
<MODULE NAME="feedback" />
<MODULE NAME="forum" />
</MODULES>
<TEMPLATES>
<TEMPLATE ID="vap-45" />
</TEMPLATES>
</SITE_PLAN>
</RESULT>
<STATUS CODE="010081">OK</STATUS>
</RESULT_ACTION>
Description
The function allows to create a structure containing information about a site and parameters for its publication. The following are parameters for site publication: site status (activated/deactivated), publish information, i.e. whether the site is published or not, web site type (trial/regular), the name of web site reseller, site creation date, site expiration date, site identity, site language, password protection (whether the web site is password protected), site builder Plan, applied to this particular site, site email, FTP host, FTP login, FTP password, FTP work directory. Otherwise. If the site will be published via VPS (Virtual Private Server) then parameters will contain: VPS domain, VPS ID, VPS work directory, SiteBuilder user, SiteBuilder group. Web site Plan information is also part of the parameters: SiteBuilder plan, last plan revision date, maximum number of pages allowed for the site to contain. The site parameters also include: module name (the names of the modules web site contains, and template name,i.e. the names of the templates web site is using.
Synopsis
Name of the script to call
[SiteBuilderHost]/remote_admin/sites.php
Login:password for accessing the directory
Login: Root
Password: Reseller
Parameter |
Parameter Name in Admin Panel |
Value |
Description |
* |
|
|
Required parameter.Command |
TRIAL Site Creation |
|||
General Properties |
|||
|
|
TRIAL |
Trial Site is created. If this parameter is missed then the site is deemed "TRIAL" by default.. |
|
|
valid identifier |
Site Alias is used for accessing the site by administrator (in Admin Panel) and owner (in Wizard). It is generated automatically if missed. |
|
|
1 | (0 | unset) |
1 - the Site is active, 0 | unset - the Site is not active. |
|
|
language ID |
Language of Wizard Interface for this Site. If this parameter is missed then the current system language is used. |
|
|
reseller login |
Login of the reseller owner of this site. This attribute is available only for Root. If this parameter is missed then the owner of this site will be the administrator whose login is used to execute operation. |
|
|
password |
If it's necessary to password protect this site editing (in Wizard), then you should specify this parameter. |
|
|
value of sb_pswd |
Password confirmation. |
Informational E-Mail |
|||
|
|
1 | (0 | unset) |
If it is necessary to send given information about the Site to Site owner then this parameter should be set in "1" and sb_email should be specified as well. |
|
|
valid e-mail |
Site owner's e-mail address. If sb_send_mail is equal to "1" then sb_email should be specified. |
REGULAR Site Creation |
|||
General Properties |
|||
|
|
REGULAR |
Indicates that the regular Site is created. If this parameter is missed then the site is deemed "TRIAL" by default.. |
|
|
valid identifier |
Site Alias is used for accessing the site both by administrator (in Admin Panel) and owner (in Wizard). It is generated automatically if missed. |
|
|
1 | (0 | unset) |
1 - the Site is active, 0 | unset - the Site is not active. |
*
|
|
Plan Name (or Alias)
|
Required parameter. Name of registered in SiteBuilder and active Plan (or Alias) |
|
|
language ID |
Language of Wizard Interface for this Site. If it is missed then current system language is used by default. |
|
|
reseller login |
Current site owner reseller login. This attribute is available only for Root. If this parameter is missed then the owner of this site will be the administrator whose login is used to execute operation. |
|
|
password |
If you require to password protect this site editing (in WIzard) specify this parameter. |
|
|
value of sb_pswd |
Password confirmation. |
Publish Properties |
|||
|
|
1 | (0 | unset) |
1 - publish is allowed, 0 or unset - publish is forbidden |
|
|
DNS or IP Address |
Host name. After publishing this site is available at this address. |
|
|
ftp | vps |
This Site publishing method. If this parameter is missed then by default it is "FTP". |
If Mode = ftp then following parameters can be set |
|||
|
|
DNS or IP Address |
Host for publication. This host should be active and registered in Plan of the Site. |
|
|
login |
FTP Login. |
|
|
password |
FTP password. |
|
|
directory |
FTP Work Directory. |
If Mode = vps then following parameters should be set |
|||
* |
|
DNS or IP Address |
Required parameter. Host for publication. This host should be active and registered in Plan of the Site. |
* |
|
IP Address |
Required parameter. Domain containing Virtual Machine. |
* |
|
|
Required parameter. Virtual Machine Identifier. |
* |
|
directory |
Required parameter. VPS Work Directory. |
* |
|
directory owner |
Required parameter. Directory owner. |
* |
|
directory owner group |
Required parameter. Directory owner group. |
Informational E-Mail |
|||
|
|
1 | (0 | unset) |
If it is required to send given information about the Site to Site owner then this parameter should be set in "1" and sb_email should be specified as well. |
|
|
valid e-mail |
Owner e-mail. If sb_send_mail is equal to "1" then sb_email should be specified. |
Plan Properties |
|||
|
|
Number |
Maximum number of pages this Site can have. Optional. |
|
|
host_name[,host_name] |
List of hosts names. Optional. |
|
|
template_name[,template_name] |
List of templates names. Optional. |
|
|
module_name[,module_name] |
List of modules names. Optional. |
Result
The result string has the following format:<RESULT_ACTION><RESULT NAME="Name">Result</RESULT><STATUS CODE="Status Code">Status string</STATUS></RESULT_ACTION>
Status string - a string containing information on the result of the function including description of an error if it has occurred during execution of the function. Status string always contains a value.
Name - the name of the returning value. If no errors have occurred during execution of the function, then Name = 'site_identity', else Name is empty.
Status code - a 6-digits number containing code of the result of the function, i.e. error code or code of successful completion of the function. Status code always contains a value.
Result - the returning value. If some errors have occurred during execution of the function, then Result is empty, else if the function has been completed successfully Result contains a Site Identity (Work Directory) of the just created site.
Example
Command[SiteBuilderHost]/remote_admin/sites.php?cmd=create_site& sb_site_type=REGULAR&sb_publish=1&sb_active=1&sb_siteid=newsid& sb_plan=BasePlan&sb_email=vas@mail.ru&sb_language=ru_RU&sb_mode=ftp
[SiteBuilderHost]/remote_admin/sites.php?cmd=create_site& sb_site_type=REGULAR&sb_publish=1&sb_active=1&sb_siteid=newsid& plan_alias=BasePlan_alias&sb_email=vas@mail.ru&sb_language=ru_RU&sb_mode=ftp
Result
<RESULT_ACTION><RESULT NAME="site_identity">e662d1e40603e2bcee8ed801517bbba2</RESULT><STATUS CODE="010048">Site has been created</STATUS></RESULT_ACTION>
Description
The function enables administrator to edit the following site parameters: site status (activated/deactivated), publish information, i.e. whether the site is published or not, web site type (trial/regular), the name of web site reseller, site creation date, site expiration date, site identity, site language, password protection (whether the web site is password protected), site builder Plan, applied to this particular site, site email, FTP host, FTP login, FTP password, FTP work directory. Otherwise. If the site will be published via VPS (Virtual Private Server) then parameters will contain: VPS domain, VPS ID, VPS work directory, SiteBuilder user, SiteBuilder group. Web site Plan information is also part of the parameters: SiteBuilder plan, last plan revision date, maximum number of pages allowed for the site to contain. The site parameters also include: module name (the names of the modules web site contains, and template name,i.e. the names of the templates web site is using.
Synopsis
Name of the script to call
[SiteBuilderHost]/remote_admin/sites.php
Login:password for accessing the directory
Login: Root
Password: Reseller
Parameters
All parameters are optional except cmd and sb_old_siteid. You should specify only those parameters that you are going to change; previous values will be saved for all other parameters.
Parameter |
Parameter Name in Admin Panel |
Value |
Description |
* |
|
|
Required parameter. Command |
General Properties |
|||
|
|
Site Alias or Site Identity |
Required parameter. Site Alias or Site Identity. This parameter indicates the site to work with. |
|
|
valid identifier |
Site Alias is used for accessing the site both by administrator (in Admin Panel) and owner (in Wizard). |
|
|
1 | 0 |
1 - the Site is active, 0 - the Site is not active. |
|
|
Plan Name |
Name of Plan registered in SiteBuilder and active. |
|
|
Plan Alias |
Name of Plan (or Alias) registered in SiteBuilder and active. |
|
|
language ID |
Language of Wizard Interface for this Site. |
|
|
reseller login |
This site owner reseller login. This attribute is available only for Root. If this parameter is missed then the owner of this site by default will be the administrator whose login is used to execute operation. |
|
|
password |
If editing of this site (in Wizard) is required to be password protected then you should specify the parameter |
|
|
value of sb_pswd |
Password confirmation. |
Publish Properties |
|||
|
|
1 | 0 |
1 - publish is allowed, 0 - publish is forbidden |
|
|
DNS or IP Address |
Host name. The site is accessible via this address after its publishing. |
|
|
ftp | vps |
Specifies the method of Site publication. |
If Mode = ftp then following parameters can be set |
|||
|
|
DNS or IP Address |
Host for publication. This host should be active and registered in Plan of the Site. |
|
|
login |
FTP Login. |
|
|
password |
FTP password. |
|
|
directory |
FTP Work Directory. |
If Mode = vps then following parameters can be set |
|||
|
|
DNS or IP Address |
Host for publication. This host should be active and registered in Plan of the Site. |
|
|
IP Address |
Domain containing Virtual Machine is. |
|
|
|
Virtual Machine Identifier. |
|
|
directory |
VPS Work Directory. |
|
|
directory owner |
Directory owner. |
|
|
directory owner group |
Directory owner group. |
Informational E-Mail |
|||
|
|
1 | (0 | unset) |
If it is required to send specified information about the Site to the Site owner then this parameter should be set at "1" and sb_email should be specified as well. |
|
|
valid e-mail |
Site owner's e-mail. If sb_send_mail is equal to "1" then sb_email should be given. |
Plan Properties |
|||
|
|
Number |
Maximum number of web pages located on Site. |
|
|
host_name[,host_name] |
List of hosts names. |
|
|
template_name[,template_name] |
List of templates names. |
|
|
module_name[,module_name] |
List of modules names. |
Result
The result string has the following format:<RESULT_ACTION><RESULT NAME="Name">Result</RESULT><STATUS CODE="Status Code">Status string</STATUS></RESULT_ACTION>
Status string - a string containing information on the result of the function including description of an error if it has occurred during execution of the function. Status string always contains a value.
Name - the name of the returning value. If no errors have occurred during execution of the function, then Name = 'site_identity', else Name is empty.
Status code - a 6-digits number containing code of the result of the function, i.e. error code or code of successful completion of the function. Status code always contains a value.
Result - the returning value. If some errors have occurred during execution of the function, then Result is empty, else if the function has been completed successfully Result contains a Site Identity (Work Directory) of the just updated site.
Example
Command[SiteBuilderHost]/remote_admin/sites.php?cmd=update_site&sb_old_siteid=newsid& sb_siteid=SiteOfVasia
Result
<RESULT_ACTION><RESULT NAME="site_identity">e662d1e40603e2bcee8ed801517bbba2</RESULT><STATUS CODE="010051">Site has been updated</STATUS></RESULT_ACTION>
Description
The function allows to delete one or several sites.
Synopsis
Name of the script to call
[SiteBuilderHost]/remote_admin/sites.php
Login:password for accessing the directory
Login: Root
Password: Reseller
Parameters
cmd=delete
ids=site_id[,site_id]site_id - Site Alias or Site Identity (Work Directory)
Result
The result string has the following format:
<RESULT_ACTION><RESULT NAME="Name">Result</RESULT><STATUS CODE="Status Code">Status string</STATUS></RESULT_ACTION>
In the case of the Delete site function, the result string doesn't contain any values. It returns only status message.
Example
Command[SiteBuilderHost]/remote_admin/sites.php?cmd=delete&ids=SiteOfVasia,af3424789e1
Result<RESULT_ACTION><RESULT NAME=""></RESULT><STATUS CODE="010056">Site(s) have been deleted</STATUS></RESULT_ACTION>
Description.
The function allows to upgrade one or several TRIAL sites to REGULAR sites. Unlike trial sites regular sites can be published.
Synopsis.
Name of the script to call
[SiteBuilderHost]/remote_admin/sites.php
Login:password for accessing the directory
Login: Root
Password: Reseller
Parameters.
cmd=trial2regular
ids=site_id[,site_id]site_id - Site Alias or Site Identity (Work Directory)
Result
The result string has the following format:<RESULT_ACTION><RESULT NAME="Name">Result</RESULT><STATUS CODE="Status Code">Status string</STATUS></RESULT_ACTION>
In the case of the Upgrade TRIAL site to REGULAR site function, the result string doesn't contain any values. It returns only status message.
Example
Command[SiteBuilderHost]/remote_admin/sites.php?cmd=trial2regular&ids=Tr1,Tr2
Result<RESULT_ACTION><RESULT NAME=""></RESULT><STATUS CODE="010076">Type has been changed successfully. You can add publishing parameters for these sites</STATUS></RESULT_ACTION>
Description.
The function allows to activate one or several sites.
Synopsis.
Name of the script to call
[SiteBuilderHost]/remote_admin/sites.php
Login:password for accessing the directory
Login: Root
Password: Reseller
Parameters
cmd=activate
ids=site_id[,site_id]site_id - Site Alias or Site Identity (Work Directory)
Result
The result string has the following format:
<RESULT_ACTION><RESULT NAME="Name">Result</RESULT><STATUS CODE="Status Code">Status string</STATUS></RESULT_ACTION>
In the case of the Activate site function, the result string doesn't contain any values. It returns only status message.
Example
Command[SiteBuilderHost]/remote_admin/sites.php?cmd=activate&ids=JohnDoe,Piter
Result<RESULT_ACTION><RESULT NAME=""></RESULT><STATUS CODE="010079">Site(s) have been activated.</STATUS></RESULT_ACTION>
Description
The function allows to deactivate one or several sites.
Synopsis.
Name of the script to call
[SiteBuilderHost]/remote_admin/sites.php
Login:password for accessing the directory
Login: Root
Password: Reseller
Parameters
cmd=deactivate
ids=site_id[,site_id]site_id - Site Alias or Site Identity (Work Directory)
Result
The result string has the following format:<RESULT_ACTION><RESULT NAME="Name">Result</RESULT><STATUS CODE="Status Code">Status string</STATUS></RESULT_ACTION>
In the case of the Deactivate site function, the result string doesn't contain any values. It returns only status message.
Example.
Command[SiteBuilderHost]/remote_admin/sites.php?cmd=deactivate&ids=VasiaPupkin,Piter
Result<RESULT_ACTION><RESULT NAME=""></RESULT><STATUS CODE="010078">Site(s) have been deactivated</STATUS></RESULT_ACTION>
Description
The function allows to allow publish for one or several sites.
Synopsis
Name of the script to call
[SiteBuilderHost]/remote_admin/sites.php
Login:password for accessing the directory
Login: Root
Password: Reseller
Parameters
cmd=allow_publish
ids=site_id[,site_id]site_id - Site Alias or Site Identity (Work Directory)
Result
The result string has the following format:<RESULT_ACTION><RESULT NAME="Name">Result</RESULT><STATUS CODE="Status Code">Status string</STATUS></RESULT_ACTION>
In the case of the Allow publishing function, the result string doesn't contain any values. It returns only status message.
Example
Command[SiteBuilderHost]/remote_admin/sites.php?cmd=allow_publish&ids=VasiaPupkin,Piter
Result
<RESULT_ACTION><RESULT NAME=""></RESULT><STATUS CODE="010054">Site(s) has been updated</STATUS></RESULT_ACTION>
Description
The function allows to deny publish for one or several sites.
Synopsis
Name of the script to call
[SiteBuilderHost]/remote_admin/sites.php
Login:password for accessing the directory
Login: Root
Password: Reseller
Parameters
cmd=deny_publish
ids=site_id[,site_id]site_id - Site Alias or Site Identity (Work Directory)
Result
The result string has the following format:
<RESULT_ACTION><RESULT NAME="Name">Result</RESULT><STATUS CODE="Status Code">Status string</STATUS></RESULT_ACTION>
In the case of the Deactivate site function, the result string doesn't contain any values. It returns only status message.
Example
Command
[SiteBuilderHost]/remote_admin/sites.php?cmd=deny_publish&ids=VasiaPupkin,Piter
Result
<RESULT_ACTION><RESULT NAME=""></RESULT><STATUS CODE="010054">Site(s) has been updated</STATUS></RESULT_ACTION>
Description
The function allows to publish the site.
Synopsis
Name of the script to call
[SiteBuilderHost]/remote_admin/sites.php
Login:password for accessing the directory
Login: Root
Password: Reseller
Parameters
cmd=allow_publish
ids=site_id[,site_id]site_id - Site Alias or Site Identity (Work Directory)
Result
The result string has the following format:<RESULT_ACTION><RESULT NAME="Name">Result</RESULT><STATUS CODE="Status Code">Status string</STATUS></RESULT_ACTION>
In the case of the Publish site function, the result string doesn't contain any values. It returns only status message.
Example
Command[SiteBuilderHost]/remote_admin/sites.php?cmd=allow_publish&ids=VasiaPupkin,Piter
Result<RESULT_ACTION><RESULT NAME=""></RESULT><STATUS CODE="010068">Publishing has finished successfully.</STATUS></RESULT_ACTION>