diff options
author | Alib <aliboba@free.fr> | 2010-02-19 15:44:49 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-02-19 15:44:49 +0100 |
commit | 2441137a2fbb63547d1963da57c894e8ef889a80 (patch) | |
tree | c47d197546a6fcf35bc0edce83abe60a183bcd8e /includes/inc_rec.php | |
parent | 1c07c44adc4af0495c2535904f5f863d36041d62 (diff) | |
parent | 97119d9248475946e69ed8485fdd4723c5f54fbe (diff) | |
download | istreamdev-2441137a2fbb63547d1963da57c894e8ef889a80.tar.gz istreamdev-2441137a2fbb63547d1963da57c894e8ef889a80.tar.bz2 |
Merge branch 'master' of projects.vdr-developer.org:istreamdev
Diffstat (limited to 'includes/inc_rec.php')
-rwxr-xr-x | includes/inc_rec.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/inc_rec.php b/includes/inc_rec.php index b01a64c..a950d14 100755 --- a/includes/inc_rec.php +++ b/includes/inc_rec.php @@ -39,11 +39,15 @@ else while ($recname = readdir($dir_handle)) if($recname == "." || $recname == ".." || $recname == "epg.data" || $recname == 'lost+found') continue; - $recname2=addslashes($recname); + $recname2 = addslashes($recname); + + $date = preg_replace('/-/', '/', substr($recname2, 0, 10)); + $time = preg_replace('/\./', 'h', substr($recname2, 11, 5)); + $recnice = $date .' at ' .$time; if (strstr($recname, ".rec") == ".rec") { - print "<li class=\"menu\"><a class=\"noeffect\" href=\"javascript:sendForm('$recname2');\"><span class=\"name\">$recname</span><span class=\"arrow\"></span></a></li>\r\n"; + 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\"/>"; print " <input name=\"type\" type=\"hidden\" id=\"type\" value=2 />"; |