user_info["user_enabled"]=="0" ) { //$is_error = 745; mail("bateworldhelp@gmail.com", "Reactivation Request", $new_user->user_info["user_email"]." has requested his account be reactivated. https://bateworld.com/bwadmin/admin_viewusers_edit.php?user_id=".$new_user->user_info["user_id"]."&s=id&p=1&f_user=".$new_user->user_info["user_username"]."&f_email=&f_level=&f_subnet=&f_enabled="); //if(SE_DEBUG){echo "UPDATE se_users SET user_enabled=1, user_pdp_evc=1 WHERE user_id='".$new_user->user_info['user_id']."' LIMIT 1";} //$new_user->user_exists=1;$new_user->user_info["user_enabled"]=1; //$database->database_query("UPDATE se_users SET user_enabled=1, user_pdp_evc=1 WHERE user_id='".$new_user->user_info['user_id']."' LIMIT 1"); } if( !$new_user->user_exists ) { $is_error = 748; } else { if($_POST["agree"]==1){ $lostpassword_code = randomcode(15); $lostpassword_time = time(); $a=1; if( send_systememail('lostpassword', $new_user->user_info['user_email'], Array($new_user->user_displayname, $new_user->user_info['user_email'], "url_base."lostpass_reset.php?user=".$new_user->user_info['user_username']."&r=$lostpassword_code\">".$url->url_base."lostpass_reset.php?user=".$new_user->user_info['user_username']."&r=$lostpassword_code")) ) { $database->database_query("UPDATE se_usersettings SET usersetting_lostpassword_code='$lostpassword_code', usersetting_lostpassword_time='$lostpassword_time' WHERE usersetting_user_id='{$new_user->user_info['user_id']}' LIMIT 1"); $cache_object = SECache::getInstance(); if( is_object($cache_object) ) { $cache_object->remove('site_user_settings_'.$new_user->user_info['user_id']); } } else { $is_error = 748; } } } } // SET GLOBAL PAGE TITLE $global_page_title[0] = 33; $global_page_description[0] = 34; $smarty->assign('pagetitle', "Lost Password"); $smarty->assign('pagedescription', "Did you lose your password for your BateWorld account? Reset it."); // ASSIGN VARIABLES AND INCLUDE FOOTER $smarty->assign('is_error', $is_error); $smarty->assign('submitted', $submitted); include "footer.php"; ?>