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