title ] ) == false ) { $allowed_themes[ $ct->title ] = true; } reset( $themes ); while( list( $key, $val ) = each( $themes ) ) { if( isset( $allowed_themes[ $key ] ) == false ) { unset( $themes[ $key ] ); } } reset( $themes ); if ( isset($_GET['action']) ) { check_admin_referer('switch-theme_' . $_GET['template']); if ('activate' == $_GET['action']) { $found = false; while( list( $key, $details ) = each( $themes ) ) { if( $details[ 'Template' ] == $_GET['template'] && $details[ 'Stylesheet' ] == $_GET['stylesheet'] ) { $found = true; break; } } if( $found == true ) { if ( isset($_GET['template']) ) update_option('template', $_GET['template']); if ( isset($_GET['stylesheet']) ) update_option('stylesheet', $_GET['stylesheet']); do_action('switch_theme', get_current_theme()); wp_redirect('themes.php?activated=true'); } else { wp_redirect('themes.php'); } exit; } } $title = __('Manage Themes'); $parent_file = 'themes.php'; require_once('admin-header.php'); ?>
View site »'), get_bloginfo('home') . '/'); ?>
description; ?>
$title | $description | "; } ?>