Browse code

implement sending notification e-mails (with the corresponding config file support)

Dario Rodriguez authored on 24/07/2014 11:03:47
Showing 1 changed files
... ...
@@ -12,11 +12,19 @@
12 12
 #ifndef KAKUMEI_CONFIG_H
13 13
 #define KAKUMEI_CONFIG_H
14 14
 typedef struct kaconfig {
15
+        /* general */
15 16
         char *logfile;
16 17
         char *cookiename;
17 18
         char *cookiedomain;
18 19
         char *bannerpath;
19 20
         int sslproxy;
21
+        /* mail */
22
+        char *from;
23
+        char *subjpost;
24
+        char *subjcomment;
25
+        int sizelines;
26
+        int usedlines;
27
+        char **lines;
20 28
 } kaconfig;
21 29
 
22 30
 kaconfig *kaconfig_init(char *configfile);
Browse code

add logfile configuration option

Dario Rodriguez authored on 14/07/2014 12:29:25
Showing 1 changed files
... ...
@@ -12,6 +12,7 @@
12 12
 #ifndef KAKUMEI_CONFIG_H
13 13
 #define KAKUMEI_CONFIG_H
14 14
 typedef struct kaconfig {
15
+        char *logfile;
15 16
         char *cookiename;
16 17
         char *cookiedomain;
17 18
         char *bannerpath;
... ...
@@ -22,5 +23,5 @@ kaconfig *kaconfig_init(char *configfile);
22 23
 void kaconfig_free(kaconfig *config);
23 24
 
24 25
 int kaconfig_exists(char *configfile);
25
-int kaconfig_write(char *configfile,char *cookiename,char *cookiedomain, char *bannerpath, int sslproxy);
26
+int kaconfig_write(char *configfile,char *logfile,char *cookiename,char *cookiedomain, char *bannerpath, int sslproxy);
26 27
 #endif
Browse code

make the secure attribute in the cookie optional (only works if using a ssl proxy, as in stunnel)

Dario Rodriguez authored on 14/07/2014 12:10:33
Showing 1 changed files
... ...
@@ -15,11 +15,12 @@ typedef struct kaconfig {
15 15
         char *cookiename;
16 16
         char *cookiedomain;
17 17
         char *bannerpath;
18
+        int sslproxy;
18 19
 } kaconfig;
19 20
 
20 21
 kaconfig *kaconfig_init(char *configfile);
21 22
 void kaconfig_free(kaconfig *config);
22 23
 
23 24
 int kaconfig_exists(char *configfile);
24
-int kaconfig_write(char *configfile,char *cookiename,char *cookiedomain, char *bannerpath);
25
+int kaconfig_write(char *configfile,char *cookiename,char *cookiedomain, char *bannerpath, int sslproxy);
25 26
 #endif
Browse code

add authid cookie to complement the session in QUERY_STRING

Dario Rodriguez authored on 13/07/2014 21:41:07
Showing 1 changed files
... ...
@@ -12,7 +12,7 @@
12 12
 #ifndef KAKUMEI_CONFIG_H
13 13
 #define KAKUMEI_CONFIG_H
14 14
 typedef struct kaconfig {
15
-        char *cookieprefix;
15
+        char *cookiename;
16 16
         char *cookiedomain;
17 17
         char *bannerpath;
18 18
 } kaconfig;
... ...
@@ -21,5 +21,5 @@ kaconfig *kaconfig_init(char *configfile);
21 21
 void kaconfig_free(kaconfig *config);
22 22
 
23 23
 int kaconfig_exists(char *configfile);
24
-int kaconfig_write(char *configfile,char *cookieprefix,char *cookiedomain, char *bannerpath);
24
+int kaconfig_write(char *configfile,char *cookiename,char *cookiedomain, char *bannerpath);
25 25
 #endif
Browse code

add config file

Dario Rodriguez authored on 11/07/2014 10:53:59
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,25 @@
1
+/*
2
+ * kakumei_config.h
3
+ *
4
+ * Config management for the kakumei server.
5
+ *
6
+ * Header file.
7
+ *
8
+ * Author: Dario Rodriguez dario@softhome.net
9
+ * This program is licensed under the terms of the Affero GPL v1.0+ license.
10
+ */
11
+
12
+#ifndef KAKUMEI_CONFIG_H
13
+#define KAKUMEI_CONFIG_H
14
+typedef struct kaconfig {
15
+        char *cookieprefix;
16
+        char *cookiedomain;
17
+        char *bannerpath;
18
+} kaconfig;
19
+
20
+kaconfig *kaconfig_init(char *configfile);
21
+void kaconfig_free(kaconfig *config);
22
+
23
+int kaconfig_exists(char *configfile);
24
+int kaconfig_write(char *configfile,char *cookieprefix,char *cookiedomain, char *bannerpath);
25
+#endif