1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-02-09 09:23:56 +00:00
Commit graph

22 commits

Author SHA1 Message Date
3c10d624e3 Allow users to specify min/max valid pastie sizes. 2017-04-24 19:09:43 +01:00
eebcfb4157 Set default html path to "", not "html". 2017-04-23 13:58:06 +01:00
0add0720d5 Add langmap_dir setting.
Allows users to specify the path to the langmap dir for
source-highlight.
2017-04-23 13:57:49 +01:00
75674525de Response keeps a ptr to the SettingsBag now. 2017-04-23 13:40:48 +01:00
26aa51c3be Add a redis_db setting to the ini file. 2017-04-21 23:26:01 +01:00
b03c3198b8 Make a SettingsBag class that wraps the ini settings.
Easily allows to have default values for options
that are not specified in the loaded ini file.
2017-04-21 23:10:16 +01:00
680f13e1f6 Refactoring.
IncRedis is now held by Response, if requested by the base class.
Response objects know their names, and they use it to load
the html (soon to be mustache) data from disk.
Main only prepares a factory, the factory then instantiates
the actual Response.
The code now correctly serves index.cgi when the request is /.
Remove kakoune's safe_ptr from inside src and put an updated
one in lib/kakoune.
2017-04-15 03:18:33 +01:00
4bf8dfc29f Enable the redis_mode option in tawashi.ini 2017-04-14 00:50:50 +01:00
da2484b0d4 Use base_uri in the response 2017-04-11 19:36:18 +01:00
2dd4ebe515 Load redis parameters from config file. 2017-04-11 18:19:19 +01:00
aef2210f6d Add tawashiConfig.h.in with default paths. 2017-04-11 08:30:22 +01:00
4354f4bf29 Add GPL3 licence. 2017-04-06 23:35:06 +01:00
31890ba5e4 Allow retrieval of pasties 2017-04-06 23:28:57 +01:00
81cf36de22 Rename CGIEnv to cgi::Env 2017-04-06 23:02:17 +01:00
33c52b88d5 Rename submit form to submit paste. 2017-04-06 22:45:44 +01:00
dbd1a3a90a Submitting a paste and saving to redis works! 2017-04-06 22:42:43 +01:00
98d98fc4ba Step up work on responses. 2017-04-06 21:27:38 +01:00
cc20a8ccfb Add CurlWrapper class and use it to escape GET/POST values.
Use the new code to print the values from the request.
2017-04-06 20:15:44 +01:00
cd72d374c5 query_string() should return the raw GET string. 2017-04-05 20:07:42 +01:00
3df7a4c5d3 Implement code that splits version infos.
According to the docs, the version info is
something like LALALA/X.X with X being a single digit.
2017-04-05 09:25:25 +01:00
f8d6796fc1 Wrap environment in a class. 2017-04-05 08:41:49 +01:00
fea5b738df First commit 2017-04-04 20:58:40 +01:00