Subversion Repositories cheapmusic

Rev

Rev 112 | Rev 116 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 112 Rev 115
Line 72... Line 72...
72
									<?php
72
									<?php
73
$themes = scandir("../css");
73
$themes = scandir("../css");
74
foreach ($themes as $themeLong) {
74
foreach ($themes as $themeLong) {
75
    $themeLong = strtolower($themeLong);
75
    $themeLong = strtolower($themeLong);
76
    if (strpos($themeLong, "theme-") === 0) {
76
    if (strpos($themeLong, "theme-") === 0) {
77
        $theme = substr($themeLong, 6, strlen($themeLong) - 10);
77
        $theme = substr($themeLong, 6, strpos($themeLong, '.') - 6);
78
        echo "<option";
78
        echo "<option";
79
        if (!empty($userData['theme']) && $userData['theme'] == $theme) {
79
        if (!empty($userData['theme']) && $userData['theme'] == $theme) {
80
            echo " selected";
80
            echo " selected";
81
        }
81
        }
82
        echo ">";
82
        echo ">";