# Server Object The Server object handles the SiteCafe server. Members Table The following table lists the members provided by the Server object.
Members
Objects | Description
Accounts | Handles the SiteCafe accounts.
Admins | Handles the SiteCafe admins.
Bookings | Contains the bookings.
Chat | Provides chat functionality.
Codes | SiteCafe codes.
Computers | Handles available computers.
ComputerStats | Computer statistics.
Config | SiteCafe configuration.
Logging | Logfile functionality.
Sessions | Handles the SiteCafe sessions.
Users | Handles the SiteCafe users.
Properties | Description
ErrorCode | Last error code.
LicenseCount | Number of licenses.
Registered | Whether the server has been registered.
Started | Whether the server has been started.
Methods | Description
BackupDatabase | Creates a database backup.
CheckRegistration | Verifies the current registration.
CreateDatabaseQuery | Creates a database query object.
CreateNavigationInfo | Creates a navigation information object.
Register | Registers the server.
RestoreDatabase | Restores a database backup.
SetDatabasePassword | Sets a new database password.
Start | Starts the server.
Stop | Stops the server.
Events | Description
OnError | Fires when an error occured.
OnStarted | Fires when the server has been started.
OnStopped | Fires when the server has been stopped.
Remarks This object is available through the object SiteCafe. Use the Server object to handle the SiteCafe server. Examples The following example determines whether the SiteCafe server is started and displays it in an alert window.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    alert(SiteCafe.Server.Started);
    </SCRIPT>
Applies to SiteKiosk v6.2 (and later versions). Back to top