Age | Commit message (Collapse) | Author |
|
|
|
This moves page handling logic into a new function, `handle_page`, and
special qs handling logic to `handle_special`. This keeps code better
organized. This also better handles 404 pages. If a custom 404.html is
available, it is treated as a normal page and parsed correctly. If none
exists, a generic 404 is sent in all scenarios where no logic handled
the query string.
|
|
This will print all HTTP headers the client sends to the server.
|
|
This is for access. Whoops!
|
|
This is easily replaced with the `access` function.
|
|
This should be much faster.
|
|
This should reduce cpu cycles since the format strings were unused other
than just to print to stdout.
|
|
Increase j2 max line len and buffer a bit and fix a printf statement
that was just printing the input string in place of the format string.
Now it prints a format of "%s", with the first argument being the input
string now. Whoops.
|
|
This allows for render-time shell command input to the output document.
This also simplifies the j2_readvar function to make it handle input
line by line rather than as a pure stream, character by character, which
had incredibly complex logic and was very brittle. The new method is
more durable, though is a bit less efficient due to reprocessing the
string, though it no longer seeks back and forth.
Add j2_strstr function and better protect against buffer overflow
This also updates the librem 5 no wifi post to print the current date
and time at pageload.
|
|
Moved the function to common.c/h. It now handles header tags with
additional xml properties inline. This also removes the implicit colon
inserted before the title, which previously yielded strange page titles
on pages that did not define one.
|
|
This introduces the C code that will build out the index rendering cgi
program. It supports three query string keys, 404 pages, and printing of
requestor ip (?q=ip) and user agent (?q=agent).
Remove index.php and info.php. These are no longer needed as their
functionality is replaced by the new CGI program.
Makefile:add src and clean targets to build the source and clean up
build artifacts, respectively.
Add header and footer j2 files to replace the old header and footer php
files. Deleted old php variants.
|
|
This allows the src directory to be used for other things (like cgi
code).
|
|
|
|
|
|
|
|
|
|
|
|
Originally, .ascii was used because .asciidoc was far too long. The
.adoc extension is more standard, shorter, and vim syntax highlighting
recognizes it.
|
|
|
|
|
|
Updated email addresses. Also updated the about me section with more
up-to-date and descriptive text. Also removed the references to my
twitter account, since that is currently buried under tumble weeds and
sand.
|
|
This post details what is (hopefully) a useful, flexible versioning
scheme that other people can use (it's a very subjective matter, so
quite possibly not).
Updated index.php. Added new post to 'New Posts' section and removed
another.
|
|
This post details how to write a framework that behaves somewhat like
mock objects in other more complex languages.
|
|
Fixed bug in the c code. Also updated description for the last
paragraph.
|
|
|
|
Finished this post and added to index
|
|
|
|
|
|
Finished bash section. Started writing section explaining how it works
using C.
|
|
More work. Also updated style.css to support terminal styles for
paragraphs as well as pre.
|
|
Testing a few asciidoc nuances
|
|
Fixed incorrect role syntax
|
|
Initial commit
|
|
|
|
|
|
|
|
This isn't really pertinent anymore.
|
|
Now all point to their respective locations in the cgit instance at
https://oper.io/src.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Accidentally put it under the Git section. It belongs under Scripting.
|
|
Updated index for this post
|
|
|
|
|
|
|
|
|