Theme Switcher for PHP-Fusion v7
By: Matonor
www.phpfusion-mods.com

Readme by www.phpfusion-mods.net

**************************************

Installation:
1. upload the attached folder to your infusions directory


2. Open Maincore.php and find:

define("PHOTOS", IMAGES."photoalbum/");
define("THEMES", BASEDIR."themes/");

Add after:

//Theme Switcher
function simple_theme_exists($theme){
   if (file_exists(THEMES.$theme."/theme.php") && file_exists(THEMES.$theme."/styles.css")){
      return true;
   }
}
$settings['theme'] = (isset($_COOKIE['v7_themeswitcher']) && $_COOKIE['v7_themeswitcher'] != "Default" && simple_theme_exists($_COOKIE['v7_themeswitcher'])) ? $_COOKIE['v7_themeswitcher'] : $settings['theme'];
//

3. Go to admin panel -> system admin -> "Panels" and add + enable the panel on either left or right side.

4. Done!

**************************************
What should work:
List themes (don't list other folders!)
Switch theme as user
Switch theme as guest
Switch theme without javascript enabled

What does not work:
Switch theme as guest without cookies enabled (no intention to change this atm)

