King_DuckZ
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
King_DuckZ
4bf8dfc29f
Enable the redis_mode option in tawashi.ini
2017-04-14 00:50:50 +01:00
King_DuckZ
a46e60c6dc
Update incredis
2017-04-13 19:44:37 +01:00
King_DuckZ
69db539252
Update incredis
2017-04-13 09:02:52 +01:00
King_DuckZ
d1690ed6cb
Update incredis
2017-04-12 23:31:27 +01:00
King_DuckZ
b61465476b
Add install command
2017-04-11 19:47:05 +01:00
King_DuckZ
da2484b0d4
Use base_uri in the response
2017-04-11 19:36:18 +01:00
King_DuckZ
41e1d35c7a
Make ini parser use a map of string_ref
...
It is important that you keep your IniFile object around
if you access stuff in the map returned by parsed() at this
point.
2017-04-11 18:32:43 +01:00
King_DuckZ
2dd4ebe515
Load redis parameters from config file.
2017-04-11 18:19:19 +01:00
King_DuckZ
6a6d4c85bb
Import pathname from dindexer.
2017-04-11 18:10:19 +01:00
King_DuckZ
ab9b4ec8c3
Add sample config files
2017-04-11 08:45:34 +01:00
King_DuckZ
aef2210f6d
Add tawashiConfig.h.in with default paths.
2017-04-11 08:30:22 +01:00
King_DuckZ
f331113be8
Add parser for ini file
2017-04-10 22:37:22 +01:00
King_DuckZ
ed25d60351
Use source-highlight library for syntax colorizing.
2017-04-07 23:57:32 +01:00
King_DuckZ
ef9e74c473
Redirect to the new page if pastie was successful.
2017-04-07 00:31:06 +01:00
King_DuckZ
4354f4bf29
Add GPL3 licence.
2017-04-06 23:35:06 +01:00
King_DuckZ
0e71e45d33
Links to some useful online resources and libraries.
2017-04-06 23:30:54 +01:00
King_DuckZ
31890ba5e4
Allow retrieval of pasties
2017-04-06 23:28:57 +01:00
King_DuckZ
091746e9b6
Disable debug output
2017-04-06 23:11:11 +01:00
King_DuckZ
2b54349e0e
Rename envy to cgi_environment_vars.
2017-04-06 23:05:08 +01:00
King_DuckZ
81cf36de22
Rename CGIEnv to cgi::Env
2017-04-06 23:02:17 +01:00
King_DuckZ
fa33944919
Unescape + to space correctly
2017-04-06 22:57:44 +01:00
King_DuckZ
33c52b88d5
Rename submit form to submit paste.
2017-04-06 22:45:44 +01:00
King_DuckZ
dbd1a3a90a
Submitting a paste and saving to redis works!
2017-04-06 22:42:43 +01:00
King_DuckZ
e32cecedba
Print to stderr otherwise it disturbs the response.
2017-04-06 21:47:28 +01:00
King_DuckZ
98d98fc4ba
Step up work on responses.
2017-04-06 21:27:38 +01:00
King_DuckZ
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
King_DuckZ
6a502df135
New free function to get POST values.
2017-04-06 20:12:44 +01:00
King_DuckZ
e9d54c3ff5
Rename function.
2017-04-05 20:32:46 +01:00
King_DuckZ
cd72d374c5
query_string() should return the raw GET string.
2017-04-05 20:07:42 +01:00
King_DuckZ
3fb4df637e
A basic implementation of make_token().
...
Simply converts the given number into base 26.
2017-04-05 20:04:21 +01:00
King_DuckZ
5ed8e782aa
The environment never changes so these functions can be pure.
2017-04-05 09:29:02 +01:00
King_DuckZ
384417581f
Commit CGI documentation.
2017-04-05 09:26:17 +01:00
King_DuckZ
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
King_DuckZ
f8d6796fc1
Wrap environment in a class.
2017-04-05 08:41:49 +01:00
King_DuckZ
fea5b738df
First commit
2017-04-04 20:58:40 +01:00