Browse code

core: add openser database URL for compatibility, used with OPENSER_MOD_INTERFACE

Henning Westerholt authored on 03/07/2009 12:34:41
Showing 1 changed files
... ...
@@ -197,11 +197,17 @@
197 197
 /* maximum path length */
198 198
 #define PATH_MAX_GUESS	1024
199 199
 
200
-#define DEFAULT_DB_URL "mysql://ser:heslo@localhost/ser"
201
-#define DEFAULT_DB_URL_LEN (sizeof(DEFAULT_DB_URL) - 1)
202
-
203
-#define DEFAULT_RODB_URL "mysql://serro:47serro11@localhost/ser"
204
-#define DEFAULT_RODB_URL_LEN (sizeof(DEFAULT_RODB_URL) - 1)
200
+#ifdef OPENSER_MOD_INTERFACE
201
+	#define DEFAULT_DB_URL "mysql://openser:openserrw@localhost/openser"
202
+	#define DEFAULT_DB_URL_LEN (sizeof(DEFAULT_DB_URL) - 1)
203
+	#define DEFAULT_RODB_URL "mysql://openserro:openserro@localhost/openser"
204
+	#define DEFAULT_RODB_URL_LEN (sizeof(DEFAULT_RODB_URL) - 1)
205
+#else
206
+	#define DEFAULT_DB_URL "mysql://ser:heslo@localhost/ser"
207
+	#define DEFAULT_DB_URL_LEN (sizeof(DEFAULT_DB_URL) - 1)
208
+	#define DEFAULT_RODB_URL "mysql://serro:47serro11@localhost/ser"
209
+	#define DEFAULT_RODB_URL_LEN (sizeof(DEFAULT_RODB_URL) - 1)
210
+#endif
205 211
 
206 212
 /* table holding versions of other ser tables */
207 213
 #define VERSION_TABLE "version"