From 6a001aa768d5a7b9a9a5a638be84cee16df6afe0 Mon Sep 17 00:00:00 2001 From: Till Brehm <tbrehm@ispconfig.org> Date: Fri, 09 May 2014 09:23:50 -0400 Subject: [PATCH] Merge branch 'stable-3.0.5' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.0.5 --- interface/web/index.php | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/interface/web/index.php b/interface/web/index.php index c6f0ff3..80eab11 100644 --- a/interface/web/index.php +++ b/interface/web/index.php @@ -60,6 +60,22 @@ unset($_SESSION['show_error_msg']); } +// read js.d files +$js_d = ISPC_WEB_PATH . '/js/js.d'; +$js_d_files = array(); +if(@is_dir($js_d)) { + $dir = opendir($js_d); + while($file = readdir($dir)) { + $filename = $js_d . '/' . $file; + if($file === '.' || $file === '..' || !is_file($filename)) continue; + if(substr($file, -3) !== '.js') continue; + $js_d_files[] = array('file' => $file); + } + closedir($dir); +} + +if (!empty($js_d_files)) $app->tpl->setLoop('js_d_includes', $js_d_files); +unset($js_d_files); $app->tpl_defaults(); $app->tpl->pparse(); -- Gitblit v1.9.1