require_once 'classes/tc_date.php'; require_once 'tc_calendar.php'; require_once 'calendar_functions.php'; //change the following line to show or hide calendar information $show_calendar_info = true; $show_fb_info = true; $show_servertime_info = true; $thispage = $_SERVER['PHP_SELF']; //timezone var, need to setup before any other tasks $timezone = getParameter("tmz"); if (!$timezone) { $timezone = date_default_timezone_get(); } @date_default_timezone_set($timezone); $cdate = new tc_date(); $today = $cdate->getDate(); $sld = getParameter("selected_day"); $slm = getParameter("selected_month"); $sly = getParameter("selected_year"); if (!is_numeric($sld)) { $sld = "00"; } if (!is_numeric($slm)) { $slm = "00"; } if (!is_numeric($sly)) { $sly = "0000"; } $year_start = getParameter("year_start", "number", 0); $year_end = getParameter("year_end", "number", 0);
<?php require_once 'classes/tc_date.php'; require_once 'tc_calendar.php'; $thispage = $_SERVER['PHP_SELF']; $cdate = new tc_date(); $today = $cdate->getDate(); $sld = isset($_REQUEST["selected_day"]) ? $_REQUEST["selected_day"] : 0; $slm = isset($_REQUEST["selected_month"]) ? (int) $_REQUEST["selected_month"] : 0; $sly = isset($_REQUEST["selected_year"]) ? (int) $_REQUEST["selected_year"] : 0; $year_start = isset($_REQUEST["year_start"]) ? $_REQUEST["year_start"] : 0; $year_end = isset($_REQUEST["year_end"]) ? $_REQUEST["year_end"] : 0; $startDate = isset($_REQUEST["str"]) ? $_REQUEST["str"] : 0; $time_allow1 = isset($_REQUEST["da1"]) ? $_REQUEST["da1"] : ""; $time_allow2 = isset($_REQUEST["da2"]) ? $_REQUEST["da2"] : ""; $ta1_set = $time_allow1 != "" ? true : false; $ta2_set = $time_allow2 != "" ? true : false; $show_not_allow = isset($_REQUEST["sna"]) ? $_REQUEST["sna"] : true; $auto_submit = isset($_REQUEST["aut"]) ? $_REQUEST["aut"] : false; $form_name = isset($_REQUEST["frm"]) ? $_REQUEST["frm"] : ""; $target_url = isset($_REQUEST["tar"]) ? $_REQUEST["tar"] : ""; $show_input = isset($_REQUEST["inp"]) ? $_REQUEST["inp"] : true; $date_format = isset($_REQUEST["fmt"]) ? $_REQUEST["fmt"] : DATE_FORMAT; //format of date shown in panel if $show_input is false $dsb_txt = isset($_REQUEST["dis"]) ? $_REQUEST["dis"] : ""; $date_pair1 = isset($_REQUEST["pr1"]) ? $_REQUEST["pr1"] : ""; $date_pair2 = isset($_REQUEST["pr2"]) ? $_REQUEST["pr2"] : ""; $date_pair_value = isset($_REQUEST["prv"]) ? $_REQUEST["prv"] : ""; $path = isset($_REQUEST["pth"]) ? $_REQUEST["pth"] : ""; $sp_dates = isset($_REQUEST["spd"]) ? @tc_calendar::check_json_decode($_REQUEST["spd"]) : array(array(), array(), array()); $sp_type = isset($_REQUEST["spt"]) ? $_REQUEST["spt"] : 0;
<?php require_once 'classes/tc_date.php'; require_once 'classes/tc_calendar.php'; require_once 'calendar_functions.php'; //change the following line to show or hide calendar information $show_calendar_info = true; $thispage = $_SERVER['PHP_SELF']; //timezone var, need to setup before any other tasks $timezone = getParameter("tmz"); if (!$timezone) { $timezone = date_default_timezone_get(); } @date_default_timezone_set($timezone); $cdate = new tc_date(); $today = $cdate->getDate(); $sld = getParameter("selected_day", "number", 0); $slm = getParameter("selected_month", "number", 0); $sly = getParameter("selected_year", "number", 0); $year_start = getParameter("year_start", "number", 0); $year_end = getParameter("year_end", "number", 0); $startDate = getParameter("str", "number", 0); $time_allow1 = getParameter("da1"); $time_allow2 = getParameter("da2"); $ta1_set = $time_allow1 != "" ? true : false; $ta2_set = $time_allow2 != "" ? true : false; $show_not_allow = getParameter("sna", "boolean", true); $auto_submit = getParameter("aut", "boolean", false); $form_name = getParameter("frm"); $target_url = getParameter("tar"); $show_input = getParameter("inp", "boolean", true);
require_once "classes/tc_calendar.php"; require_once "classes/tc_date.php"; if (!isset($show_calendar_info)) { $show_calendar_info = true; } if (!isset($show_fb_info)) { $show_fb_info = true; } if (!isset($show_servertime_info)) { $show_servertime_info = true; } $tobj = new tc_calendar(""); $version = $tobj->version; $check_version = $tobj->check_new_version; $tdate = new tc_date(); if (!isset($timezone)) { $timezone = date_default_timezone_get(); } $wan_enabled = 0; $new_version = 0; if ($wan_enabled = @fsockopen("www.google.com", 80, $errno, $errstr, 1)) { if ($check_version && $wan_enabled) { if (function_exists("file_get_contents")) { $new_version = @file_get_contents("http://www.triconsole.com/php/tc_calendar_version.php?v=" . $version); } } } elseif (function_exists("file_get_contents")) { $ctx = stream_context_create(array('http' => array('timeout' => 1))); $wan_enabled = @file_get_contents("http://www.google.com", null, $ctx, 0, 1); if ($check_version && $wan_enabled) {