Using BitOwl Application Suit

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.

Journalist Functions

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).

<?php if(isset($_GET['article'])) showSpecificArticle($_GET['article']); else showArticles(); ?>

Gallery Functions

<?php if(isset($_GET['album']) && isset($_GET['image']) showAlbumImage($_GET['album'], $_GET['image']); else showAlbums(isset($_GET['album']) ? $_GET['album'] : 0); ?>

Site Login

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.

Login Post Fields

Registration Post Fields