MikeHolohan Posted October 29, 2008 Share Posted October 29, 2008 Hi Guys, a noob here... I am trying to edit a file to cause the users not to logo until I approve their account but I can't find it in the code... I am assuming this is it but have no idea how to edit it, any help appreciated... Mike. function login($email,$password) { $sql="select * from members WHERE password='$password' and email='$email'"; $res = mysql_query($sql) or die ($sql); $row = mysql_fetch_object($res); // doesnot exist ? if (mysql_num_rows($res)==0) { $resultat["ok"]=0; $resultat["message"]=$GLOBALS['parameters']->doesNotExistMessage; return $resultat; } if ($row->confirmed==0 && $GLOBALS['parameters']->mustConfirmEmail==1) { $resultat["ok"]=0; $resultat["message"]=$GLOBALS['parameters']->messageMustConfirmEmail; return $resultat; Link to comment https://forums.phpfreaks.com/topic/130568-edit-email-approval/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.