/app/lib/pl.phpPika Library of handy PHP functions.
PL provides following functionality: user authentication via cookies (HTTP Basic), appliction settings management, benchmarking, XHTML output validation, time/date conversion functions for standardized error reporting, HTML templating w/auto-menuing
pl_array_lookup (line 38)
Safely retrive an array element by key without generating a warning on missing keys
pl_array_to_csv (line 59)
pl_array_to_php (line 88)
Produce the PHP code to initialize an array.
pl_array_to_php_sub (line 105)
Subroutine used by pl_array_to_php()
pl_auth_http_login (line 171)
Verify that the user is authenticated via HTTP; exit and prompt for login if she is not.
pl_auth_http_logout (line 149)
Remove HTTP authentication and display HTML notification.
pl_bench (line 251)
Will gather and display benchmarking, HTML validation, file size info, when enabled.
pl_benchmark (line 335)
Calculate the script execution time.
pl_calc_age (line 362)
Calculate a person's age in years.
pl_clean_file_name (line 388)
Removes naughty characters ('..' and '/') from a user-supplied file name.
pl_clean_form_input (line 403)
Used by pl_grab_[post/get]() functions to cleanse incoming user-submitted form data.
pl_clean_html (line 552)
Prevents Javascript insertion attacks in a string.
pl_clean_html_array (line 563)
Prevents Javascript insertion attacks in an array of strings.
pl_date_add (line 584)
Add the specified interval of time to a date.
pl_date_mogrify (line 647)
Converts user-submitted dates to the ISO date format.
pl_date_unmogrify (line 763)
pl_error_fatal (line 783)
pl_error_handler (line 799)
pl_error_non_fatal (line 824)
pl_grab_get (line 854)
Returns the value of a GET variable without tripping a PHP warning if the variable isn't set.
pl_grab_post (line 875)
Returns the value of a POST variable without tripping a PHP warning if the variable isn't set.
pl_grab_var (line 891)
pl_html_address (line 963)
pl_html_checkbox (line 994)
pl_html_login_form (line 1023)
Enter description here...
This is in a standalone function
pl_html_menu (line 1032)
pl_html_multiselect (line 1113)
pl_html_text (line 1183)
pl_html_text_array (line 1223)
pl_html_validate (line 1236)
pl_menu_get (line 1276)
Enter description here...
pl_menu_list (line 1330)
pl_menu_set (line 1349)
pl_menu_set_temp (line 1368)
pl_mysql_init (line 1384)
pl_mysql_next_id (line 1409)
pl_prepare_dir (line 1445)
pl_session_freeze (line 1522)
pl_session_freeze_q (line 1535)
pl_session_set_default (line 1541)
pl_session_thaw (line 1550)
pl_settings_get (line 1572)
pl_settings_get_all (line 1589)
pl_settings_init (line 1596)
pl_settings_restore (line 1614)
pl_settings_save (line 1625)
pl_settings_set (line 1655)
pl_simple_url (line 1662)
pl_template (line 1768)
A basic templating function, replaces template tags with values from $template_data array
pl_template_sub (line 1966)
pl_text_address (line 2254)
pl_text_last_name (line 2286)
pl_text_name (line 2331)
pl_text_phone (line 2361)
pl_time_current_string (line 2384)
pl_time_mogrify (line 2407)
pl_time_unmogrify (line 2428)
pl_tmp_path (line 2441)
Documentation generated on Tue, 19 Oct 2004 17:16:06 -0400 by phpDocumentor 1.3.0RC3