From c96ba3be049fadb71c9cbfaa53f21607c60d66a5 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Fri, 19 Feb 2010 15:45:12 +0100 Subject: Nicer recordings dir name --- includes/inc_rec.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/inc_rec.php b/includes/inc_rec.php index a950d14..2ff9c38 100755 --- a/includes/inc_rec.php +++ b/includes/inc_rec.php @@ -47,6 +47,11 @@ else while ($recname = readdir($dir_handle)) if (strstr($recname, ".rec") == ".rec") { + + $date = preg_replace('/-/', '/', substr($recname, 0, 10)); + $time = preg_replace('/\./', 'h', substr($recname, 11, 5)); + $recnice = $date .' at ' .$time; + print "
  • $recnice
  • \r\n"; print "
    "; print " "; @@ -56,7 +61,12 @@ else while ($recname = readdir($dir_handle)) } else { - print "
  • $recname
  • \r\n"; + $recnice = $recname; + if ($recnice[0] == '@') + $recnice = substr($recnice, 1); + $recnice = preg_replace('/\_/', ' ', $recnice); + + print "
  • $recnice
  • \r\n"; print ""; print " "; print " "; -- cgit v1.2.3