aboutsummaryrefslogtreecommitdiff
path: root/lib/helper.php
diff options
context:
space:
mode:
authorMaZderMind2014-11-03 21:53:30 +0100
committerMaZderMind2014-11-07 00:17:40 +0100
commitdb0a85ea97096af4529b0ea3b903d182144c1310 (patch)
tree7dc8cebc458175627c7dd809ec67d6c2288cc221 /lib/helper.php
parent82a054e876424cf055793ae653fbb40b6d5e58ec (diff)
experimental program view
Diffstat (limited to 'lib/helper.php')
-rw-r--r--lib/helper.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 8951948..4dc6f69 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -1,5 +1,7 @@
<?php
+require_once('program.php');
+
function link_index()
{
return '';
@@ -46,3 +48,9 @@ function baseurl()
return $base;
}
+
+function strtoduration($str)
+{
+ $parts = explode(':', $str);
+ return ((int)$parts[0] * 60 + (int)$parts[1]) * 60;
+}