Login   Register  
PHP Classes
elePHPant
Icontem

File: cal.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Fidel Bravo  >  Kalender  >  cal.php  >  Download  
File: cal.php
Role: Example script
Content type: text/plain
Description: Example
Class: Kalender
Display month calendars denoting holidays
Author: By
Last change:
Date: 2006-02-13 05:49
Size: 811 bytes
 

Contents

Class file image Download
<?php

// default Language
if (!$_GET['lang']) {
    
$GLOBALS['lang'] = "de";
}
// default Country
if (!$_GET['country']) {
    
$GLOBALS['country'] = "de";
}
include (
"lang/conf.php");
include (
"lang/locallang.php");
if (
$GLOBALS['country']) {
    if (
file_exists('country/extcountry_'.$GLOBALS['country'].'.php')) {
        include (
'country/extcountry_'.$GLOBALS['country'].'.php');
    } else {
        include (
'country/extcountry_de.php');
    }
}

include (
"class/class.kalendar.php");
include (
"class/class.template.php");

$day = (!empty ($_GET['day'])) ? $_GET['day'] : date("j");
$month = (!empty ($_GET['month'])) ? $_GET['month'] : date("n");
$year = (!empty ($_GET['year'])) ? $_GET['year'] : date("Y");

$cal = new Calendar($day$month$year);
$cal->showTemplate($GLOBALS['INI']['skin']);

?>