JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
renamed basics.php to misc.php
authorJason Woofenden <jason183@herkamire.com>
Thu, 21 Dec 2006 04:46:56 +0000 (23:46 -0500)
committerJason Woofenden <jason183@herkamire.com>
Thu, 21 Dec 2006 04:46:56 +0000 (23:46 -0500)
basics.php [deleted file]
misc.php [new file with mode: 0644]
template.php

diff --git a/basics.php b/basics.php
deleted file mode 100644 (file)
index 4e1da44..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-function read_whole_file($name) {
-       $fd = fopen($name, 'r');
-       if($fd === false) {
-               die("Failed to read file: '$name'");
-       }
-       $file_data = fread($fd, filesize($name));
-       fclose($fd);
-       return $file_data;
-}
-
-function unix_newlines($str) {
-       $str = str_replace("\r\n", "\n", $str);
-       return str_replace("\r", "\n", $str);
-}
-
-# return current year (all 4 digits)
-function this_year() {
-       return strftime('%Y');
-}
-
-# return the number of the current month (1..12)
-function this_month() {
-       return strftime('%m');
-}
-
-?>
diff --git a/misc.php b/misc.php
new file mode 100644 (file)
index 0000000..4e1da44
--- /dev/null
+++ b/misc.php
@@ -0,0 +1,28 @@
+<?php
+
+function read_whole_file($name) {
+       $fd = fopen($name, 'r');
+       if($fd === false) {
+               die("Failed to read file: '$name'");
+       }
+       $file_data = fread($fd, filesize($name));
+       fclose($fd);
+       return $file_data;
+}
+
+function unix_newlines($str) {
+       $str = str_replace("\r\n", "\n", $str);
+       return str_replace("\r", "\n", $str);
+}
+
+# return current year (all 4 digits)
+function this_year() {
+       return strftime('%Y');
+}
+
+# return the number of the current month (1..12)
+function this_month() {
+       return strftime('%m');
+}
+
+?>
index 9808526..862f7a6 100644 (file)
@@ -37,7 +37,7 @@
 # them is run
 
 require_once('code/wfpl/encode.php');
-require_once('code/wfpl/basics.php');
+require_once('code/wfpl/misc.php'); # to get read_whole_file()
 
 class tem {
        var $keyval;        # an array containing key/value pairs