X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=template.php;h=897afc7418af59442d79fd65a6be11160625e9c9;hb=ed24e4f9ececaa1b5cd4e68045f27956ebbb1938;hp=c56e7436236b4f305565ccc9caccde0525768888;hpb=3bec0ef771d741361c6c4c4c1ff069398f6e37a0;p=wfpl.git diff --git a/template.php b/template.php index c56e743..897afc7 100644 --- a/template.php +++ b/template.php @@ -34,6 +34,7 @@ # including the use of sub-templates can be found in tem_test.php require_once('code/wfpl/encode.php'); +require_once('code/wfpl/basics.php'); class tem { var $keyval; # an array containing key/value pairs @@ -184,16 +185,6 @@ function tem_output($filename = false) { -function read_whole_file($name) { - $fd = fopen($name, 'r'); - if($fd === false) { - die("Failed to read file: '$name'"); - } - $temp = fread($fd, filesize($name)); - fclose($fd); - return $temp; -} - # this is used in template_run() and should be of no other use function template_filler($matches) { list($tag, $enc) = explode('.', $matches[1], 2);