function getCompanyDetails() { if (isset($_REQUEST['loginID '])) { $loginID = $_REQUEST['loginID']; } $rm = new Response_Methods(); $companyDetailsArray = array(); //$dataResultSet=$rm->getSpecificDetails($companyID,'company_details_t','company_id'); $dataResultSet = $rm->getAllDetails('company_details_t'); if (mysql_num_rows($dataResultSet) > 0) { while ($row = mysql_fetch_array($dataResultSet)) { $getCompanyFields['companyID'] = $row['company_id']; $pending_requests_count = $rm->getPendingRequest($row['company_id']); $getCompanyFields['companyName'] = $row['company_name']; $getCompanyFields['companyTanNo'] = $row['company_tan_no']; $getCompanyFields['companyPanNo'] = $row['company_pan_no']; $getCompanyFields['companyAddress'] = $row['company_address']; $getCompanyFields['pendingRequest'] = $pending_requests_count; $cdate = $row['company_created_date']; $getCompanyFields['createdDate'] = date('Y/m/d', strtotime($cdate)); array_push($companyDetailsArray, $getCompanyFields); } $result = $rm->get_anything_details_success($companyDetailsArray, 'Company'); return $result; } else { $result = $rm->get_anything_details_fail('Company'); return $result; } }
function getAllBankDetails() { //$bankID = trim($_REQUEST['bankID']); $rm = new Response_Methods(); $bankDetailsArray = array(); //$companyID = trim($_REQUEST['companyID']); //$dataResultSet=$rm->getSpecificDetails($companyID,'bank_details_t','company_id'); $dataResultSet = $rm->getAllDetails('bank_details_t'); if (mysql_num_rows($dataResultSet) > 0) { while ($row = mysql_fetch_array($dataResultSet)) { $getBankFields['bankID'] = $row['bank_id']; $getBankFields['companyID'] = $row['company_id']; $getBankFields['bankName'] = $row['bank_name']; $getBankFields['custName'] = $row['account_holder_name']; $getBankFields['accNumber'] = $row['account_number']; //$getBankFields['bankAddress']=$row['bank_address']; $getBankFields['ifsc'] = $row['bank_ifsc']; //$getBankFields['micr']=$row['bank_micr']; $getBankFields['accType'] = $row['account_type']; $getBankFields['initialBalance'] = $row['initial_bank_balance']; $cdate = $row['bank_created_date']; $getBankFields['createdDate'] = date('Y/m/d', strtotime($cdate)); array_push($bankDetailsArray, $getBankFields); } $result = $rm->get_anything_details_success($bankDetailsArray, 'Bank'); return $result; } else { $result = $rm->get_anything_details_fail('Bank'); return $result; } }
function addCompanyDetails() { $userID = trim($_REQUEST['userID']); $companyName = trim($_REQUEST['companyName']); //Get Request From Device $companyTanNo = trim($_REQUEST['companyTanNo']); $companyPanNo = trim($_REQUEST['companyPanNo']); $companyAddress = trim($_REQUEST['companyAddress']); $rm = new Response_Methods(); if ($companyName == "" || $companyTanNo == "" || $companyPanNo == "" || $companyAddress == "") { $result = $rm->fields_validation(); return $result; } else { date_default_timezone_set('Asia/Calcutta'); $createdDate = date('Y-m-d H:i:s'); $getList = array(); $getFieldValue['login_user_id'] = $userID; $getFieldValue['company_name'] = $companyName; $getFieldValue['company_tan_no'] = $companyTanNo; $getFieldValue['company_pan_no'] = $companyPanNo; $getFieldValue['company_address'] = $companyAddress; $getFieldValue['company_created_date'] = $createdDate; $lastInsertId = $rm->insert_record($getFieldValue, 'company_details_t'); if (!empty($lastInsertId)) { $result = $rm->companyRegisterSuccessJson($lastInsertId); return $result; } else { $result = $rm->companyRegisterFailJson(); return $result; } } }
function getSingleCommentDetails() { $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { $postId = $rm->cleanData($_POST['postId']); $userId = $rm->cleanData($_POST['userId']); $commentId = $rm->cleanData($_POST['commentId']); $getArrayList = array(); if ($userId == "" || $postId == "" || $commentId == "") { $result = $rm->fields_validation(); return $result; } else { $result = $rm->getSingleCommentDetails($postId, $userId, $commentId); return $result; } // end of else first } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }
function userForgetPassword() { $rm = new Response_Methods(); $EMAILID = $_REQUEST['emailId']; if ($EMAILID == "") { $result = $rm->fields_validation(); return $result; } else { $result = $rm->userForgetPassword($EMAILID); return $result; } }
function getPostComments() { $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { $postId = $rm->cleanData($_POST['postId']); $loggedInUserId = $rm->cleanData($_POST['userId']); $getArrayList = array(); //echo $ENCRYPTEDPWD = md5($PASSWORD); //echo $ENCRYPTEDPWD = base64_decode($PASSWORD); //$ENCRYPTEDPWD=$PASSWORD; if ($postId == "" || $loggedInUserId == "") { $result = $rm->fields_validation(); return $result; } else { $result = $rm->getAllPostComments($postId, $loggedInUserId); return $result; } } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }
function getPaymentReports() { $userID = trim($_REQUEST['userID']); $payment_type = trim($_REQUEST['payment_type']); $from_date = trim($_REQUEST['from_date']); $to_date = trim($_REQUEST['to_date']); $rm = new Response_Methods(); $paymentDetailsArray = array(); if ($userID == "" || $payment_type == "" || $from_date == "" || $to_date == "") { $result = $rm->fields_validation(); return $result; } else { $login_user_id = $rm->idToValue('login_user_id', 'user_details_t', 'user_id', $userID); echo $rm->getPaymentDetails($login_user_id, $payment_type, $from_date, $to_date); } }
function test() { $post_image = "/9j/4AAQSkZJRgABAQEASABIAAD//gBcYm9yZGVyIGJzOjAgYmM6IzAwMDAwMCBwczowIHBjOiMw\nMDAwMDAgZXM6MCBlYzojMDAwMDAwIGNrOmE2MTM5YTUyY2QzYWI2YTQzZDkwMzUxODc1NDM5MDI2\n/9sAQwADAgIDAgIDAwMDBAMDBAUIBQUEBAUKBwcGCAwKDAwLCgsLDQ4SEA0OEQ4LCxAWEBETFBUV\nFQwPFxgWFBgSFBUU/9sAQwEDBAQFBAUJBQUJFA0LDRQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU\nFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU/8AAEQgAeABkAwERAAIRAQMRAf/EAB0AAAEEAwEBAAAA\nAAAAAAAAAAQDBQYIAgcJAQD/xAA8EAABAwIEAwUGBAUDBQA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m1G+\n24+Y+YwRQCgR4hKQHyqN4ttItp52titw1WmB1MNp8pbv8oxcC/djbGZ+pKJweyPJKur1LKh9MQUz\nqUG+wrWtxd06b4e+5QrWyjmFJQhIF9rk4gQr2mghxZKZsg8rFIV1uAE/v+2JnuVAAtxST6+5SU/l\nTpH2thBScOXTohpSrtBNhZCkjfqcP3qt2opBLmH/AFJVlElKh9N7f3xbXqrMXXJ8knHeMmpSFe8n\nUEWT/Snl+uE7RoTMdzzOJ22+Sf2AlpvvXCE2vYflHXGfc0iQaN3L5FPXNHfLaWdXuhKSdI6D+/1w\n4Kq5WuPNKaJ69FZftmdjbM2Tc9VbOOUKTIrWVKm8uW6xAa7x2A4olTiFISLhu9ylYFkiyVWsCo1L\nE4GxsvOeFcWinibFM6ntFa9/TXr/ADyp3Be7h2VHVfwjUkKG9r7gj0xkd1XTwOHM5ny+Kk1MP8ow\nDt+Gn9sZH7lHIfYCWLhuRyscRCmN6WMldmyT1t+uGCm8U1Seo5DqFI4a0jPD06mu0mqTX4TMRqTr\nmJW1r1KW3bZPgPIkjUi4GoYYmzyhYGZjXTvxwDbRd1omNNHlroDMkLYbDri2QhajqKmwhSzYDYXc\nsD5g+WLXN5QHnYq2OQyOfCN2gEnzP7JsfdX3qi4hSUKVe43H6f3ww1CueSXahDLkIfBKVAguGx+u\nHAoqrmDhp1TTGcCpkheq/wCICT5W3/ti07BYmOBLq6oqhKDERtRQe9d/FWFG6rqNykfXEJLcVbh/\n44wTu7X5qf5H4bZp4m1Vqn5doUytPqWlPdxWypCTfYuLPhQgHmpRA8zipsbnnlYFoycqDFZ2mU8N\nb0Pf+T8F1G7PPZeovCzhtGpeYoMGu16Q6qZNkOspcQ24oJHdtki+lKUJF+qtStr2B+GBsbaOpXjX\nFuMy8QyjLGS1uwHh4r//2Q=="; $rand = rand(00, 99999); $rm = new Response_Methods(); $img = 'data:image/png;base64,' . $post_image . ''; $img = str_replace('data:image/png;base64,', '', $img); $img = str_replace(' ', '+', $img); $data = base64_decode($img); $image = 'post_photos' . $rand . '.png'; //$image1 ='post_photos'.$rand.'1.png'; //$src = imagecreatefrompng($image); file_put_contents('images/test/' . $image, $data); $dimensions = $rm->getImageDimensions($data); print_r($dimensions); }
function editUserDetails() { //$companyId = $_REQUEST['companyId']; $userFname = trim($_REQUEST['userFname']); $userLname = trim($_REQUEST['userLname']); $age = trim($_REQUEST['age']); $sex = trim($_REQUEST['sex']); $emailId = trim($_REQUEST['emailId']); $address = trim($_REQUEST['address']); $userType = trim($_REQUEST['userType']); $userID = trim($_REQUEST['userID']); /* $userImage = trim($_REQUEST['image']); $userImage = trim($_REQUEST['image']['name']); */ $adminId = $_REQUEST['adminId']; $adminId = 'e-002'; // need to be send in request..for time being using hardcoded values. $fullName = $userFname . ' ' . $userLname; //$Mobile = $_REQUEST['Phone']; $rm = new Response_Methods(); if ($userFname == "" || $userLname == "" || $age == "" || $sex == "" || $emailId == "" || $address == "" || $userType == "" || $userID == "") { $result = $rm->fields_validation(); return $result; } else { date_default_timezone_set('Asia/Calcutta'); $createdDate = date('Y-m-d H:i:s'); $getRegisterFieldValue['user_fname'] = $userFname; $getRegisterFieldValue['user_lname'] = $userLname; $getRegisterFieldValue['user_age'] = $age; $getRegisterFieldValue['user_sex'] = $sex; $getRegisterFieldValue['user_email_id'] = $emailId; $getRegisterFieldValue['user_address'] = $address; $getRegisterFieldValue['last_modified_date'] = $createdDate; //$lastInserted_user_id=$rm->insert_record($getRegisterFieldValue,'user_details_t'); $affectedRows = $rm->update_record($getRegisterFieldValue, 'user_details_t', 'user_id', $userID); if ($affectedRows >= 0) { $result = $rm->userModifiedSuccess(); return $result; } else { $result = $rm->userModifiedFail(); return $result; } } }
function getNewsFeeds() { $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { $USERID = trim($_POST['userId']); //Get Request From Device $minPostId = trim($_POST['postId']); $getArrayList = array(); if (isset($_POST['postId']) && $minPostId == "") { $result = $rm->fields_validation(); return $result; } if ($USERID == "") { $result = $rm->fields_validation(); return $result; } else { $result = $rm->getPosts($USERID, $minPostId); return $result; } // end of else first } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }
function getCompanyList() { $rm = new Response_Methods(); $companyDetailsArray = array(); //$dataResultSet=$rm->getSpecificDetails($companyID,'company_details_t','company_id'); $dataResultSet = $rm->getAllDetails('company_details_t'); if (mysql_num_rows($dataResultSet) > 0) { while ($row = mysql_fetch_array($dataResultSet)) { $getCompanyFields['companyID'] = $row['company_id']; $getCompanyFields['companyName'] = $row['company_name']; array_push($companyDetailsArray, $getCompanyFields); } $result = $rm->get_anything_details_success($companyDetailsArray, 'Company'); return $result; } else { $result = $rm->get_anything_details_fail('Company'); return $result; } }
function getUserLoginDetails() { $USERNAME = trim($_REQUEST['userName']); //Get Request From Device $PASSWORD = trim($_REQUEST['passWord']); $DEVICEID = $_REQUEST['DeviceId']; $rm = new Response_Methods(); $getArrayList = array(); //echo $ENCRYPTEDPWD = md5($PASSWORD); //echo $ENCRYPTEDPWD = base64_decode($PASSWORD); //$ENCRYPTEDPWD=$PASSWORD; if ($USERNAME == "" || $PASSWORD == "") { $result = $rm->fields_validation(); return $result; } else { $result = $rm->login_success($USERNAME, $PASSWORD, $DEVICEID); return $result; } }
function userDeActivate() { $user_id = $_REQUEST['userID']; $rm = new Response_Methods(); if ($user_id == "") { $result = $rm->fields_validation(); return $result; } else { $getUpdateFieldValue['user_status'] = 0; $affectedRows = $rm->user_deactivate($user_id); //$affectedRows=$rm->update_record($getUpdateFieldValue,'login_t','login_user_id',$login_id); if ($affectedRows >= 0) { $result = $rm->userDeactivateSuccess(); return $result; } else { $result = $rm->userDeactivateFail(); return $result; } } }
function getBankBalance() { //$companyId = $_REQUEST['companyId']; $bank_id = trim($_REQUEST['bankID']); //$amount = trim($_REQUEST['amount']); $rm = new Response_Methods(); if ($bank_id == "") { $result = $rm->fields_validation(); return $result; } else { $currentBalance = $rm->idToValue('initial_bank_balance', 'bank_details_t', 'bank_id', $bank_id); if ($currentBalance != 'NA') { $result = $rm->bankBalance($currentBalance); return $result; } else { $result = $rm->get_anything_details_fail('Bank'); return $result; } } }
function forgetPassword() { $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { $EMAILID = $_REQUEST['emailId']; if ($EMAILID == "") { $result = $rm->fields_validation(); return $result; } else { $result = $rm->forgetPassword($EMAILID); return $result; } } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }
function userSearchList() { $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { if (isset($_POST['searchType']) && $_POST['searchType'] != '') { $searchType = trim($_POST['searchType']); //Get Request From Device (trending, userName, petType) } else { $searchType = "trending"; } $USERID = $_POST['userId']; $getArrayList = array(); if ($searchType == "" || $USERID == "") { $result = $rm->fields_validation(); return $result; } else { $result = $rm->getAllUsers($searchType, $USERID); return $result; } } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }
function getNotifications() { $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { $USERID = trim($_POST['userId']); //Get Request From Device $getArrayList = array(); if ($USERID == "") { $result = $rm->fields_validation(); return $result; } else { $result = $rm->notificationList($USERID); return $result; } //end of first else } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }
function updateComment() { $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { $comment = $rm->cleanData($_POST['comment']); //Get Request From Device $commentId = $rm->cleanData($_POST['commentId']); $getArrayList = array(); //echo $ENCRYPTEDPWD = md5($PASSWORD); //echo $ENCRYPTEDPWD = base64_decode($PASSWORD); //$ENCRYPTEDPWD=$PASSWORD; if ($comment == "" || $commentId == "") { $result = $rm->fields_validation(); return $result; } else { $getInsertFieldValue['comment_text_f'] = $comment; $affectedRowsUpdateComment = $rm->update_record($getInsertFieldValue, 'comments_t', 'comment_id', $commentId); if ($affectedRowsUpdateComment > 0) { $result = $rm->updateCommentSuccessJson($commentId); return $result; } else { $result = $rm->updateCommentFailJson(); return $result; } } } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }
function getUserLoginDetails() { $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { $USERNAME = trim($_REQUEST['userName']); //Get Request From Device $PASSWORD = trim($_REQUEST['passWord']); $getArrayList = array(); //echo $ENCRYPTEDPWD = md5($PASSWORD); //echo $ENCRYPTEDPWD = base64_decode($PASSWORD); //$ENCRYPTEDPWD=$PASSWORD; if ($USERNAME == "" || $PASSWORD == "") { $result = $rm->fields_validation(); return $result; } else { $result = $rm->login_success($USERNAME, $PASSWORD); return $result; } } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }
function deleteComment() { //die('test'); $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { $commentId = $rm->cleanData($_POST['commentId']); $postId = $rm->cleanData($_POST['postId']); $getArrayList = array(); //echo $ENCRYPTEDPWD = md5($PASSWORD); //echo $ENCRYPTEDPWD = base64_decode($PASSWORD); //$ENCRYPTEDPWD=$PASSWORD; if ($commentId == "" || $postId == "") { $result = $rm->fields_validation(); return $result; } else { $affectedRowsDeleteComment = $rm->deleteComment($commentId); if ($affectedRowsDeleteComment > 0) { $result = $rm->deleteCommentSuccessJson($postId); return $result; } else { $result = $rm->deleteCommentFailJson(); return $result; } } } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }
function getBankDetails() { $rm = new Response_Methods(); $bankDetailsArray = array(); $email_id = trim($_REQUEST['emailID']); $fullName = trim($_REQUEST['fullName']); $bankidsCheck = trim($_REQUEST['bankIDs']); //$bankids=array(33,34); //$bankidsCheck="33-34"; $stringToArray = explode(",", $bankidsCheck); //print_r ($stringToArray); //die(); $dataResultSet = $rm->getSpecificINDetails($stringToArray, 'bank_details_t', 'bank_id'); if (mysql_num_rows($dataResultSet) > 0) { while ($row = mysql_fetch_array($dataResultSet)) { $getBankFields['bankID'] = $row['bank_id']; $getBankFields['companyID'] = $row['company_id']; $getBankFields['bankName'] = $row['bank_name']; $getBankFields['custName'] = $row['account_holder_name']; $getBankFields['accNumber'] = $row['account_number']; //$getBankFields['bankAddress']=$row['bank_address']; $getBankFields['ifsc'] = $row['bank_ifsc']; //$getBankFields['micr']=$row['bank_micr']; $getBankFields['accType'] = $row['account_type']; $getBankFields['initialBalance'] = $row['initial_bank_balance']; $cdate = $row['bank_created_date']; $getBankFields['createdDate'] = date('Y/m/d', strtotime($cdate)); array_push($bankDetailsArray, $getBankFields); } //print_r($bankDetailsArray); $rm->sendMailBankDetails($email_id, $bankDetailsArray, $fullName); $result = $rm->get_anything_details_success($bankDetailsArray, 'Bank'); return $result; } else { $result = $rm->get_anything_details_fail('Bank'); return $result; } }
function addUserRequest() { //$companyId = $_REQUEST['companyId']; $login_user_id = trim($_REQUEST['userID']); $fromBankID = trim($_REQUEST['fromBankID']); $toBankID = trim($_REQUEST['toBankID']); //$paymentDate = trim($_REQUEST['paymentDate']); //$paymentReason = trim($_REQUEST['paymentReason']); $amount = trim($_REQUEST['amount']); $paymentType = trim($_REQUEST['paymentType']); $rm = new Response_Methods(); if ($login_user_id == "" || $fromBankID == "" || $amount == "" || $paymentType == "") { $result = $rm->fields_validation(); return $result; } else { date_default_timezone_set('Asia/Calcutta'); $createdDate = date('Y-m-d H:i:s'); $getList = array(); //inserting payment details $getInsertFieldValue['login_user_id'] = $login_user_id; $companyID = $rm->idToValue('company_id', 'user_details_t', 'login_user_id', $login_user_id); $getInsertFieldValue['payment_from_bank_id'] = $fromBankID; $getInsertFieldValue['payment_to_bank_id'] = $toBankID; //$getInsertFieldValue['payment_date']=$paymentDate; //$getInsertFieldValue['payment_reason']=$paymentReason; $getInsertFieldValue['amount'] = $amount; $getInsertFieldValue['payment_type'] = $paymentType; $getInsertFieldValue['request_created_date'] = $createdDate; $getInsertFieldValue['company_id'] = $companyID; $lastInserted_user_request_id = $rm->insert_record($getInsertFieldValue, 'user_requests_t'); if (!empty($lastInserted_user_request_id)) { //Do Transactions by updating bank current balance /* Sending Push Notification to Admin */ $gcm_regid = $rm->getUserGCMREGID(2); if ($gcm_regid != "" || $gcm_regid != "NA") { $gcm = new GCM(); $registatoin_ids = array($gcm_regid); $msg = "User Payment Request Made. Please Check"; $message = array("Response" => $msg); $resultPush = $gcm->send_notification($registatoin_ids, $message); } $result = $rm->userRequestSuccessJson($lastInserted_user_request_id); return $result; } else { $result = $rm->userRequestFailJson(); return $result; } } }
function getUserPhotos() { $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { /* yahan se*/ $USERID = trim($_POST['userId']); //Get Request From Device //die('test'); if (isset($_POST['postId'])) { $postId = trim($_POST['postId']); if ($postId == "" || $USERID == "") { $result = $rm->fields_validation(); return $result; } else { $result = $rm->getNextPhotos($USERID, $postId); return $result; } } else { if ($USERID == "") { $result = $rm->fields_validation(); return $result; } else { $result = $rm->getPhotos($USERID); return $result; } } /* yahan tak*/ } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }
function denyFriendRequest() { $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { $userId = trim($_POST['userId']); $friendId = trim($_POST['friendId']); if ($userId == "" || $friendId == "") { $result = $rm->fields_validation(); return $result; } else { if ($userId == $friendId) { $result = $rm->friendRequestFailforSameUser(); return $result; } else { $sqlDenyFriend = "delete from friends_t where status='0' and (friend_one={$userId} OR friend_two={$userId})AND(friend_one={$friendId} OR friend_two={$friendId})"; mysql_query($sqlDenyFriend, $GLOBALS['link']); $affectedRows = mysql_affected_rows(); if ($affectedRows > 0) { $result = $rm->friendDeniedSuccess(); return $result; } else { $result = $rm->friendDeniedFailed(); return $result; } } } // end of else first } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }
function forgetPassword() { //die('test'); $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { $EMAILID = $rm->cleanData(trim($_POST['emailId'])); if ($EMAILID == "") { $result = $rm->fields_validation(); return $result; } else { $checkEmail = $rm->checkUNEmail($EMAILID); if ($checkEmail['status'] == false) { $result = $rm->emailNotAvailable(); return $result; } else { //print_r($checkEmail); //die(); $result = $rm->sendPasswordEmail($checkEmail['user_id']); return $result; } } } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }
function confirmFriendRequest() { $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { $userId = trim($_POST['userId']); $friendId = trim($_POST['friendId']); if ($userId == "" || $friendId == "") { $result = $rm->fields_validation(); return $result; } else { if ($userId == $friendId) { $result = $rm->friendRequestFailforSameUser(); return $result; } else { $sqlConfirmFriend = "UPDATE friends_t SET status='1' WHERE (friend_one={$userId} OR friend_two={$userId})AND(friend_one={$friendId} OR friend_two={$friendId})"; if (mysql_query($sqlConfirmFriend, $GLOBALS['link'])) { $result = $rm->friendRequestConfirmed(); return $result; } else { $result = $rm->friendRequestFailed(); return $result; } } } // end of else first } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }
function changeLikeStatus() { $rm = new Response_Methods(); if ($_SERVER['REQUEST_METHOD'] == "GET") { $result = $rm->inValidServerMethod(); return $result; } //Check request url is https or not if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] !== "off") { $postId = trim($_POST['postId']); //Get Request From Device $getArrayList = array(); if ($postId == "") { $result = $rm->fields_validation(); return $result; } else { $getUpdateLike['like_status_f'] = "0"; $updateResult = $rm->update_record($getUpdateLike, 'likes_t', 'post_id_fk', $postId); if ($updateResult) { $result = $rm->changeLikeStatusSuccess(); return $result; } else { $result = $rm->changeLikeStatusFail(); return $result; } } // end of else first } else { $result = $rm->ssl_error(); return $result; } } else { $result = $rm->ssl_error(); return $result; } }
function getUserDetails() { $companyID = trim($_REQUEST['companyID']); $rm = new Response_Methods(); if ($companyID == "") { $result = $rm->fields_validation(); return $result; } $userDetailsArray = array(); $dataResultSet = $rm->getSpecificDetails($companyID, 'user_details_t', 'company_id'); //$dataResultSet=$rm->getAllDetails('user_details_t'); if (mysql_num_rows($dataResultSet) > 0) { while ($row = mysql_fetch_array($dataResultSet)) { /* $getUserFields['userID']=$row['user_id']; if($row['user_image']!='') $userPic=$row['user_image']; else $userPic='noImage.jpg'; $getUserFields['image']="http://phbjharkhand.in/bookOfAccounts/userPics/$userPic"; $getUserFields['login_user_id']=$row['login_user_id']; $cdate=$row['user_created_date']; $getUserFields['createdDate']=date('Y/m/d', strtotime($cdate)); */ $getUserFields['userID'] = $row['user_id']; $getUserFields['userFname'] = $row['user_fname']; $getUserFields['userLname'] = $row['user_lname']; $getUserFields['age'] = $row['user_age']; $getUserFields['sex'] = $row['user_sex']; $getUserFields['emailId'] = $row['user_email_id']; $userType = $rm->getUserType($row['login_user_id']); $getUserFields['userType'] = $userType; $getUserFields['address'] = $row['user_address']; array_push($userDetailsArray, $getUserFields); } $result = $rm->get_anything_details_success($userDetailsArray, 'User'); return $result; } else { $result = $rm->get_anything_details_fail('User'); return $result; } }
function getUserRequests() { $login_user_id = trim($_REQUEST['userID']); $rm = new Response_Methods(); $userRequestsDetailsArray = array(); //$dataResultSet=$rm->getSpecificDetails($login_user_id,'user_requests_t','login_user_id'); $dataResultSet = $rm->getSpecificDetailsRequest($login_user_id, 'Paid', 'user_requests_t', 'login_user_id', 'status'); //$dataResultSet=$rm->getAllDetails('user_details_t'); if (mysql_num_rows($dataResultSet) > 0) { while ($row = mysql_fetch_array($dataResultSet)) { $getUserRequestsFields['user_request_id'] = $row['user_request_id']; $getUserRequestsFields['payment_from_bank_id'] = $row['payment_from_bank_id']; $getUserRequestsFields['loginID'] = $row['login_user_id']; $getUserRequestsFields['payment_to_bank_id'] = $row['payment_to_bank_id']; //$getUserRequestsFields['payment_date']=$row['payment_date']; $getUserRequestsFields['fBank'] = $rm->idToValue('bank_name', 'bank_details_t', 'bank_id', $row['payment_from_bank_id']); $getUserRequestsFields['tBank'] = $rm->idToValue('bank_name', 'bank_details_t', 'bank_id', $row['payment_to_bank_id']); //$getUserRequestsFields['payment_reason']=$row['payment_reason']; $getUserRequestsFields['amount'] = $row['amount']; $getUserRequestsFields['payment_type'] = $row['payment_type']; $cdate = $row['request_created_date']; $getUserRequestsFields['request_created_date'] = date('Y/m/d', strtotime($cdate)); $getUserRequestsFields['request_created_time'] = date('H:i:s', strtotime($cdate)); $getUserRequestsFields['status'] = $row['status']; if ($row['status'] == 'Accepted') { $getUserRequestsFields['payment_id'] = $rm->idToValue('payment_id', 'payment_details_t', 'user_request_id', $row['user_request_id']); } array_push($userRequestsDetailsArray, $getUserRequestsFields); } $result = $rm->get_anything_details_success($userRequestsDetailsArray, 'User Request'); return $result; } else { $result = $rm->get_anything_details_fail('User Request'); return $result; } }
function addBankDetails() { echo 'test'; //$companyId = $_REQUEST['companyId']; $companyID = trim($_REQUEST['companyID']); $custName = trim($_REQUEST['custName']); $accNumber = trim($_REQUEST['accNumber']); $bankName = trim($_REQUEST['bankName']); /* $bankAddress = trim($_REQUEST['bankAddress']); if(isset($_REQUEST['micr'])) $micr = trim($_REQUEST['micr']); else $micr = "NA"; */ $ifsc = trim($_REQUEST['ifsc']); $accType = trim($_REQUEST['accType']); $initialBalance = trim($_REQUEST['initialBalance']); //$Mobile = $_REQUEST['Phone']; $rm = new Response_Methods(); if ($companyID == "" || $custName == "" || $accNumber == "" || $bankName == "" || $ifsc == "" || $accType == "" || $initialBalance == "") { //$sendMail=$rm->sendMailPasswordDetails($adminEmail,'test14521','sdfwd45487','Asif Anwar'); $result = $rm->fields_validation(); return $result; } else { $status = 0; date_default_timezone_set('Asia/Calcutta'); $createdDate = date('Y-m-d H:i:s'); /* $result=$rm->getListDetails('user_id','user_fname','user_details_t'); if(mysql_num_rows($result)>0) { while($row=mysql_fetch_array($result)) { echo $row['0'].' '.$row['1']; echo '<br/>'; } } //sample codes check for class Functions $result=$rm->getSpecificDetails(6,'user_details_t','user_id'); if(mysql_num_rows($result)>0) { while($row=mysql_fetch_array($result)) { echo $row['0'].' '.$row['1']; echo '<br/>'; } } */ $getList = array(); $getInsertFieldValue['company_id'] = $companyID; $getInsertFieldValue['account_holder_name'] = $custName; $getInsertFieldValue['account_number'] = $accNumber; $getInsertFieldValue['bank_name'] = $bankName; //$getInsertFieldValue['bank_address']=$bankAddress; $getInsertFieldValue['bank_ifsc'] = $ifsc; //$getInsertFieldValue['bank_micr']=$micr; $getInsertFieldValue['account_type'] = $accType; $getInsertFieldValue['initial_bank_balance'] = $initialBalance; $getInsertFieldValue['bank_created_date'] = $createdDate; $lastInserted_bank_id = $rm->insert_record($getInsertFieldValue, 'bank_details_t'); if (!empty($lastInserted_bank_id)) { $result = $rm->bankRegisterSuccessJson($lastInserted_bank_id); return $result; } else { $result = $rm->bankRegisterFailJson(); return $result; } } }