if(!isset($_POST['p'])) $_POST['p']='';
if ($_POST['p'] == "s")
{
if (c_email($id) == 0)
{
include_once C_PATH.'/header.php';
printm($w[11]);
}
switch(C_ID)
{
case '0':
$tmpvar = 't1.username,';
break;
case '1':
$tmpvar = 't1.id,';
break;
default:
$tmpvar='';
break;
}
$tmp=mysql_query("SELECT ".$tmpvar." t2.email, t2.password FROM ".C_MYSQL_MEMBERS_MAIN." as t1, ".C_MYSQL_MEMBERS_SEC." as t2 WHERE t1.status >= '7' AND t2.email='".cbmail($id)."' AND t1.id = t2.id LIMIT 1");
if(mysql_num_rows($tmp) == '0') printm($w[196]);
$i=mysql_fetch_array($tmp);
switch(C_ID)
{
case '0':
$id = $i['username'];
break;
case '1':
$id = $i['id'];
break;
default:
$id= $i['email'];
break;
}