removed mods directory from the ATutor codebase
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / core / core.rm_auto.php
diff --git a/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/core/core.rm_auto.php b/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/core/core.rm_auto.php
deleted file mode 100644 (file)
index d3cbfe2..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<?php\r
-/**\r
- * Smarty plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-/**\r
- * delete an automagically created file by name and id\r
- *\r
- * @param string $auto_base\r
- * @param string $auto_source\r
- * @param string $auto_id\r
- * @param integer $exp_time\r
- * @return boolean\r
- */\r
-\r
-// $auto_base, $auto_source = null, $auto_id = null, $exp_time = null\r
-\r
-function smarty_core_rm_auto($params, &$smarty)\r
-{\r
-    if (!@is_dir($params['auto_base']))\r
-      return false;\r
-\r
-    if(!isset($params['auto_id']) && !isset($params['auto_source'])) {\r
-        $_params = array(\r
-            'dirname' => $params['auto_base'],\r
-            'level' => 0,\r
-            'exp_time' => $params['exp_time']\r
-        );\r
-        require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.rmdir.php');\r
-        $_res = smarty_core_rmdir($_params, $smarty);\r
-    } else {\r
-        $_tname = $smarty->_get_auto_filename($params['auto_base'], $params['auto_source'], $params['auto_id']);\r
-\r
-        if(isset($params['auto_source'])) {\r
-            if (isset($params['extensions'])) {\r
-                $_res = false;\r
-                foreach ((array)$params['extensions'] as $_extension)\r
-                    $_res |= $smarty->_unlink($_tname.$_extension, $params['exp_time']);\r
-            } else {\r
-                $_res = $smarty->_unlink($_tname, $params['exp_time']);\r
-            }\r
-        } elseif ($smarty->use_sub_dirs) {\r
-            $_params = array(\r
-                'dirname' => $_tname,\r
-                'level' => 1,\r
-                'exp_time' => $params['exp_time']\r
-            );\r
-            require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.rmdir.php');\r
-            $_res = smarty_core_rmdir($_params, $smarty);\r
-        } else {\r
-            // remove matching file names\r
-            $_handle = opendir($params['auto_base']);\r
-            $_res = true;\r
-            while (false !== ($_filename = readdir($_handle))) {\r
-                if($_filename == '.' || $_filename == '..') {\r
-                    continue;\r
-                } elseif (substr($params['auto_base'] . DIRECTORY_SEPARATOR . $_filename, 0, strlen($_tname)) == $_tname) {\r
-                    $_res &= (bool)$smarty->_unlink($params['auto_base'] . DIRECTORY_SEPARATOR . $_filename, $params['exp_time']);\r
-                }\r
-            }\r
-        }\r
-    }\r
-\r
-    return $_res;\r
-}\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r