From 11199550575a9904d97ba7e90f23688f724a0864 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sat, 15 Jun 2013 10:51:27 +0200 Subject: [PATCH] cal: basic addon layout --- cal/cal.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 cal/cal.php diff --git a/cal/cal.php b/cal/cal.php new file mode 100644 index 00000000..302549bb --- /dev/null +++ b/cal/cal.php @@ -0,0 +1,40 @@ + + * License: MIT + * ******************************************************************/ + + +function cal_install() +{ +} +function cal_uninstall() +{ +} +function cal_module() +{ +} +/* pathes + * /cal/$user/export/$format + */ +function cal_content() +{ + $a = get_app(); + $o = ""; + if ($a->argc == 1) { + $o = "

".t('Some text to explain what this does.')."

"; + } elseif ($a->argc==4) { + $username = $a->argv[1]; + $do = $a->argv[2]; + $format = $a->argv[3]; + $o = "

".$do." calendar for ".$username." as ".$format." file.

"; + } else { + $o = "

".t('Wrong number of parameters')."

"; + } + return $o; +} + +?>