Browse code

Added webpage

Jaidyn Lev authored on 2018-06-14 23:27:28
Showing 3 changed files
1 1
old mode 100644
2 2
new mode 100755
... ...
@@ -17,3 +17,5 @@ Setup
17 17
 
18 18
 Set up a MySQL database called `doormat`, and create this table:
19 19
 `create table entries (url text, visitors int unsigned);`
20
+
21
+Check the `web/` directory for more instruction.
20 22
new file mode 100644
... ...
@@ -0,0 +1,57 @@
1
+<!DOCTYPE HTML>
2
+<html lang="en">
3
+<head>
4
+	<title>Doormat</title>
5
+</head>
6
+
7
+<body>
8
+	<div style="width: 100%">
9
+		<h1>Doormat</h2>
10
+		<h2>A guest-counter for <i>everyone</i>!</h2>
11
+		<h3>By Jaidyn Lev &lt;001> &lt;jadedctrl@teknik.io></h3>
12
+	</div>
13
+
14
+	<p>Doormat is a simple guest-counter that can easily be embedded
15
+	into <i>any</i> webpage-- no JS, PHP, or anything like that required!</p>
16
+
17
+	<p>The official Doormat instance is here, but you can host it yourself-- just
18
+	check the README file in the <a href="https://git.eunichx.us/doormat">Git
19
+	repo</a>!</p>
20
+
21
+	<p>Doormat's source-code is libreware (Free Software) under the
22
+	<a href="https://coinsh.red/csl/">CSL license</a>, and can be found
23
+	<a href="https://git.eunichx.us/doormat">here.</a> :)</p>
24
+
25
+	<hr/>
26
+
27
+	<p>Speaking of which, there are <b>three ways</b> to add the guest counter
28
+	to your website:</p>
29
+
30
+	<ol>
31
+		<li><p><b>An <code>img</code> tag</b></p>
32
+			<p>To use a guest counter with an <code>img</code> tag, just
33
+			add a tag like so:<p>
34
+<p><code>&lt;img src="https://doormat.eunichx.us/dm-svg.cgi?URL-TO-YOUR-PAGE-HERE"&rt;</code></p>
35
+			<p>This method is probably the best one, period-- but it's the
36
+			<i>only</i> good method for static webpages especially.</p></li>
37
+		<li><p><b>An <code>iframe</code> tag</b></p>
38
+			<p>To use an <code>iframe</code> tag, just put one in like
39
+			this:</p>
40
+<p><code>&lt;iframe src="https://doormat.eunichx.us/dm-html.cgi?URL-TO-YOUR-PAGE-HERE"&rt;</code></p>
41
+			<p>This fetches the count in plain HTML, and embbeds in your
42
+			webpage. (You can also embbed the raw number by changing "html"
43
+			in the URL to "txt")</p></li>
44
+		<li><p><b>SSI, PHP, or some other weird shit</b></p>
45
+			<p>You can fetch the value of your visitor-count (and, also,
46
+			increment it) in plain-text here:</p>
47
+<p><code>https://doormat.eunichx.us/dm-txt.cgi?URL-TO-YOUR-PAGE-HERE"</code></p>
48
+			<p>So, if you're writing a CGI/PHP/whatever web-page, you can
49
+			have your script fetch that URL for the plaintext count, then
50
+			render it as you please!</p></li>
51
+	</ol>
52
+
53
+	<hr/>
54
+	<img src="https://doormat.eunichx.us/dm-svg.cgi?doormat.eunichx.us/index.html">
55
+			
56
+</body>
57
+</html>
0 58
similarity index 100%
1 59
rename from web/core-generate.lisp
2 60
rename to web/res/exec/core-generate.lisp