summaryrefslogtreecommitdiff
path: root/includes/footer.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/footer.php')
-rw-r--r--includes/footer.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/includes/footer.php b/includes/footer.php
index 056c6b1..7706ccf 100644
--- a/includes/footer.php
+++ b/includes/footer.php
@@ -16,15 +16,17 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-$moddate = filemtime($_SERVER['DOCUMENT_ROOT'] . "/text/" . $_SERVER['PHP_SELF']);
-$moddate = date("d/m/Y", $moddate);
-?>
+function page_footer($contentpath) {
+
+$moddate = filemtime($contentpath);
+$moddate = date("d/m/Y", $moddate);
+print '
<div id="footer">
<div id="moddate">
- <p>Last updated: <?php print($moddate) ?></p>
+ <p>Last updated: ' . $moddate .'</p>
</div>
<div id="copyright">
@@ -36,4 +38,8 @@ $moddate = date("d/m/Y", $moddate);
</body>
-</html>
+</html>';
+
+}
+
+?>