"; // Output the Form to De-Code a date echo "
"; echo "
"; echo "\n"; echo ""; include(dirname(__FILE__).'/lib/cal_decode_form.inc'); echo "\n"; echo "
\n"; echo "
\n"; // Asking for DOOT July 25 -- We simply need to get the proper cycles if (($dcode_mo === "7") && ($dcode_day === "25")){ echo "
"; echo "
"; echo "\"Rainbow"; echo "
"; echo "
"; echo "

July 25 ".$dcode_yr."
".$tm_date_proper."

The Day
Out of Time

"; echo "
"; echo "
"; } else { if ($this_moon_num == "1"){ $doot_link = "Day Out of Time $this_mysql_date_pieces[0]
"; // Output the Header with days of Plasmas echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
"; echo "

$doot_link

\n"; echo "
\n\n"; } // Change Locale, as needed // What language are you using? $ucd_locale = get_locale(); // What language are you using? // $ucd_locale = get_locale(); if ($ucd_locale == "es_ES"){$file_fun_lang_ext = "_es";} elseif ($ucd_locale == "nl_NL"){$file_fun_lang_ext = "_nl";} else {$file_fun_lang_ext = "_en";} // Choose the correct file // To avoid database query, we simply load the output of the kin table into an array // Get a file into an array. In this example we'll go through HTTP to get $lines = file(dirname(__FILE__).'/lib/kin_lookup'.$file_fun_lang_ext.'.txt'); // read into array $lines[] $inc = 0; foreach ($lines as $kin_line){ $kin_line_array[$inc] = explode("|", $kin_line); $inc ++; } // Get the translated tone $this_moon_name = $kin_line_array[$this_moon_num][6]; $this_moon_name = utf8_encode($this_moon_name); // Use 2 functions to get the correct 13moon date $tmc_yrs_since_array = tmc_ns_yr_nums($dcode_yr, $dcode_mo, $dcode_day); // returns array of two items: x x $tmc_ns_first_cycle = $tmc_yrs_since_array[0]; $tmc_ns_second_cycle = $tmc_yrs_since_array[1]; // $tmc_ns_first_cycle if ($tmc_ns_first_cycle == "-0"){ $tmc_ns_first_cycle = str_replace("-", "", "$tmc_ns_first_cycle"); } // Show this page's header -- moon, info, and form echo "\n"; echo "\n"; echo ""; // Moon Info echo ""; // Link to next month echo ""; echo "\n"; echo "
"; echo ""; echo "<"; echo ""; echo ""; echo "

$this_moon_name $tr_txt_moon $this_moon_num

$tm_date_proper"; echo "
"; echo ""; echo ">"; echo ""; echo "
\n"; // Output the Header with days of Plasmas echo "\n"; echo ""; include(dirname(__FILE__).'/lib/cal_maya_days_row.inc'); echo "\n"; echo "
\n"; // OUTPUP compiled calendar to the content buffer echo "$cal_display"; // Show Day out of Time Link if ($this_moon_name == "Cosmic"){ $doot_link = "Day Out of Time $this_mysql_date_pieces[0]
"; // Output the Header with days of Plasmas echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
"; echo "

$doot_link

\n"; echo "
\n\n"; } } // Show Links to Friends if ($permit_credits === "YES"){ echo "
"; echo "
"; echo "FLT"; echo " "; echo "SSP"; echo " "; echo "uCHING"; echo "
"; echo "
"; } // CLOSE beginning container DIV echo ""; // Stop Storing Output ... $tmc_content = ob_get_contents(); // End Output Buffer $some_tmc_valuefornull = ob_end_clean(); // SEND OUTPUT =============================================================== return $tmc_content; } ?>