JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
update example code
authorJason Woofenden <jason@jasonwoof.com>
Thu, 8 Jun 2017 03:56:14 +0000 (23:56 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Thu, 8 Jun 2017 03:56:14 +0000 (23:56 -0400)
examples/404.html [deleted file]
examples/404.php [deleted file]
examples/error_404.html [new file with mode: 0644]
examples/error_404.php [new file with mode: 0644]

diff --git a/examples/404.html b/examples/404.html
deleted file mode 100644 (file)
index e2c1c1d..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-
-<html>
-<head>
-  <title>404 File Not Found</title>
-</head>
-
-<body>
-<h1>404 File Not Found</h1>
-
-<p>Sorry, ~filename html~ doesn't seem to exist.</p>
-</body>
-</html>
diff --git a/examples/404.php b/examples/404.php
deleted file mode 100644 (file)
index fc833b2..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-
-tem_set('filename', $_SERVER['REDIRECT_URL']);
diff --git a/examples/error_404.html b/examples/error_404.html
new file mode 100644 (file)
index 0000000..3f5cf59
--- /dev/null
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+
+<html>
+<head>
+       <title>404 File Not Found</title>
+</head>
+<body>
+       <h1>404 File Not Found</h1>
+       <p>Sorry, ~filename html~ doesn't seem to exist.</p>
+</body>
+</html>
diff --git a/examples/error_404.php b/examples/error_404.php
new file mode 100644 (file)
index 0000000..9ca2a8a
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+
+function error_404_main() {
+       tem_set('filename', $_SERVER['REDIRECT_URL']);
+}