From e49064282339bf08f0dfcce4224a20ec055f32ac Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 1 Mar 2011 22:19:19 +0000 Subject: Add skin_logo config option to installer; show drop-down list for skin selection --- installer/rcube_install.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'installer/rcube_install.php') diff --git a/installer/rcube_install.php b/installer/rcube_install.php index 3f2d1a48e..8ff6492d2 100644 --- a/installer/rcube_install.php +++ b/installer/rcube_install.php @@ -511,6 +511,20 @@ class rcube_install return $select; } + /** + * Return a list with available subfolders of the skin directory + */ + function list_skins() + { + $skins = array(); + $skindir = INSTALL_PATH . 'skins/'; + foreach (glob($skindir . '*') as $path) { + if (is_dir($path) && is_readable($path)) { + $skins[] = substr($path, strlen($skindir)); + } + } + return $skins; + } /** * Display OK status -- cgit v1.2.3