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

Procedural File: search.php

Source Location: /search.php



Page Details:

Search.

This file contains the logic that composes and routes search requests. It makes use of search_forms.php for display elements and search_class.php for search execution.




Tags:

filesource:  Source Code for this file


Includes:

require_once("search_forms.php") [line 34]
Search forms

require_once("conf.php") [line 28]
Configuration file

require_once("search_class.php") [line 32]
Search class

require_once("session_class.php") [line 36]
PHP session class

require_once("user_class.php") [line 40]
User class

require_once("header.php") [line 165]
require_once("footer.php") [line 249]
require_once("hrdi_db_class.php") [line 38]
HRDI database class

require_once("debugging.php") [line 30]
Debugging functions







clean_get [line 80]

array clean_get( )

Validates $_GET values.

This function validates and cleans the values passed in the $_GET array. It ensures that malicious actions cannot be performed.




Tags:

return:  Clean values


[ Top ]



clean_sql [line 69]

void clean_sql( string $string)

Check string for sql injection attacks. Every value that originates in GET and is put into a sql statement must be passed through this function for security.



Parameters

string   $string   A string to be sanitized.
[ Top ]



compose_conditions [line 48]

void compose_conditions( mixed $got, int $num_forms)

Composes an indexed array of associative arrays for free form searching from the $_GET formatted input. See search_class::free_form for the required conditions format.



Parameters

mixed   $got   The sanitized get variable
int   $num_forms   The number of arrays to be built
[ Top ]



Documentation generated on Tue, 23 Jan 2007 22:57:50 -0500 by phpDocumentor 1.3.0RC6