File/includes/init.php

Description

Does various initialization tasks and includes all needed files.

This page is included by most WebCalendar pages as the only include file. This greatly simplifies the other PHP pages since they don't need to worry about what files it includes.

Comments: The following scripts do not use this file:

  • login.php
  • week_ssi.php
  • upcoming.php
  • tools/send_reminders.php
How to use:
  1. call include_once 'includes/init.php'; at the top of your script.
  2. call any other functions or includes not in this file that you need
  3. call the print_header function with proper arguments
What gets called:
  • include_once 'includes/translate.php';
  • require_once 'includes/classes/WebCalendar.class.php';
  • require_once 'includes/classes/Event.class.php';
  • require_once 'includes/classes/RptEvent.class.php';
  • include_once 'includes/assert.php';
  • include_once 'includes/config.php';
  • include_once 'includes/dbi4php.php';
  • include_once 'includes/formvars.php';
  • include_once 'includes/functions.php';
  • include_once "includes/$user_inc";
  • include_once 'includes/validate.php';
  • include_once 'includes/site_extras.php';
  • include_once 'includes/access.php';
Also, for month.php, day.php, week.php, week_details.php:

  • author: Craig Knudsen <cknudsen@cknudsen.com>
  • version: $Id$
  • copyright: Craig Knudsen, <cknudsen@cknudsen.com>, http://www.k5n.us/cknudsen
  • license: GNU GPL
Includes
 include_once ('includes/'.$user_inc) (line 64)
 include_once ('includes/assert.php') (line 56)
 include_once ('includes/functions.php') (line 60)
 include_once ('includes/config.php') (line 57)
 include_once ('includes/dbi4php.php') (line 58)
 include_once ('includes/formvars.php') (line 59)
 include_once ('includes/translate.php') (line 49)

Does various initialization tasks and includes all needed files.

This page is included by most WebCalendar pages as the only include file. This greatly simplifies the other PHP pages since they don't need to worry about what files it includes.

Comments: The following scripts do not use this file:

  • login.php
  • week_ssi.php
  • upcoming.php
  • tools/send_reminders.php
How to use:
  1. call include_once 'includes/init.php'; at the top of your script.
  2. call any other functions or includes not in this file that you need
  3. call the print_header function with proper arguments
What gets called:
  • include_once 'includes/translate.php';
  • require_once 'includes/classes/WebCalendar.class.php';
  • require_once 'includes/classes/Event.class.php';
  • require_once 'includes/classes/RptEvent.class.php';
  • include_once 'includes/assert.php';
  • include_once 'includes/config.php';
  • include_once 'includes/dbi4php.php';
  • include_once 'includes/formvars.php';
  • include_once 'includes/functions.php';
  • include_once "includes/$user_inc";
  • include_once 'includes/validate.php';
  • include_once 'includes/site_extras.php';
  • include_once 'includes/access.php';
Also, for month.php, day.php, week.php, week_details.php:

  • author: Craig Knudsen <cknudsen@cknudsen.com>
  • version: $Id$
  • copyright: Craig Knudsen, <cknudsen@cknudsen.com>, http://www.k5n.us/cknudsen
  • license: GNU GPL
 include_once ('includes/site_extras.php') (line 66)
 include_once ('includes/validate.php') (line 65)
 include_once ('includes/gradient.php') (line 68)
 include_once ('includes/access.php') (line 67)
 require_once ('includes/classes/WebCalendar.class.php') (line 50)
 require_once ('includes/classes/Event.class.php') (line 51)
 require_once ('includes/classes/RptEvent.class.php') (line 52)
Functions
print_header (line 86)

Prints the HTML header and opening HTML body tag.

void print_header ([array $includes = ''], [string $HeadX = ''], [string $BodyX = ''], [ $disableCustom = false], [bool $disableStyle = false], [bool $disableRSS = false], [bool $disableAJAX = false], [ $disableUTIL = false], bool $disbleCustom)
  • array $includes: Array of additional files to include referenced from the includes directory
  • string $HeadX: Data to be printed inside the head tag (meta, script, etc)
  • string $BodyX: Data to be printed inside the Body tag (onload for example)
  • bool $disbleCustom: Do not include custom header? (useful for small popup windows, such as color selection)
  • bool $disableStyle: Do not include the standard css?
  • bool $disableRSS: Do not include the RSS link
  • bool $disableAJAX: Do not include the prototype.js link
  • $disableCustom
  • $disableUTIL
print_menu_dates (line 290)
void print_menu_dates ([ $menu = false])
  • $menu
print_trailer (line 244)

Prints the common trailer.

void print_trailer ([bool $include_nav_links = true], [bool $closeDb = true], [bool $disableCustom = false])
  • bool $include_nav_links: Should the standard navigation links be included in the trailer?
  • bool $closeDb: Close the database connection when finished?
  • bool $disableCustom: Disable the custom trailer the administrator has setup? (This is useful for small popup windows and pages being used in an iframe.)

Documentation generated on Thu, 10 Jun 2010 17:08:31 -0400 by phpDocumentor 1.4.3