Skip to content

System API

MasterGeneral156 edited this page Nov 26, 2016 · 12 revisions

The User API

The User API is useful when you need to interact with users directly.
##Available Functions
SystemReturnAPIVersion();
SystemFilterInput();
SystemLogsAdd();
##SystemReturnAPIVersion();
SystemReturnAPIVersion(); is a function used to return the current API version. This function takes no variables.
$api->SystemReturnAPIVersion();

This function returns the API version.
##SystemFilterInput();
SystemFilterInput(); is a function used to return filtered input. This function takes 2 variables. This function may or may not be safe.
$api->SystemFilterInput($var1,$var2);
Variable #1 - Text. What the input is to be filtered. Accepts int, float, text, url and email.
Variable #2 - Input. Input to filtered according to variable #1.

This function returns filtered input.
##SystemLogsAdd();
SystemLogsAdd(); is a function used enter an entry into the main logs data table. This function accepts three variables.
$api->SystemLogsAdd($var1,$var2,$var3);
Variable #1 - Int. The User's ID who's attached to this log entry.
Variable #2 - Text. Log type. See staff panel's log page to see standardized names.
Variable #2 - Text. Log text. Informational text explaining log. (Ate an apple)

This function returns nothing.

Clone this wiki locally