mar. 07, 2005 session_start(); include_once ("config/config.php"); if (isset($_POST['loginok'])||$_POST['islogin']=="yes") { $userDetails = getSqlRow("SELECT * FROM probid_users WHERE username='".$_POST['username']."'"); if (substr($userDetails['password'],0,10)==substr(md5($_POST['password']),0,10)&&$_POST['password']!=""&&$_POST['username']!="") { if ($userDetails['active']==1) { $_SESSION['membersarea']="Active"; $_SESSION['memberid']=$userDetails['id']; $_SESSION['membername']=$userDetails['name']; $_SESSION['memberusern']=$userDetails['username']; $_SESSION['sess_lang']=$userDetails['lang']; } else if ($userDetails['active']!=1&&$setts['account_mode']==2) { $_SESSION['memberid']=$userDetails['id']; $_SESSION['membername']=$userDetails['name']; $_SESSION['memberusern']=$userDetails['username']; $_SESSION['sess_lang']=$userDetails['lang']; if ($_SESSION['accsusp']!=2) { $_SESSION['accsusp']=2; } } else if ($userDetails['active']!=1&&$setts['account_mode']!=2) { $_SESSION['accsusp']=1; } ### Now we will activate the is_seller ariable, used by the Private Site feature ### in case that the Private Site feature is disabled, all users are sellers ### by default. Otherwise only enabled sellers can sell, other users can't if ($setts['private_site']=="Y") $_SESSION['is_seller']=$userDetails['is_seller']; else $_SESSION['is_seller']="Y"; } } $userDetails = getSqlRow("SELECT * FROM probid_users WHERE id='".$_SESSION['memberid']."'"); $isUser = getSqlNumber("SELECT * FROM probid_users WHERE id='".$_SESSION['memberid']."'"); if ($isUser>0&&$userDetails['mailactivated']==0&&$userDetails['active']!=1&&$setts['account_mode']==2) { include ("themes/".$setts['default_theme']."/header.php"); header5 ($lang[erroraccnotactive]); ## if there is an activation fee, show payment link ## otherwise just show message if ($fee['is_signup_fee']=="Y"&&$fee['val_signup_fee']>0) { signupFee($fee['val_signup_fee'],$setts['currency'],$_SESSION['memberid']); session_destroy(); } else { echo "

$lang[accactivatemsg]

"; } include ("themes/".$setts['default_theme']."/footer.php"); exit; } include ("themes/".$setts['default_theme']."/header.php"); header5(strtoupper($lang[memberlogin])); ?>

".$lang[loading]."

 

"; echo ""; } else { if ($_SESSION['accsusp']==1) { echo "

".$lang[susp_login]."


"; } else { ?>