diff options
author | Oscar Najera <hi@oscarnajera.com> | 2025-02-09 21:28:34 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2025-02-09 21:28:34 +0100 |
commit | 5b0e2eb19bb432e4e170d9bdb1cb8169d526801f (patch) | |
tree | cd73b826fb8efcfc0ce08aa56937dddf83b63766 /webstats/scratch.lisp | |
parent | 756fc597d9e4a77588341ce20cb9f28c8e9422af (diff) | |
download | scratch-5b0e2eb19bb432e4e170d9bdb1cb8169d526801f.tar.gz scratch-5b0e2eb19bb432e4e170d9bdb1cb8169d526801f.tar.bz2 scratch-5b0e2eb19bb432e4e170d9bdb1cb8169d526801f.zip |
[webstats] define system and package image
Diffstat (limited to 'webstats/scratch.lisp')
-rw-r--r-- | webstats/scratch.lisp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/webstats/scratch.lisp b/webstats/scratch.lisp new file mode 100644 index 0000000..b66310c --- /dev/null +++ b/webstats/scratch.lisp @@ -0,0 +1,32 @@ + +(hunchentoot:define-easy-handler (vars-disp :uri "/vars") () + (setf (hunchentoot:content-type*) "text/plain") + (format nil "Hey ~{~A ~% ~}~%" + (list + (remote-addr*) + (header-in* :x-forwarded-for) + (authorization) + (hunchentoot::iso-time) + (request-method*) + (script-name*) + (query-string*) + (server-protocol*) + (return-code*) + (content-length*) + (referer) + (user-agent)))) + +(hunchentoot:define-easy-handler (link :uri "/link") () + (with-html-string + (:doctype) + (:html + (:header (:title "hu yu ipi") + (:script :src "/stats/stats.js" :type "text/javascript")) + (:body + (:p "learning " + (:a :href "vars" "some explodiert") + (:a :href "visit" "count visit")) + (:form :action "/stats/visit" + :method "post" + (:input :type "text" :name "title") + (:input :type "submit" :value "submit" :name "submit")))))) |