In order to use BOAS on your website you must first include the init.php file in the script's root directory. This sets up the script and allows functions to be called in order to display the content within the database.
include 'path/to/boas/init.php';In addition to the functions mentioned here, you may also access the database directly or use the template engine for whatever purpose you see fit.
In addition to the functions mentioned below, you may set $_bitowl['articles_attachment_func']
to the name of a function in which you want to use to parse the attachment
BBCode. The prototype of this function should be str
functionName(array, str, int)
.
void showSpecificArticle($id)
Displays the article with the specified id.
void showArticleAttachment($id, $attachment)
Displays the specified attachment from an article by id.
void showArticles([$category])
Displays one page of articles from the specified categories.
array getSpecificArticleData($id)
Returns the data for a specific article by id.
void displayArticle($article)
Displays the article with the specified data.
Displays the contents of a particular album.
Displays the specified image from the specified album.
If enabled, you can allow users to log in on the end website. Registration
is also supported. In both cases you need to provide the form yourself. See the
template engine documentation for information
on what variables can be used to interact with the logged in or registering
user. You do not need to use the template engine directly to access these
variables as you may use $_bitowl['template']->variables
instead.