Removing duplicates
[mirrors/Kyberia-bloodline.git] / inc / smarty / node_methodz / function.get_banner.php
diff --git a/inc/smarty/node_methodz/function.get_banner.php b/inc/smarty/node_methodz/function.get_banner.php
deleted file mode 100644 (file)
index f396f34..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<?
-       function smarty_function_get_banner(&$smarty) {
-               $banners_directory = $_SERVER['DOCUMENT_ROOT']."/banners/";
-
-               $handle = opendir($banners_directory);
-               while (false !== ($target = readdir($handle))) {
-                       if ($target != "." && $target != "..") {
-                               list($name, $ext) = explode(".", $target);
-                               if($ext == "swf") {
-                                       $banners_array[] =  $target;
-                               }
-                       }
-               }
-
-               $rand = rand(0, count($banners_array) - 1);
-
-               $smarty->assign('get_banner', $banners_array[$rand]);
-       }
-?>
This page took 0.125724 seconds and 4 git commands to generate.