Previous Topic

Next Topic

Book Contents

account.php

Description

The function allows to change existing login and/or password for Root/Reseller.

Synopsis

Name of the script to call

[SiteBuilderHost]/remote_admin/account.php

Login:password for accessing the directory:

To access the directory use Root/Reseller login and password

Parameters

login=[Login]
password=[Password]
password_confirm=[Password Confirmation]

Login - New Root/Reseller login,
Password - New password,
Password Confirmation - New password confirmation.

Result

<RESULT_ACTION><RESULT NAME="Name">Result</RESULT><STATUS CODE="Status Code">Status string</STATUS></RESULT_ACTION>

In the case of the Change login/password for Root/Reseller function, the result string doesn't contain any values. It returns only status message.

Example

Command

[SiteBuilderHost]/remote_admin/account.php?login=admin&password=qwerty&password_confirm=qwerty

Result

<RESULT_ACTION><RESULT NAME="Name">Result</RESULT><STATUS CODE="040020">OK</STATUS></RESULT_ACTION>

Description

The function allows to determine whether the administrator running the command is root or reseller.

Synopsis

Name of the script to call

[SiteBuilderHost]/remote_admin/account.php

Login:password for accessing the directory:

To access the directory use Root/Reseller login and password

Parameters

cmd=whoami

Result

<RESULT_ACTION><RESULT NAME="Name">Result</RESULT><STATUS CODE="Status Code">Status string</STATUS></RESULT_ACTION>

If some errors have occurred during execution of the function, than Result is empty, else if the function has been completed successfully Result contains string <code>root</code> or <code>reseller</code>, depending on the administrator's role.

Example

Command

[SiteBuilderHost]/remote_admin/account.php?cmd=whoami

Result

<RESULT_ACTION><RESULT NAME="role">reseller</RESULT><STATUS CODE="040020">OK</STATUS></RESULT_ACTION>

See Also

System Parameters

skins.php

lang.php