]> git.mxchange.org Git - friendica-addons.git/blob - cal/cal.php
added MIT License file
[friendica-addons.git] / cal / cal.php
1 <?php
2 /********************************************************************
3  * Name: Calendar Export
4  * Description: This addon exports the public events of your users as calendar files
5  * Version: 0.1
6  * Author: Tobias Diekershoff <https://f.diekershoff.de/profile/tobias>
7  * License: MIT
8  * ******************************************************************/
9
10
11 function cal_install()
12 {
13 }
14 function cal_uninstall()
15 {
16 }
17 function cal_module()
18 {
19 }
20 /*  pathes
21  *  /cal/$user/export/$format
22  */
23 function cal_content()
24 {
25     $a = get_app();
26     $o = "";
27     if ($a->argc == 1) {
28         $o = "<p>".t('Some text to explain what this does.')."</p>";
29     } elseif ($a->argc==4) {
30         $username = $a->argv[1];
31         $do = $a->argv[2];
32         $format = $a->argv[3];
33         $o = "<p>".$do." calendar for ".$username." as ".$format." file.</p>";
34     } else {
35         $o = "<p>".t('Wrong number of parameters')."</p>";
36     }
37     return $o;
38 }
39
40 ?>