fix query in admin-customers, improve admin-ipsandports, clean up getThemes(), refs #1287

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-11-09 13:56:27 +01:00
parent e1253413d5
commit d2a8877069
3 changed files with 14 additions and 29 deletions

View File

@@ -20,21 +20,18 @@
*
* @return array
*/
function getThemes()
{
$themespath = makeCorrectDir(dirname(dirname(dirname(dirname(__FILE__)))).'/templates/');
function getThemes() {
$themespath = makeCorrectDir(FROXLOR_INSTALL_DIR.'/templates/');
$themes_available = array();
if (is_dir($themespath))
{
if (is_dir($themespath)) {
$its = new DirectoryIterator($themespath);
foreach ($its as $it)
{
foreach ($its as $it) {
if ($it->isDir()
&& $it->getFilename() != '.'
&& $it->getFilename() != '..'
&& $it->getFilename() != '.svn'
&& $it->getFilename() != 'misc'
) {
$themes_available[$it->getFilename()] = $it->getFilename();