PHP Classes

File: cal.php

Recommend this page to a friend!
  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: 18 years ago
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']);

?>