Procedural File: common.php
Source Location: /common.php
Classes:
object
This is a very simple PHP class that can be used to hold data.
Page Details:
Support code for projects using the CryptLib, FormLib and SupportLib packages developed by Randy Pearson during PHP training at the University of Alabama in Huntsville.
Tags:
Includes:
require_once("$CFG->includedir/datalib.php") [line 82]
Set the PDO error mode to raise exceptions on errors.
ini_get_bool [line 103]
boolean ini_get_bool(
string $setting)
|
|
Function to read a boolean value from the PHP.INI file. Converts the following strings to true: 1, on, true, and yes. All other values will be treated as false.
Tags:
Parameters
string |
$setting |
The desired PHP.INI setting to read. |
is_logged_in [line 199]
Checks to see if the user is currently logged in. Uses the global $USER variable, which must have an id property. This global variable should be tied to a session variable by the same name.
Tags:
logout_user [line 211]
Logs a user out by clearing the user's session.
Tags:
my_addslashes [line 119]
void my_addslashes(
any &$array)
|
|
A version of addslashes that can recursively process arrays.
Tags:
Parameters
any |
&$array |
A reference to an array or simple variable. |
require_login [line 177]
Checks to see if the user is logged in. If not, redirects to the login page.
Tags:
__autoload [line 38]
nothing __autoload(
$class)
|
|
A global __autoload that automatically loads classes. When called it searches a list of directories defined by a global AUTOLOAD_PATH variable. The list should use the native system path separator character (i.e. ';' for Windows, ':' for Linux, etc.)
Tags:
Parameters
|