[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/ -> init.php (summary)

(no description)

File Size: 507 lines (15 kb)
Included or required: 22 times
Referenced: 0 times
Includes or requires: 1 file
 inc/lang/en/lang.php

Defines 11 functions

  delta_time()
  init_paths()
  init_files()
  init_path()
  init_creationmodes()
  remove_magic_quotes()
  getBaseURL()
  is_ssl()
  scriptify()
  nice_die()
  fullpath()

Functions
Functions that are not part of a class:

delta_time($start=0)   X-Ref
Initialize some defaults needed for DokuWiki


init_paths()   X-Ref
No description

init_files()   X-Ref
Checks the existance of certain files and creates them if missing.


init_path($path)   X-Ref
Returns absolute path

This tries the given path first, then checks in DOKU_INC.
Check for accessability on directories as well.

author: Andreas Gohr <andi@splitbrain.org>

init_creationmodes()   X-Ref
Sets the internal config values fperm and dperm which, when set,
will be used to change the permission of a newly created dir or
file with chmod. Considers the influence of the system's umask
setting the values only if needed.


remove_magic_quotes(&$array)   X-Ref
remove magic quotes recursivly

author: Andreas Gohr <andi@splitbrain.org>

getBaseURL($abs=null)   X-Ref
Returns the full absolute URL to the directory where
DokuWiki is installed in (includes a trailing slash)

author: Andreas Gohr <andi@splitbrain.org>

is_ssl()   X-Ref
Check if accessed via HTTPS

Apache leaves ,$_SERVER['HTTPS'] empty when not available, IIS sets it to 'off'.
'false' and 'disabled' are just guessing

returns: bool true when SSL is active

scriptify($file)   X-Ref
Append a PHP extension to a given file and adds an exit call

This is used to migrate some old configfiles. An added PHP extension
ensures the contents are not shown to webusers even if .htaccess files
do not work

author: Jan Decaluwe <jan@jandecaluwe.com>

nice_die($msg)   X-Ref
print a nice message even if no styles are loaded yet.


fullpath($path)   X-Ref
A realpath() replacement

This function behaves similar to PHP's realpath() but does not resolve
symlinks or accesses upper directories

link: http://de3.php.net/manual/en/function.realpath.php#75992
author: Andreas Gohr <andi@splitbrain.org>
author: <richpageau at yahoo dot co dot uk>



Generated: Wed Oct 1 01:30:01 2008 Cross-referenced by PHPXref 0.7