File: common/general.php

Return to Documentation

Class: general
cleanUserName (2)
getCleanStringBetweenASCII (3)
getQuestions (4)
getQuestionsSelectBox (5)
getBirthdayBox (6)
getDateFormatted (7)
deleteHeaderImage (8)

cleanUserName

Author: Brad
Version: 04.25.05

Description

Ensures that a user name contains only characters a-z, and is inserted in the database as lowercase.

Example

general::cleanUserName($userName)

Parameters

UserNameThe login name to clean

Top

getCleanStringBetweenASCII

Author: Brad
Version: 04.25.05

Description

Strips all characters between a given ascii range.

Example

general::getCleanStringBetweenASCII($stringIn, $ascii_bottom, $ascii_top)

Parameters

StringInString to strip characters from
Ascii_bottomBottom of the ascii range (lower range): all characters >= this value will remain
Ascii_topTop of the ascii range (upper range): all characters <= this value will remain

Top

getQuestions

Author: Brad
Version: 04.25.05

Description

Gets all questions from the table "login_question".

Example

general::getQuestions()

Parameters

None

Top

getQuestionsSelectBox

Author: Brad
Version: 04.25.05

Description

Gets the selection box for the login questions.

Example

general::getQuestionsSelectBox($selected)

Parameters

SelectedSets the default question to be selected

Top

getBirthdayBox

Author: Brad
Version: 04.25.05

Description

Gets 3 boxes (mm/dd/yyyy).

Example

general::getBirthdayBox($timestamp -)

Parameters

Timestamp -Assigns the unix timestamp of the default selected boxes (default is today)

Top

getDateFormatted

Author: Brad
Version: 04.25.05

Description

Gets unix timestamp to format m/d/Y.

Example

general::getDateFormatted($timestamp)

Parameters

TimestampUnix timestamp to convert to string in format m/d/Y

Top

deleteHeaderImage

Author: David
Version: 05.02.05

Description

Deletes a header image that is no longer in use from the../images/banners folder.

Example

general::deleteHeaderImage($filename -)

Parameters

Filename -Filename of image to be deleted

Top