Rename user-facing bits of Dillo to Flenser.

I dunno if I got them all.

This is also now version 0.0.0
This commit is contained in:
2025-04-12 00:42:01 -04:00
parent 564567d389
commit e595830fab
32 changed files with 161 additions and 155 deletions

View File

@ -109,7 +109,7 @@ DOCTYPE
"<title>Bookmarks</title>\n"
CSS_STYLE
"</head>\n"
"<body id='dillo_bm'>\n"
"<body id='flenser_bm'>\n"
"\n"
" <h1>Bookmarks</h1>\n"
" <div style='float: right; padding: 1em'>\n"
@ -123,7 +123,7 @@ DOCTYPE
"<title>Bookmarks</title>\n"
CSS_STYLE
"</head>\n"
"<body id='dillo_bm'>\n"
"<body id='flenser_bm'>\n"
" <h1>Bookmarks</h1>\n"
"\n"
"<form action='modify'>\n"
@ -143,7 +143,7 @@ CSS_STYLE
" , mark its operands and\n"
" <input type='submit' name='submit' value='Submit'>\n"
" <p>You can also modify the bookmarks by editing the\n"
" <a href='file:~/.dillo/bm.txt'><code>~/.dillo/bm.txt</code></a> file.\n"
" <a href='file:~/.flenser/bm.txt'><code>~/.flenser/bm.txt</code></a> file.\n"
"</div>\n";
static const char *mainpage_sections_header =
@ -212,7 +212,7 @@ DOCTYPE
"<title>Bookmarks</title>\n"
CSS_STYLE
"</head>\n"
"<body id='dillo_bm'>\n"
"<body id='flenser_bm'>\n"
"<h1>Boorkmarks: New section</h1>\n"
"<form action='modify'>\n"
" <input type='hidden' name='operation' value='add_section'>\n"
@ -235,7 +235,7 @@ DOCTYPE
"<title>Bookmarks</title>\n"
CSS_STYLE
"</head>\n"
"<body id='dillo_bm'>\n"
"<body id='flenser_bm'>\n"
"<h1>Bookmarks: Update</h1>\n"
"<form action='modify'>\n"
"<input type='hidden' name='operation' value='modify2'>\n";
@ -274,7 +274,7 @@ DOCTYPE
"<title>Bookmarks</title>\n"
CSS_STYLE
"</head>\n"
"<body id='dillo_bm'>\n"
"<body id='flenser_bm'>\n"
"<h1>Bookmarks: Add URL</h1>\n"
"<form action='modify'>\n"
"<input type='hidden' name='operation' value='add_url2'>\n"
@ -583,7 +583,7 @@ static void Bms_check_import(void)
if (access(BmFile, F_OK) != 0) {
OldBmFile = dStrconcat(dGethomedir(), "/.dillo/bookmarks.html", NULL);
OldBmFile = dStrconcat(dGethomedir(), "/.flenser/bookmarks.html", NULL);
if (access(OldBmFile, F_OK) == 0) {
dStr_sprintf(dstr, cmd1, BmFile);
rc = system(dstr->str);
@ -1576,7 +1576,7 @@ static int Bmsrv_parse_token(Dsh *sh, char *Buf)
if (st != 0) {
char *err =
DOCTYPE
"<HTML><body id='dillo_bm'> Error on the bookmarks server..."
"<HTML><body id='flenser_bm'> Error on the bookmarks server..."
" </body></html>";
if (a_Dpip_dsh_write_str(sh, 1, err) != 0) {
return 1;
@ -1634,7 +1634,7 @@ int main(void) {
/* Initialize local data */
B_bms = dList_new(512);
B_secs = dList_new(32);
BmFile = dStrconcat(dGethomedir(), "/.dillo/bm.txt", NULL);
BmFile = dStrconcat(dGethomedir(), "/.flenser/bm.txt", NULL);
/* some OSes may need this... */
address_size = sizeof(struct sockaddr_un);

View File

@ -353,13 +353,13 @@ static void Cookies_init(void)
}
/* Get a stream for the cookies file */
filename = dStrconcat(dGethomedir(), "/.dillo/cookies.txt", NULL);
filename = dStrconcat(dGethomedir(), "/.flenser/cookies.txt", NULL);
file_stream = Cookies_fopen(filename, "r+", cookies_txt_header_str);
dFree(filename);
if (!file_stream) {
MSG("ERROR: Can't open ~/.dillo/cookies.txt; disabling cookies\n");
MSG("ERROR: Can't open ~/.flenser/cookies.txt; disabling cookies\n");
return;
}
@ -1126,7 +1126,7 @@ static bool_t Cookies_domain_matches(char *A, char *B)
/*
* Based on the host, how many internal dots do we need in a cookie domain
* to make it valid? e.g., "org" is not on the list, so dillo.org is a safe
* to make it valid? e.g., "org" is not on the list, so flenser.org is a safe
* cookie domain, but "uk" is on the list, so ac.uk is not safe.
*
* This is imperfect, but it's something. Specifically, checking for these
@ -1426,7 +1426,7 @@ static int Cookie_control_init(void)
bool_t enabled = FALSE;
/* Get a file pointer */
filename = dStrconcat(dGethomedir(), "/.dillo/cookiesrc", NULL);
filename = dStrconcat(dGethomedir(), "/.flenser/cookiesrc", NULL);
stream = Cookies_fopen(filename, "r", "DEFAULT DENY\n");
dFree(filename);

View File

@ -324,7 +324,7 @@ DLItem::DLItem(const char *full_filename, const char *url, const char *user_agen
/* avoid malicious SMTP relaying with FTP urls */
if (dStrnAsciiCasecmp(esc_url, "ftp:/", 5) == 0)
Filter_smtp_hack(esc_url);
cookies_path = dStrconcat(dGethomedir(), "/.dillo/cookies.txt", NULL);
cookies_path = dStrconcat(dGethomedir(), "/.flenser/cookies.txt", NULL);
dl_argv.clear();
dl_argv.push_back( (char*)"wget" );
if (stat(fullname, &ss) == 0)