Location: PHPKode > projects > ProNuke. Postnuke To Oracle > postnuke/html/modules/NS-Multisites/head.inc.php
<?php
global $themesarein;
if (is_user($user))
    {
	$user2 = base64_decode($user);
	$cookie = explode(':', $user2);
	if ($cookie[9]=='')
	{
	    $cookie[9]=$Default_Theme;
	}
	if (isset ($theme))
	{
	    $cookie[9]=$theme;
	}

		if (@file(WHERE_IS_PERSO."themes/".$cookie[9]."/theme.php"))
			{ 
				$themesarein = WHERE_IS_PERSO;
			}
		else
			{ 
				$themesarein = "";
			}			

		if(!$file=@opendir($themesarein."themes/$cookie[9]")) 
			{ 
				$ThemeSel = $Default_Theme; 
			} 
		else 
			{ 
				$ThemeSel = $cookie[9]; 
			}
    } else {
		$ThemeSel = $Default_Theme;
		if (@file(WHERE_IS_PERSO."themes/".$ThemeSel."/theme.php"))
			{ 
				$themesarein = WHERE_IS_PERSO;
			}
		else
			{ 
				$themesarein = "";
			}			

    }

    // override the theme per category or story
    // precedence is story over category override

	if (($themeOverrideCategory != "") && ((@opendir($themesarein."themes/$themeOverrideCategory")) or (@opendir("themes/$themeOverrideCategory"))) )	
	{
	$ThemeSel = $themeOverrideCategory;
    }

    if (($themeOverrideStory != "") && ((@opendir($themesarin . "themes/$themeOverrideStory")) or (@opendir("themes/$themeOverrideStory"))) ) {
	$ThemeSel = $themeOverrideStory;
    }

	include( $themesarein . "themes/".$ThemeSel."/theme.php");  
?>
Return current item: ProNuke. Postnuke To Oracle