Posted by rdeacon on Fri 18th May 10:42 (modification of post by view diff)
diff | download | new post
- // New visitor should see default theme first, then go to random themes
- $this->current = 'default';
- } else {
- // Does the Cookie Theme
- {
- if($_GET['theme'] == 'random')
- {
- $this->current = null;
- $_COOKIE['subsonicradio_theme'] = null;
- }
- else
- {
- $this->current = $_GET['theme'];
- }
- }
- {
- {
- $this->current = $_COOKIE['subsonicradio_theme'];
- } else {
- $this->current = $themes[$rand];
- setcookie("subsonicradio_theme", $this->current, null, "/"); // Since it's a random theme, just set it for the current session
- }
- }
- }
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.