$dnum = date(Ymd)*4;
$from = $_GET['fr'];
if($from == ""){
$from = $_POST['fr'];
}
if($from != $dnum){
echo("<<<<Restricted Area>>>>" .
"
Sorry, you must Log In to view this Page
");
exit();
}
$usrn = $_GET['usrn'];
if($usrn == ""){
$usrn = $_POST['usrn'];
}
if($usrn == ""){
echo("<<<<Restricted Area>>>>" .
"
Problem with your username. Please Log In again.
");
exit();
}
$ID = $_GET['ID'];
$dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1');
mysql_select_db('ecosmar_website', $dbcnx);
$listem = @mysql_query("SELECT ID,subject,time,filename,filesize,voices,date_rec,comment,dtnum FROM eco_sound WHERE ID='$ID'");
if (!$listem) {
echo("Problem Retrieving File Information.
Error: ". mysql_error()."
");
}
$row = mysql_fetch_array($listem);
$ID = $row['ID'];
$subject = $row['subject'];
$time = $row['time'];
$filename = $row['filename'];
$filepath = "http://www.eco-smart.org/sounds/".$filename;
$filet = explode('.',$filename);
$filetype = $filet[1];
$filesize = $row['filesize'];
$voices = $row['voices'];
$voicesstrip = stripslashes($voices);
$voices_break = nl2br($voicesstrip);
$date_rec = $row['date_rec'];
$chunk_dt = chunk_split($date_rec, 2, ':');
$chunk_arrt = explode(":", $chunk_dt);
$recorded = $chunk_arrt[2].'/'.$chunk_arrt[3].'/'.$chunk_arrt[0].$chunk_arrt[1];
$comment = $row['comment'];
$commentstrip = stripslashes($comment);
$commentbreak = nl2br($commentstrip);
$dtnum = $row['dtnum'];
$chunk_dtnum = chunk_split($dtnum, 2, ':');
$chunk_arr = explode(":", $chunk_dtnum);
$up = $chunk_arr[2].'/'.$chunk_arr[3].'/'.$chunk_arr[0].$chunk_arr[1];
?>
Eco-$mart Library
Audio File
Time: |
Recording Date: |
Upload Date: |
©2007 - Data Base Interface - Custom Built at:
|
|