================================================< Service - End >================================================================== */ </pre> <?php exit; } $return_success = "false"; $return_error = "1"; $return_warning = ""; $return_message = $ERROR_MESSAGE[$return_error]; $return_session = session_id(); $return_value = ""; /* Common Declaration - End */ /* Page Code - Start */ $email = isset($_REQUEST['e']) ? replace_injection($_REQUEST['e']) : ''; $password = isset($_REQUEST['p']) ? replace_injection($_REQUEST['p']) : ''; $password_raw = isset($_REQUEST['pr']) ? replace_injection($_REQUEST['pr']) : '0'; $password = strtolower($password_raw == '0' ? md5($password) : $password); if (user_check()) { $return_success = "true"; $return_error = "0"; $return_message = 'User already logged in.'; } elseif (!$email) { $return_success = "false"; $return_error = "2"; $return_message = $ERROR_MESSAGE[$return_error] . ' Email Id is mandatory.'; } elseif (!is_valid_email($email)) { $return_success = "false"; $return_error = "2"; $return_message = 'Invalid Email Id!'; } elseif (!$password) { $return_success = "false";
values / array) ================================================< Service - End >================================================================== */ </pre> <?php exit; } $return_success = "false"; $return_error = "1"; $return_warning = ""; $return_message = $ERROR_MESSAGE[$return_error]; $return_session = session_id(); $return_value = ""; /* Common Declaration - End */ /* Page Code - Start */ $email = isset($_REQUEST['e']) ? replace_injection($_REQUEST['e']) : ''; $reset_url = isset($_REQUEST['reset_url']) ? $_REQUEST['reset_url'] : ''; if (!$email) { $return_success = "false"; $return_error = "2"; $return_message = $ERROR_MESSAGE[$return_error] . ' Email Id is mandatory.'; } elseif (!is_valid_email($email)) { $return_success = "false"; $return_error = "2"; $return_message = 'Invalid Email Id!'; } else { $sql_query = "SELECT * FROM " . table_user . " WHERE email = '" . $email . "' AND status = 1"; $result_check_user_email = $obj->select_from_table($sql_query); if (count($result_check_user_email) > 0) { $user_id = $result_check_user_email[0]['user_id']; $user_name = $result_check_user_email[0]['name'];