CheckSharedFolder (line 293)
Performs checks if given data folder exists and is writeable.
Note that this function also returns TRUE if data dir is not configured!
boolean
CheckSharedFolder
()
ConvertSize (line 45)
Converts bytes to an appropiate unit (kb,MB etc.).
string
ConvertSize
(integer $size)
-
integer
$size: The size in bytes to convert.
Dumper (line 257)
Simple wrapper for print_r().
This function echo()es the output of print_r in a PRE block which is easier to read.
void
Dumper
( &$var, mixed $var)
-
mixed
$var: The variable to dump out.
-
&$var
FormatTime (line 306)
Returns given seconds in HH:MM:SS format.
string
FormatTime
($seconds $seconds)
-
$seconds
$seconds: integer The number of seconds to convert
getDBID (line 226)
Determines current Database ID to be used.
This function should be used on top of every page to determine the current used Database ID.
integer
getDBID
([bool $abort = true])
-
bool
$abort: Set to TRUE (default) if script should redirect to index.php in case the id is not set. Else if set to FALSE the function returns -1 if no DBID is set.
getmicrotime (line 63)
Returns current microtime.
float
getmicrotime
()
pError (line 27)
Prints out an error string and optionally terminates execution.
void
pError
(string $errstring, [integer $stop = 0])
-
string
$errstring: Error-string to be shown
-
integer
$stop: Set to 1 to terminate execution, else only the error string is displayed.
printFooter (line 79)
Prints out the standard footer used in OIS.
$code can have the following values:
- 0 = Nothing is shown in middle column (default).
- 1 = Prints link to either index.php or index2.php depending on wether ID is set.
- 2 = If $db is set lists PHP/DB Class version, else only an empty string is shown.
- 3 = Lists link to manager.php page.
- 4 = Lists a Close Window link for javascript opened windows.
void
printFooter
([integer $code = 0])
-
integer
$code: Controls what should be displayed inside the footer.
printFormError (line 158)
Prints out an error message with included Form data.
This is used to inform the user about an error after submitting a form. The form data is stored as serialized, base64 encoded object and allows to jump back to the html form, which in turn can use the embedded object to fill out all user-entered variables.
void
printFormError
(string $errstr, string $desturl, array $formdata, [string $pagetag = ""], [string $other = ""])
-
string
$errstr: The error string shown to the user.
-
string
$desturl: The originating URL from where the request was comming from.
-
array
$formdata: The user data that was entered inside the form.
-
string
$pagetag: Allows to add an additional tag "P" for page-references.
-
string
$other: Optionally other data that has to be included in this error message.
ReadSharedFolder (line 269)
Reads all available exports in "shared" folder of current directory.
Returns an assoc. array with file informations about available exports/backups.
array
ReadSharedFolder
()
SubmitButton (line 198)
Prints a Submit button embedded in an own table container.
void
SubmitButton
(string $btnlabel, [string $class = ''], [string $addbtn = ''])
-
string
$btnlabel: The text to be used for the submit button.
-
string
$class: Optionally a CLASS tag to be used for the submit button.
-
string
$addbtn: Optionally additional buttons to be added here. If you add new buttons make sure that you embed them into a TD/TD pair!!