PHP and Saurus CMS

When creating your own custom PHP scripts there is a small API for Saurus functions as well.

To enable API usage include following part in your script:

# This script must be included at the top of the custom PHP script.

# Set relative path to the website root depending on where your PHP script is located.
# eg for script in folder /extensions/my_extension/lib/:
$webroot_path = '../../../';

$class_path = $webroot_path.'classes/';
include($webroot_path."admin/check_adminpage.php");
echo "Go on with your custom PHP script";

This gives you access to the API functions - to execute database queries, creating custom site log entries etc.

Extensions

Overview of Extensions / Extension's folder structure / Extension's configuration file / Extension's configuration file variables / Default extension "Saurus4" / Creating a new extension / Synchronisation / Smarty plugins / Smarty pre-, post- and outputfilters / PHP and Saurus CMS / Creating custom admin-pages / Creating custom Site Log entries / Using Saurus database API