Functions
- redirect($path) - redirects to specified location.
- printR($var) - debug variable and stop script execution.
- send_zip($dir, $filename, $new_dir = null) - pack directory content to the zip file and sends to the browser.
- send_zip_clear($dir, $filename, $new_dir = null) - same as send_zip(), but removes directory $dir after creating zip archive.
- get_name($s) - extracts name of the file using given string, /content/.sort will return .sort
- get_readable_size($bytes) - returns size of the file in bytes in human readable format.
- fetch_document($id) - fetches document content using id, example id = "Node 1/Node 1.1.html"
- getTimezone() - get timezeone on current server, for example 'GMT 01:00', 'GMT-06:00', it is used in generated documents, because date() returns local time.
- build_tree(&$tree, $root, $path = null) - builds multidimensional array $tree which reflects /content/ directory structure, ignores .sort files, $root - content directory, $path - current path (the function is called recursively, that's why it is needed, in first call it is optional).
- fix_charset($str) - fix xmlhttprequest charset bug, currently only supports windows-1250 specific chars.
Generated by SimpleDoc on 2004-11-22 22:05:49 GMT+01:00