--- /dev/null
+<?php
+/*
+ * Smarty plugin
+ * -------------------------------------------------------------
+ * File: block.min_auth.php
+ * Type: block
+ * Name: min_auth
+ * Purpose:
+ * -------------------------------------------------------------
+ */
+function smarty_block_only_public($params, $content, &$smarty)
+{
+ if( empty($content) || logged() )
+ return;
+ return $content;
+}
+?>
--- /dev/null
+<?php
+function smarty_modifier_url($string)
+{
+ $chemins = Array('.', '..', '/');
+ foreach ($chemins as $ch) {
+ if (file_exists("$ch/login.php") || file_exists("$ch/public/login.php"))
+ return "$ch/$string";
+ }
+ return "";
+}
+?>