Location: PHPKode > scripts > WebsiteMemberManager > members-section/members/php/specific_member_pages.php
<?php
// ---------------------------------------------------------
?>
<form name="UM_F" action="./" method="post">
<input type="hidden" name="the_page"><input type="hidden" name="private_content" value="1">
<?php echo YOUR_PERSONAL_FILES; ?>
<select name="spage" class="ui-tabs-nav ui-widget-header ui-corner-all" onchange="Javascript:umenu();">
<option value="--" selected></option>
<optgroup label="<?php echo YOUR_PERSONAL_FILES; ?>">
<?php
$new_userfolder=str_replace("@","-at-",strtolower($_SESSION['WMM_username']) );
if (file_exists('content/'.PRIVATE_FOLDER_NAME."/".$new_userfolder.'/')) $private_userfolder=$new_userfolder;
if (!isset($private_userfolder)) exit();
$uhandle=opendir('content/'.PRIVATE_FOLDER_NAME."/".$private_userfolder.'/');

$i=0;
while($item=readdir($uhandle))
{
 $uthe_files[$i]=$item;
 $i++;
}
sort ($uthe_files, SORT_STRING);
reset ($uthe_files);
while (list ($key, $item) = each ($uthe_files))
{
 if (((preg_match("/.html/",$item)>0)||(preg_match("/.php/",$item)>0))AND($item!=INITIAL_PAGE)AND($item[0]!="_"))
 {
  $item_array=explode(".",$item);
  echo "<option value=\"$item\">$item_array[0]</option>";
 }
}
closedir($uhandle);
?>
<optgroup label="Main pages">
<option value="0">Main page</option>  
</select>
<script language="JavaScript"><!--
var ufolder="<?php echo PRIVATE_FOLDER_NAME."/".$private_userfolder; ?>/";
function umenu()
{
 with (document.UM_F)
 {
  //the_page.value=ufolder + spage.options[spage.selectedIndex].value;
  the_page.value=spage.options[spage.selectedIndex].value;
  if (the_page.value=="0") document.location="./";
  else submit();
 }
}
var uprevious_spage="<?php if (isset($_POST['the_page'])) echo $_POST['the_page']; ?>";
with (document.UM_F)
{
 for(i=0;i<spage.options.length;i++)
  if (ufolder + spage[i].value==uprevious_spage)
   {
     spage.selectedIndex=i;
     document.M_F.spage.selectedIndex=0;//main menu - set to top
   }
 spage[0].value=spage[spage.selectedIndex].value;
}
// --></script>
</form>
Return current item: WebsiteMemberManager