diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-03-01 22:19:19 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-03-01 22:19:19 +0000 |
| commit | 48eadaca0ce3d8a8aefe9aa9c2f55c3f64e42db1 (patch) | |
| tree | b098b7c1a1e824923cbb0fb096567d1f2cc3a069 /roundcubemail/installer/rcube_install.php | |
| parent | 900e129a2b360a7126e07cb2e809df4307b17dd6 (diff) | |
Add skin_logo config option to installer; show drop-down list for skin selection
git-svn-id: https://svn.roundcube.net/trunk@4587 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/installer/rcube_install.php')
| -rw-r--r-- | roundcubemail/installer/rcube_install.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roundcubemail/installer/rcube_install.php b/roundcubemail/installer/rcube_install.php index 3f2d1a48e..8ff6492d2 100644 --- a/roundcubemail/installer/rcube_install.php +++ b/roundcubemail/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 |
