The Sounds of Vintage SSB
Click on any MP3 file to listen. If you have any questions email me at N9MS@VintageSSB.NET
Call Sign:
|
Display all audio files for specified call sign.
If no call is entered, only the current week's audio will be displayed.
If ALL is entered, the entire audio archive list will be displayed. |
To display the VintageSSBReplay list, search for the callsign "VI" |
//$chkbox=$_POST["thisweek"];
function getFiledate($file, $format) {
if (is_file($file)) {
$filePath = $file;
if (!realpath($filePath)) {
$filePath = $_SERVER["DOCUMENT_ROOT"].$filePath;
}
$fileDate = filemtime($filePath);
if ($fileDate) {
$fileDate = date("$format",$fileDate);
return $fileDate;
}
return false;
}
return false;
}
if( isset($_POST['search']) ) {
$search=strtoupper($_POST['search']);
}else{
$search="";
}
$path = ".";
//$path = getcwd();
$narray=array();
$dir_handle = @opendir($path) or die("Unable to open $path");
//echo "Click the play button in front of any mp3 file to listen to a vintage ssb radio.
";
$i=0;
echo "
";
while($file = readdir($dir_handle))
{
if(is_dir($file))
{
continue;
}
else if($file != '.' && $file != '..')
{
//echo "$file
";
$narray[$i]=$file;
$i++;
}
}
sort($narray);
for($i=0; $i","",$narray[$i]."";
}else{
//if (substr($narray[$i],0,$calllen)==$search) {
if (strcasecmp((substr($narray[$i],0,$calllen)),$search)==0) {
echo "- ","",$narray[$i]."
| ";
}
}
}else{
if (getFiledate($narray[$i], "m/d/Y")=="04/07/2019"||getFiledate($narray[$i], "m/d/Y")=="04/08/2019"||getFiledate($narray[$i], "m/d/Y")=="04/09/2019"){
//if (getFiledate($narray[$i], "m/d/Y")=="02/17/2019"){
echo "- ","",$narray[$i]."
| ";
}
}
?>
}
}
echo " ";
//closing the directory
closedir($dir_handle);
?>
|