diff options
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..ec1ef28 --- /dev/null +++ b/functions.php @@ -0,0 +1,14 @@ +<?php + +function summarise($post) { + $post = preg_replace('/(\r?\n|\t)/', " ", $post); + $post = preg_replace('/"/', """, $post); + $post = preg_replace('/<.*?>/', " ", $post); + return substr($post, 0, 196) . "..."; +} + +function title() { + require("title.php"); +} + +?> |