int convertID($table, $id)
Finds and returns the row number which has the specified id in the table.
bool isValidEMailAddress($email)
Returns true if the email address is valid.
str entities_encode($str)
Wrapper which allows a string to be encoded for unicode entities.
void removeFromQuery($string)
Removes the variable specified from the {query} string.
bool user_exists($username)
Returns true if there exists a user with the specified name.
str readablesize($size)
Converts a size in bytes to a readable form.
str readablefilesize($file)
Returns the file size in a readable form.
str calculateShortStory($story[, $length[, $parseBBCode]])
Trims the string to fit within the length requirement (default is 255) while keeping words in tact and appending an ellipse if a sentence is cut.
str generateImageThumbnail($original, $width, $height[, $alignment[, $outfile[, $orig_uploaded]]])
Gernates the thumbnail with the given size out of the original image
(filename). Accepted alignments are ALIGNMENT_TOP_LEFT
,
ALIGNMENT_CENTER
(default), and ALIGNMENT_BOTTOM_RIGHT
.
$outfile allows control over where the generated image is outputted and $orig_uploaded is used to flag that the original file name has upload meta data attached (on by default).
void watermarkImage($file)
Watermarks the specified file. This is a permanent one way operation.