PhpLabWare version 0.3 

Directory: /includes/

functions_inc.php

Author(s): Nico Stuurman

Functions for all scripts

552 lines [source]

Referenced 4 times

Defines the following functions:



Function Guide

cl_client()   X-Ref
class to get and store browser/OS info


nice_bytes($bytes)   X-Ref
returns a string with a 'nice' representation of the input number of bytes


allowonly($required, $current)   X-Ref
function that checks if user is allowed to view page
This function should be called before a printheader() call


randomimage($imagedir)   X-Ref

returns a link to a randomly selected image from the designated directory
imagedir should be relative to the running script and be web-accessible


url_get_string($url)   X-Ref
returns get vars plus SID when needed


loginscreen($message="<h3>Login to PhpLabWare</h3>")   X-Ref
presents the login screen when authenticating witth sessions


globalize_vars($var_string, $type)   X-Ref
checks wether variables are present in ${type} and makes them available
variables are only set when they are not null in ${type}
$var_string is a comma delimited list


get_cell($db, $table, $column, $column2, $value)   X-Ref
Return the value of specified cell in the database
Returns false if no or multiple rows have requested value


get_person_link($db,$id)   X-Ref
 Returns a formatted link with name of the person identified by id


navbar($permissions)   X-Ref
Prints a table with usefull links


add_js($script)   X-Ref
adds javascript headers to argument


printheader($title,$head=false, $jsfile=false)   X-Ref
Prints initial part of webpage


printfooter($db=false,$USER=false)   X-Ref
Prints footer




Generated: Sun Oct 5 21:17:35 2003 SourceForge Logo Generated by PHPXref 0.2