default
[ class tree: default ] [ index: default ] [ all elements ]

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:

return:  The value of the setting.


Parameters

string   $setting   The desired PHP.INI setting to read.
[ Top ]



is_logged_in [line 199]

boolean is_logged_in( )

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:

return:  True if
see:  logout_user()
see:  require_login()


[ Top ]



logout_user [line 211]

void logout_user( )

Logs a user out by clearing the user's session.



Tags:



[ Top ]



my_addslashes [line 119]

void my_addslashes( any &$array)

A version of addslashes that can recursively process arrays.



Tags:

see:  addslashes()


Parameters

any   &$array   A reference to an array or simple variable.
[ Top ]



require_login [line 177]

void require_login( )

Checks to see if the user is logged in. If not, redirects to the login page.



Tags:

see:  logout_user()
see:  is_logged_in()


[ Top ]



__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:

return:  Throws an error if the class cannot be loaded.


Parameters

   $class  
[ Top ]



Documentation generated on Wed, 15 Nov 2006 08:47:56 -0600 by phpDocumentor 1.3.1