aboutsummaryrefslogtreecommitdiff
path: root/lib/helper.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;
+}