include "lib.php";
/* include "php-lib/config.php";
include "php-lib/mysql.php";*/
?>
common_header( "today" );?>
$newline = array("\r\n", "\n\r", "\r", "\n");
$getDate = $_REQUEST['d'];
if ($getDate =='')
{
$curDate = date("M d, Y");
$curYear = date("Y");
$curMonth = date("n");
$curTimestamp = mktime(0, 0, 0, date("m"), date("d"), date("Y"));
$tempDate = date("Ymd");
}
else
{
$curDate = date("M d, Y", $getDate);
$curYear = date("Y", $getDate);
$curMonth = date("n", $getDate);
$curTimestamp = $getDate;
$tempDate = date("Ymd", $getDate);
}
/*
$hDB = ConnectAdDB();
$sSql = "SELECT * from tong_sheng where timestamp = '".$curTimestamp."'";
$dResults = query($sSql, $hDB);
$accountCount = count($dResults);
if($accountCount>0){
$row = $dResults[0];
$today=$row['date'];
$lunarDate=$row['lunar_date'];
$lunarDate2=$row['lunar_date2'];
$toDo=$row['to_do'];
$notToDo=$row['not_to_do'];
$text=$row['content'];
$text = str_replace($newline, '
', $text);
$audio = $row['audio'];
}
else { $error = "N/A"; }*/
$textFile = $tempDate.".txt";
$audio = "media/".$tempDate.".mp3";
$data_file = "upload_doc/".$textFile;
if (is_file($data_file)){
$content = file_get_contents($data_file);
//$content = utf8_2_big5($content);
$rData = explode("\n", $content);
}
//print_r($rData);
?>
// include "upload_doc/".$textFile;?>
//print_r($rData);?>
if ($error!='') echo $error; ?>

|
 |
| 宜: |
|
| 忌: |
|
|
 |
|
|
|
|
common_footer();?>