summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-02-19 15:17:05 +0100
committerTheTroll <trolldev@gmail.com>2010-02-19 15:17:05 +0100
commitb4b98589299cecd42b20e3ba1c624617a9aff3f0 (patch)
treed2063485cc522affa825bbcdc84c4fa9169270df
parent4ae469eba5c9dcb37ffa90bfd5e6beaf2b63ef83 (diff)
downloadistreamdev-b4b98589299cecd42b20e3ba1c624617a9aff3f0.tar.gz
istreamdev-b4b98589299cecd42b20e3ba1c624617a9aff3f0.tar.bz2
Nice display of recordings date and time
-rwxr-xr-xincludes/inc_rec.php8
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 />";