	<?php
	error_reporting(0);	
	session_start();
	
	session_id();
	
	//$SITE_ROOT = "/home/mydat1/public_html/new_dating/";
	
	
	//print $_SERVER['DOCUMENT_ROOT'] . "/session_handler.inc"; 
	include_once($SITE_ROOT."/session_handler.inc");
	
	 
	 //echo $CONST_LINK_ROOT = str_replace($_SERVER['PHP_SELF'], '', $uri)
	?>
	<script type="text/javascript" src="jquery-1.2.6.pack.js"></script>
	<script type="text/javascript" src="ddaccordion.js"></script>
	
	<script>
	
	/*
	
	function toggleMe(a){
  var e=document.getElementById(a);
  for(var i=0,divs=document.getElementById('tools').getElementsByTagName('div');i<divs.length;i++)
divs[i].style.display='none';
if(!e)return true;
  if(e.style.display=="none"){
    e.style.display="block"
  } else {
    e.style.display="none"
  }
  return true;
}
	
	*/
	
	
ddaccordion.init({
	headerclass: "expandable", //Shared CSS class name of headers group that are expandable
	contentclass: "categoryitems", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", "openheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["prefix", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})	
	</script>

	
	<title>Welcome to <?php echo $CONST_COMPANY?></title>
	<link href="<?=$CONST_LINK_ROOT?>/templates/default/stylesheet.css" rel="stylesheet" type="text/css" />
	<link href="<?=$CONST_LINK_ROOT?>/templates/default/style.css" rel="stylesheet" type="text/css" />
	<link href="<?=$CONST_LINK_ROOT?>/templates/default/layout.css" rel="stylesheet" type="text/css" />
	<style>
.redtext { 
       a:link {text-decoration: color: white;
       FONT-FAMILY: Verdana, Helvetica, sans-serif;
       FONT-SIZE: 12pt; 
       COLOR: ffffff 
       } 

    </style>
	
	<style type="text/css">
<!--
body {
	background-color: #FFFFFF;
}
.style3 {
	font-size: 16px;
	color: #FFFFFF;
}
-->
    </style>
    
	<body>
	
	
	<div align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="100%" height="40" align="left" valign="middle" bgcolor="136DC3"><span class="style3"><span class="style2">&nbsp;&nbsp;&rarr;	<?php echo $CONST_COMPANY?> Admin Area</span></td>
  </tr>
  
  
</table><br><br><br><br>
	<div style="margin-top:-20px"><table width="860" border="0" align="center" cellpadding="0" cellspacing="0" >
	<tr><td valign="top" width="140">
	<div style="float:left">
	<table width="122" border="0" align="center" cellpadding="0" cellspacing="0" >
	<tr> 
	<td><div style="padding:4px 0px 0px 0px">
	<a href="<?=$CONST_LINK_ROOT?>/admin/index.php"><img src="<?=$CONST_LINK_ROOT?>/admin/include/images/dashboard.jpg" border="0"></a>
	</div><div style="padding:2px 0px 0px 0px">
	<div style="padding:2px 0px 0px 0px">
<img src="<?=$CONST_LINK_ROOT?>/admin/include/images/tools.jpg" class="menuheader expandable" />
	<!--<input type="image" src="<?=$CONST_LINK_ROOT?>/admin/include/images/tools.jpg" value="Tools" >--></div><div id="tools" style="display:none" class="categoryitems"><table width="122px"  border="0" cellspacing="0" cellpadding="0" background="<?=$CONST_LINK_ROOT?>/admin/include/images/bg-menu.jpg" style="background-repeat:repeat-y; padding-left:10px">
	
	<!--DWLayoutTable-->
	
	
	<tr><td height="10px"></td></tr>
	<tr> 
	
	<td valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/approve_pictures.php<?php print("?PHPSESSID=".session_id()); ?>&type=ap">Approve Media
	
	</a></td>
	</tr>
	<tr><td height="10px"></td></tr>
	
	<tr> 
	
	<td valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/mass_email.php<?php print("?PHPSESSID=".session_id()); ?>">Send 
	
	Mass Email</a></td>
	</tr>
	<tr><td height="10px"></td></tr>
	
	<tr> 
	
	<td valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/admin_stories.php<?php print("?PHPSESSID=".session_id()); ?>">Stories 
	
	Admin </a></td>
	</tr>
	<tr><td height="10px"></td></tr>
	
	<tr> 
	
	<td valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/admin_news.php<?php print("?PHPSESSID=".session_id()); ?>">News 
	
	Admin </a></td>
	</tr>
	<tr><td height="10px"></td></tr>
	<tr> 
	
	<td valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/admin_flirts.php<?php print("?PHPSESSID=".session_id()); ?>">Flirts 
	
	Admin </a></td>
	</tr>
	<tr><td height="10px"></td></tr>
	
	<tr> 
	
	<td valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/admin_banners.php<?php print("?PHPSESSID=".session_id()); ?>">Banner 
	
	Admin </a></td>
	</tr>

	<tr><td height="10px"></td></tr>
	
	<tr> 
	
	<td valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/admin_geography.php<?php print("?PHPSESSID=".session_id()); ?>">Geography 
	
	Admin </a></td>
	</tr>
	<tr><td height="10px"></td></tr>
	
	<tr> 
	
	<td valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/affiliate_banners.php<?php print("?PHPSESSID=".session_id()); ?>">Affiliates </a></td>
	</tr>
	
	<tr><td height="10px"></td></tr>	
	<tr> 
	
	<td  valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/admin_blacklist.php<?php print("?PHPSESSID=".session_id()); ?>">Blacklist</a></td>
	
	</tr>
	
	<tr><td height="10px"></td></tr>	
	<tr> 
	
	<td  valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/upgrade_tool.php<?php print("?PHPSESSID=".session_id()); ?>">Upgrade</a></td>
	
	</tr>
	<tr><td height="10px"></td></tr>	
	<tr> 
	
	<td  valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/admin_templates.php<?php print("?PHPSESSID=".session_id()); ?>">Templates</a></td>
	
	</tr>
	
	<tr><td height="10px"></td></tr>	
	<tr> 
	
	<td  valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/admin_guide2.php<?php print("?PHPSESSID=".session_id()); ?>">Admin Guide</a></td>
	
	</tr>
	
	<tr><td height="10px"></td></tr>	
	<tr> 
	
	<td  valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/admin_coupons.php<?php print("?PHPSESSID=".session_id()); ?>">Coupons</a></td>
	
	</tr>
	
	<tr><td height="10px"></td></tr>	
	<tr> 
	
	<td  valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/admin_essay.php<?php print("?PHPSESSID=".session_id()); ?>">Essays</a></td>
	
	</tr>
	
	<tr><td height="10px"></td></tr>	
	<tr> 
	
	<td  valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/admin_logo.php<?php print("?PHPSESSID=".session_id()); ?>">Logo</a></td>
	
	</tr>
	
	<!--
	<tr> 
	
	<td height="266">&nbsp;</td>
	
	<td>&nbsp;</td>
	
	<td>&nbsp;</td>
	
	</tr>-->
	
	</table><img src="<?=$CONST_LINK_ROOT?>/admin/include/images/bot-curve.jpg">
	</div>
	<div style="padding:4px 0px 0px 0px">
<img src="<?=$CONST_LINK_ROOT?>/admin/include/images/settings.jpg" class="menuheader expandable" />
	<!--<input type="image" src="<?=$CONST_LINK_ROOT?>/admin/include/images/settings.jpg"  onclick="return toggleMe('settings')" value="Admin Setting">--></div><div id="settings" style="display:none" class="categoryitems">
	
	<table width="122px"  border="0" cellspacing="0" cellpadding="0" background="<?=$CONST_LINK_ROOT?>/admin/include/images/bg-menu.jpg" style="background-repeat:repeat-y; padding-left:10px">
	
	<!--DWLayoutTable-->
		<tr><td height="10px"></td></tr>
	<tr> 
	<tr> 
	
	<td valign="top" ><a href="<?php echo $CONST_LINK_ROOT?>/admin/settings_general.php<?php print("?PHPSESSID=".session_id()); ?>">Site Settings</a></td>
	</tr>
	
	<tr><td height="10px"></td></tr>
	<tr> 
	
	<td valign="top" ><a href="<?php echo $CONST_LINK_ROOT?>/admin/admin_avatars.php<?php print("?PHPSESSID=".session_id()); ?>">Avatars </a></td>
	</tr>
	
	<tr><td height="10px"></td></tr>
	<tr> 
	
	<td valign="top" ><a href="<?php echo $CONST_LINK_ROOT?>/admin/language.php<?php print("?PHPSESSID=".session_id()); ?>">Languages</a></td>
	</tr>
	
	<tr><td height="10px"></td></tr>
	<tr> 
	
	<td valign="top" ><a href="<?php echo $CONST_LINK_ROOT?>/admin/member_access.php<?php print("?PHPSESSID=".session_id()); ?>">Premium Access</a></td>
	</tr>
	<tr><td height="10px"></td></tr>
	<tr> 
	
	<td valign="top" ><a href="<?php echo $CONST_LINK_ROOT?>/admin/admin_dropdowns.php<?php print("?PHPSESSID=".session_id()); ?>&mode=view">Profile Questions</a></td>
	</tr>

	<tr><td height="10px"></td></tr>	

	<tr> 
	
	<td  valign="top"><a href="<?php echo $CONST_LINK_ROOT?>/admin/admin_mailtemplates.php<?php print("?PHPSESSID=".session_id()); ?>">Email Templates</a></td>
	</tr>
	
	
	</table><img src="<?=$CONST_LINK_ROOT?>/admin/include/images/bot-curve.jpg">
	</div>
	
	<!--<tr> 
	
	<td width="295" height="238">&nbsp;</td>
	
	<td>&nbsp;</td>
	
	</tr>-->
	
	<div style="padding:4px 0px 0px 0px">
<img src="<?=$CONST_LINK_ROOT?>/admin/include/images/reports.jpg" class="menuheader expandable" />
	<!--<input type="image" src="<?=$CONST_LINK_ROOT?>/admin/include/images/reports.jpg"  onclick="return toggleMe('Reports')" value="Reports">--></div>
	<div id="Reports" style="display:none" class="categoryitems">
	
	<table width="122px"  border="0" cellspacing="0" cellpadding="0" background="<?=$CONST_LINK_ROOT?>/admin/include/images/bg-menu.jpg" style="background-repeat:repeat-y; padding-left:10px">
	
	<!--DWLayoutTable-->
		<tr><td height="10px"></td></tr>
	<tr> 
	
	<td  valign="top" ><a href="<?php echo $CONST_LINK_ROOT?>/admin/stats.php<?php print("?PHPSESSID=".session_id()); ?>">Demographics</a></td>
	</tr>
	
	<tr><td height="10px"></td></tr>
	<tr> 
	
	<td  valign="top" ><a href="<?php echo $CONST_LINK_ROOT?>/admin/report_payments.php<?php print("?PHPSESSID=".session_id()); ?>">Accounting</a></td>
	</tr>
	
	<tr><td height="10px"></td></tr>
	<tr> 
	
	<td  valign="top" ><a href="<?php echo $CONST_LINK_ROOT?>/admin/unconfirmed.php<?php print("?PHPSESSID=".session_id()); ?>">Unconfirmed Users</a></td>
	</tr>
	
	<tr><td height="10px"></td></tr>
	<tr> 
	
	<td valign="top" ><a href="<?php echo $CONST_LINK_ROOT?>/admin/prune_members.php<?php print("?PHPSESSID=".session_id()); ?>">Database Pruning</a></td>	
	</tr>
	
	<tr><td height="10px"></td></tr>
	<tr> 
	
	<td valign="top" ><a href="<?=$CONST_LINK_ROOT?>/admin/report_banners.php<?php print("?PHPSESSID=".session_id()); ?>">Banner Reports</a></td>	
	</tr>
	
	<td valign="top" > 
	
	<?php if(file_exists($CONST_INCLUDE_ROOT."affiliates/index.php")) print("<a href='".$CONST_LINK_ROOT."/affiliates/frn_payments.php?$sess_id'>".PRN_PAYMENTS_TITLE."</a>"); ?>	</td>
	</tr>
	
	<tr> 
	
	<td valign="top" > 
	
	<?php if(file_exists($CONST_INCLUDE_ROOT."affiliates/index.php")) print("<a href='".$CONST_LINK_ROOT."/affiliates/aff_banlist.php?$sess_id'>".AFF_BANNERS_SECTION_NAME."</a>"); ?>	</td>
	</tr>
	
	<tr> 
	
	<td valign="top" > 
	
	<?php if(file_exists($CONST_INCLUDE_ROOT."affiliates/index.php")) print("<a href='".$CONST_LINK_ROOT."/affiliates/adm_affiliates.php?$sess_id'>".ADM_AFFILIATES_ADMINISTRATION."</a>"); ?>	</td>
	</tr>
	
	<tr> 
	
	<td valign="top" > 
	
	<?php if(file_exists($CONST_INCLUDE_ROOT."affiliates/index.php")) print("<a href='".$CONST_LINK_ROOT."/affiliates/aff_statistics.php?$sess_id'>".ADM_AFFILIATES_PERFORMANCE."</a>"); ?>	</td>
	</tr>
	</table><img src="<?=$CONST_LINK_ROOT?>/admin/include/images/bot-curve.jpg">	</div>
	
	
	<div style="padding:4px 0px 0px 0px">
	<a href="<?=$CONST_LINK_ROOT?>/logoff.php"><img src="<?=$CONST_LINK_ROOT?>/admin/include/images/logout.jpg" border="0"></a>	</div>	</td>
	</tr>
</table></div></td><td valign="top">
	