summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xHISTORY2
-rwxr-xr-xincludes/inc_rec.php12
2 files changed, 12 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 40c88e8..6aff131 100755
--- a/HISTORY
+++ b/HISTORY
@@ -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}\" />";