Location: PHPKode > scripts > WebsiteMemberManager > members-section/admin/php/templateswitcher.php
<?php
if (isset($themetype))
{
 $theme= new jQueryTheme();
 $theme->updateTheme($themename,$themetype);
}
include_once("header.html");
include_once("main_menu.html");
include_once("main_menu-close.html");

$dbc = dbc::instance();
$result = $dbc->prepare("SELECT id FROM wmm_members ORDER BY id DESC LIMIT 1");//get newest member
$rows = $dbc->executeGetRows($result);

if (count($rows)>0) 
{
 $id=$rows[0]['id'];
 $new_member_url="<a href=\"../members/admin-login-as-member.php?id=$id\" target=\"_blank\">test member theme change here^</>";
}
include_once("templateswitcher.html");

if (isset($themetype)) $feedback->setShow("Theme changed");
?>
Return current item: WebsiteMemberManager