luddens
cf75469a7f
fix bug pid option
...
PPIDString is a useless variable that causes bugs
7 years ago
Matthieu Gautier
4de8623a52
Correctly set the zimPathToSave if there are several zim file to add.
...
The variable `zimPathToSave` is used to store the option passed by the
user.
If we reuse this variable to store the real path to use for the first
zim file, then we will mess the path to save of other zim files.
Let's use a local variable here.
Fix #288
7 years ago
Kelson
c6499ad5c6
Fix typo in kiwix-manage usage()
7 years ago
Emmanuel Engelhart
34ceaf37f2
Better kiwix-serve usage()
7 years ago
Emmanuel Engelhart
3864b2404c
Better kiwix-manage usage()
7 years ago
Kelson
88cea54520
Revert "[kiwix-manage] Add a `download` command to kiwix-manage."
...
This reverts commit c1e635bd4e .
7 years ago
Matthieu Gautier
2774eb9529
Do not use this_thread::sleep or thread::hardware_concurrency.
...
Mingw doesn't implement them. So, we should not use it.
I suppose that it was working before because mingw package for debian trusty
simply no provides a "thread" header.
We may face to include the native "thread" header.
7 years ago
Matthieu Gautier
848d058610
Always use POLL wen possible.
...
SELECT works only with fd < 1024. If we've got "too many" zim files,
the fd of the socket is > 1024 and we cannot create the daemon.
Also add the MHD_USE_DEBUG flag when we are verbose.
Fix #277
7 years ago
Kelson
c337cf174e
Add --nodatealiases command line option #269
7 years ago
Matthieu Gautier
d0687e40a6
Do not use POLL on windows.
...
libmicrohttpd has no support of poll on windows.
7 years ago
Matthieu Gautier
336cbe691d
Remove rpath in installed binaries.
...
Fix #250
7 years ago
Matthieu Gautier
8882a716a0
[manage] Allow user to add several zim files to library in the same time.
...
Note that no option is allowed if several zim files are specified.
Fix #236
7 years ago
Matthieu Gautier
c5b293c6f3
[manage] Do not show all books if id has been provided on command line.
...
Fix #240 .
7 years ago
Matthieu Gautier
15c6252db4
Allow to search the catalog by tags.
...
This way a client may filter the catalog by category.
7 years ago
Matthieu Gautier
c332c123fe
Fix handling of absolute url in kiwix-serve.
...
We still need to change the html content to handle absolute url in zims.
Issue has been introduced by commit 978dc47 . Some code was not related
to redirection but to absolute url. I have made a clean a bit too more
aggressive.
Fix #262
7 years ago
Matthieu Gautier
978dc47865
[server] Correctly implement 302 redirection if the entry is a redirection.
...
If the entry is a redirection, we should redirect the client to the
right entry instead of serving the target content.
As we are doing a redirection, urls are good and we don't have to change
link inside the html or css content.
Fix #192
7 years ago
Matthieu Gautier
ffaecb5389
Update to last kiwix-lib API.
...
The `common` repository has been renamed to `tools`.
7 years ago
Matthieu Gautier
3c8da8c74c
Do not handle external index.
...
Now that kiwix-lib do not handle external index, we must not try to handle
it ourselves.
See kiwix/kiwix-lib#190.
Fix #245
7 years ago
Matthieu Gautier
51051752f1
Initialize geoquery variables.
...
Fix #251
7 years ago
Kelson
fd2a0decd3
Merge branch 'master' into legoktm-patch-2
7 years ago
Kunal Mehta
067a40a156
Improve kiwix-serve.1
...
Minor grammar fixes and remove reference to kiwix-install(1).
7 years ago
Kunal Mehta
cfa22365fe
Improve grammar in kiwix-manage.1
...
And change one of the URLs to HTTPS, and remove a reference
to the removed kiwix-install(1).
7 years ago
Kelson
d1802c52a2
Update usage()
7 years ago
Matthieu Gautier
1032a46c57
Be able to remove several books in a single command.
...
Fix #236
7 years ago
Matthieu Gautier
c1e635bd4e
[kiwix-manage] Add a `download` command to kiwix-manage.
...
With the download command, it is possible to download a zim corresponding
to a remote book in the library.
7 years ago
Matthieu Gautier
c8be8fbad8
[kiwix-manage] Update to last API of kiwix-lib.
...
`kiwix::Manager` cannot set the book index. We have to modify the book
itself.
We remove the `backend` option as the only supported xapian was and always
was xapian.
7 years ago
Matthieu Gautier
640f907fb2
Avoid recopy of books
7 years ago
Matthieu Gautier
eb407956b9
The index path must be absolute.
7 years ago
Matthieu Gautier
422dde9ff2
Allow the opds feed to filtered by the language and "paged".
7 years ago
Matthieu Gautier
f691f85724
Correctly get the bookIds to the opdsfeed.
...
We want to have LOCAL and REMOTE and VALID files.
7 years ago
Matthieu Gautier
fd4f228a41
Use the `to_string` function in kiwix lib instead of redefine it.
7 years ago
Matthieu Gautier
bf40d4ff91
Adapt kiwix-manage to new kiwix-lib API.
...
- Books are identified by Id, not by index.
- No more current option.
7 years ago
Matthieu Gautier
74fecd34e6
Adapt kiwix-serve to new API.
...
We also change the welcome page to link to icon url instead of
embeded them as base64 data.
7 years ago
Pavel Minaev
4a88c44626
Fix #217 : RequestContext::connection is unused
8 years ago
Pavel Minaev
88a32a152f
Fix #213 : sockaddr_in is undefined when compiling on FreeBSD
...
Make sure that <netinet/in.h> is included as per POSIX spec.
8 years ago
Pavel Minaev
f0568ff4a7
Fix #215 : istringstream used without #include <sstream>
8 years ago
Pavel Minaev
221f3ef340
Fix #211 : getMimeTypeForFile does not handle files without extensions correctly
...
Use `auto` instead of `unsigned int` to ensure proper size on 64-bit platforms
8 years ago
cyrillemoureaux
228402b505
Fix crash when --library is provided but no actual library path is, by
...
avoiding going over argc.
8 years ago
Kelson
8fccbc4c99
Improved taskbar #160 #59
8 years ago
Matthieu Gautier
282b85c341
Do not use std::sto[fi] or std::to_string.
8 years ago
Matthieu Gautier
4c3acd06de
Add missing include.
...
Needed by printf.
8 years ago
Philip Munaawa
efd4a1434e
return 404 for missing resources
8 years ago
Matthieu Gautier
7c254544ca
Remove kiwix-install tool.
...
Fix #189
8 years ago
Kelson
3766c4882b
Proper exit code #194
8 years ago
Philip Munaawa
4433421c48
also replace __CONTENT_ESCAPED__ for --nosearchbar
8 years ago
Philip Munaawa
c00f0be7ef
fix static resources on home page when using --nosearchbar
8 years ago
Matthieu Gautier
6f49e78eb4
Update kiwix-serve to the new kiwix-lib API.
...
Related to kiwix/kiwix-lib#123
8 years ago
Matthieu Gautier
a01906d273
[manage] Move handling of action in separated function.
8 years ago
Matthieu Gautier
4bd18ce466
Add open search support to search in the catalog.
8 years ago
Matthieu Gautier
fb8c14a1e4
Make kiwix-serve serve an opds stream of all zims.
8 years ago