includes/template.php
changeset 128 01955bf53f96
parent 125 fb31c951d3a2
child 133 af0f6ec48de3
--- a/includes/template.php	Sat Sep 08 15:06:28 2007 -0400
+++ b/includes/template.php	Sat Sep 08 22:58:38 2007 -0400
@@ -943,7 +943,15 @@
       $h = fopen($tpl_filename, 'w');
       if(!$h) return $text;
       $t = addslashes($text);
-      fwrite($h, '<?php $md5 = \''.$md5.'\'; $tpl_text = \''.$t.'\'; ?>');
+      $notice = <<<EOF
+
+/*
+ * NOTE: This file was automatically generated by Enano and is based on compiled code. Do not edit this file.
+ * If you edit this file, any changes you make will be lost the next time the associated source template file is edited.
+ */
+
+EOF;
+      fwrite($h, '<?php ' . $notice . ' $md5 = \''.$md5.'\'; $tpl_text = \''.$t.'\'; ?>');
       fclose($h);
     }
     return $text; //('<pre>'.htmlspecialchars($text).'</pre>');