Here you can manage your global variables and counters. Global variables can be accessed using LCSGetVar(id)
or LCSSetVar(id, value), and can be used as parameters for your pages. Several variables are defined from scratch:
SITE_URL, your site URL. Used to calculate links.
LCS_THUMB_WIDTH, Width of generated thumbnails
LCS_THUMB_HEIGHT, Height of generated thumbnails
SITE_TITLE, used as the default page title,
SITE_KEYWORDS and SITE_DESCRIPTION, used by search engines
The counters are a little similar to variables. They represents self-incremented integers.
You can get the next value of a counter by using LCSGetNextID(id) and update (i.e increment it)with
LCSUpdateNextID(id).
Related API Functions
- string LCSGetVar(string varname)
Retrieve a variable - void LCSSetVar(string varname, value)
Set a variable (memory. Call LCSSaveVars() for a permanent save.) - void LCSSaveVars()
Save the variables to disk - void LCSLoadVars()
Load all the variables. Automatically called by LCSInit - void LCSInit()
Initialize the LCS context. Must be called in every page. - void LCSRemoveID(string counterID)
Remove a counter - int LCSGetNextID(string counterID)
Get the next ID of the counter. Does not increment it. - int LCSUpdateNextID(string counterID)
Similar to LCSGetNextID, but increment the counter automatically