diff options
author | Alib <aliboba@free.fr> | 2010-02-19 16:04:47 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-02-19 16:04:47 +0100 |
commit | d00b00d06488c746f596133d5cd107a74f254e54 (patch) | |
tree | e35a9f382741b892e9f9f2405f8184019657eeb7 | |
parent | c697e1a643cb4d742ed9c095e7821f712df19d94 (diff) | |
parent | cd3870e22a1393db0ae61698bb729439addb1240 (diff) | |
download | istreamdev-d00b00d06488c746f596133d5cd107a74f254e54.tar.gz istreamdev-d00b00d06488c746f596133d5cd107a74f254e54.tar.bz2 |
Merge branch 'master' of projects.vdr-developer.org:istreamdev
-rwxr-xr-x | HISTORY | 2 | ||||
-rwxr-xr-x | includes/inc_rec.php | 12 |
2 files changed, 12 insertions, 2 deletions
@@ -4,7 +4,7 @@ iStreamdev History in progress: - fixed indentation -- nice display of recording date & time +- nice display of recording date & time and names - epg characters encoding detection and conversion to utf8 if necessary 19.02.2010 - V.0.3.6.1 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 "<li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('$recname2');\"><span class=\"name\">$recnice</span><span class=\"arrow\"></span></a></li>\r\n"; print "<form name=\"$recname\" id=\"$recname\" method=\"post\" action=\"index.php\">"; print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"stream\"/>"; @@ -56,7 +61,12 @@ else while ($recname = readdir($dir_handle)) } else { - print "<li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('$recname2');\"><span class=\"name\">$recname</span><span class=\"arrow\"></span></a></li>\r\n"; + $recnice = $recname; + if ($recnice[0] == '@') + $recnice = substr($recnice, 1); + $recnice = preg_replace('/\_/', ' ', $recnice); + + print "<li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('$recname2');\"><span class=\"name\">$recnice</span><span class=\"arrow\"></span></a></li>\r\n"; print "<form name=\"$recname\" id=\"$recname\" method=\"post\" action=\"index.php\">"; print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"recordings\"/>"; print " <input name=\"dir\" type=\"hidden\" id=\"dir\" value=\"{$dir}/{$recname}\" />"; |