diff options
Diffstat (limited to 'smartyplugins/function.cookie.php')
| -rw-r--r-- | smartyplugins/function.cookie.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/smartyplugins/function.cookie.php b/smartyplugins/function.cookie.php new file mode 100644 index 0000000..8c076f8 --- /dev/null +++ b/smartyplugins/function.cookie.php @@ -0,0 +1,16 @@ +<?php +/** + * Smarty plugin + * @package Smarty + * @subpackage plugins + */ + +/** + * smarty_function_cookie + */ +function smarty_function_cookie($params, &$gBitSmarty) { + global $taglinelib; + include_once( TIDBITS_PKG_PATH.'BitFortuneCookies.php' ); + print( $taglinelib->pick_cookie() ); +} +?> |
