Procedural File: common.inc
Source Location: /plugin/search/server/www/common.inc
Page Details:
Library for the common formatting functions
Tags:
exit_local [line 9]
void exit_local(
[integer $print_err = 1])
|
|
Exit, dropping the temporary tables just before that
Parameters
| integer |
$print_err |
Whether to print an error message (passed to drop_temp_table()) |
format_dp [line 62]
integer format_dp(
string $dp)
|
|
Format date in seconds from a source in s,M,h,d,m,y
Tags:
Parameters
format_lastmod [line 49]
string format_lastmod(
integer $lastmod)
|
|
Format last modified date
Tags:
Parameters
| integer |
$lastmod |
UNIX Timestamp? |
format_userdate [line 93]
string format_userdate(
string $date)
|
|
Formats the date using the user's settings as defined in search.html
Tags:
Parameters
get_doc_count [line 33]
Gets the number of documents from the udm object
Tags:
ParseDocText [line 113]
string ParseDocText(
string $text)
|
|
Parses the given text for the words searched and highlight the words, the returns the string
Tags:
Parameters
| string |
$text |
Resulting document excerpt |
ParseQString [line 139]
Parses the global variable $QUERY_STRING
print_error_local [line 18]
void print_error_local(
string $str)
|
|
Prints the error and the template bottom, then exit
Parameters
| string |
$str |
The error message |
|