phpDocumentor pond
[ class tree: pond ] [ index: pond ] [ all elements ]

Procedural File: _main.inc.php

Source Location: /qp_inc/_main.inc.php

Page Details

This file initializes everything BUT the blog!

It is useful when you want to do very customized templates! It is also called by more complete initializers.

This file is part of Quam Plures - http://quamplures.net/ See also https://launchpad.net/quam-plures.

Author:  fplanque: Francois PLANQUE
Author:  blueyed: Daniel HAHLER
Author:  mfollett: Matt FOLLETT.
Author:  mbruneau: Marc BRUNEAU / PROGIDISTRI
Copyright:  

(c)2003-2009 by Francois PLANQUE - http://fplanque.net/ Parts of this file are copyright (c)2004-2006 by Daniel HAHLER - http://thequod.de/contact. Parts of this file are copyright (c)2005-2006 by PROGIDISTRI - http://progidistri.com/.

Copyright:  (c) 2009 - 2011 by the Quam Plures developers - http://quamplures.net/
Filesource:  Source Code for this file
Includes
include_once ($conf_path.'hacks.php') [line 654]

Load hacks file if it exists

[ Top ]

require (login.php) [line 641]

User locale selection:

[ Top ]

require (dirname(__FILE__).'/../qp_view_admin/conf_error.main.php') [line 176]
[ Top ]

require_once (dirname(__FILE__).'/_vars.inc.php') [line 163]

Sets various arrays and vars, also $app_name!

Needed before the error messages.

[ Top ]

require_once ($inc_path.'/_core/_misc.funcs.php') [line 86]

Security check for older PHP versions

Contributed by counterpoint / MAMBO team

[ Top ]

require_once (dirname(__FILE__).'/_connect_db.inc.php') [line 183]

Connect to DB

[ Top ]

require_once ($inc_path.'_core/_class'.floor(PHP_VERSION).'.funcs.php') [line 114]

Class loader.

[ Top ]

require_once ($inc_path.'/_core/_misc.funcs.php') [line 120]

Miscellaneous functions

[ Top ]


Constants
QP_MAIN_INIT  [line 66]

QP_MAIN_INIT = true

Prevent double loading since require_once won't work in all situations

on windows when some subfolders have caps :( (Check it out on static page generation)


[ Top ]


Globals
Log|Log_noop   $Debuglog [line 134]

Debug message log for debugging only (initialized here).

Default value:  new Log( 'note' )

[ Top ]

int   $localtimenow [line 221]

Corrected Unix timestamp to match server timezone

Default value:  $servertimenow + $time_difference

[ Top ]

Log   $Messages [line 146]

Info & error message log for end user (initialized here)

Default value:  new Log( 'error' )

[ Top ]

int   $servertimenow [line 213]

Absolute Unix timestamp for server

Default value:  time()

[ Top ]

GeneralSettings   $Settings [line 200]

Interface to general settings

Keep this below the creation of the DB object, because it checks for the correct db_version and catches "table does not exist" errors, providing a link to the install script.

Default value:  new GeneralSettings()
API Tags:
Usedby:  validate_dirname() - or $force_regexp_dirname form _advanced.php


[ Top ]

UserSettings   $UserSettings [line 206]

Interface to user settings

Default value:  new UserSettings()

[ Top ]