Commit 649a8b8a by Tobin

dc

parent c0367894
...@@ -322,7 +322,7 @@ class Api extends CI_Controller { ...@@ -322,7 +322,7 @@ class Api extends CI_Controller {
public function payNow($auth_token='',$amount=0,$booking_id='',$event_id=''){ public function payNow($auth_token='',$amount=0,$booking_id='',$event_id=''){
if(empty($auth_token) || empty($amount) || empty($booking_id)){ if(empty($auth_token) || empty($amount) || empty($booking_id)){
redirect('https://projects.nuvento.com/failure'); redirect('https://timeout.sa/staging/failure');
} }
$payData = array('auth_token'=>$auth_token,'amount'=>$amount,'booking_id'=>$booking_id); $payData = array('auth_token'=>$auth_token,'amount'=>$amount,'booking_id'=>$booking_id);
$res = $this->Api_model->payNow($payData); $res = $this->Api_model->payNow($payData);
...@@ -331,7 +331,7 @@ class Api extends CI_Controller { ...@@ -331,7 +331,7 @@ class Api extends CI_Controller {
$this->paymentGateway($amount,$res['transaction_id'],$event_id,$booking_id,$res['custData']); $this->paymentGateway($amount,$res['transaction_id'],$event_id,$booking_id,$res['custData']);
} }
else{ else{
redirect('https://projects.nuvento.com/failure?event_id='.$eventid); redirect('https://timeout.sa/staging/failure?event_id='.$eventid);
} }
} }
...@@ -353,7 +353,7 @@ class Api extends CI_Controller { ...@@ -353,7 +353,7 @@ class Api extends CI_Controller {
$booking_id = $last_id[3]; $booking_id = $last_id[3];
$this->Api_model->update_payment($response,$transaction_id,$lastid,'1') ; $this->Api_model->update_payment($response,$transaction_id,$lastid,'1') ;
redirect('https://projects.nuvento.com/bookingdetails?booking_id='.$booking_id); redirect('https://timeout.sa/staging/bookingdetails?booking_id='.$booking_id);
} }
} }
...@@ -376,7 +376,7 @@ class Api extends CI_Controller { ...@@ -376,7 +376,7 @@ class Api extends CI_Controller {
$booking_id = $last_id[3]; $booking_id = $last_id[3];
$this->Api_model->update_payment($response,$transaction_id,$lastid,'0'); $this->Api_model->update_payment($response,$transaction_id,$lastid,'0');
redirect('https://projects.nuvento.com/failure?event_id='.$eventid); redirect('https://timeout.sa/staging/failure?event_id='.$eventid);
} }
} }
......
...@@ -187,7 +187,7 @@ class Event extends CI_Controller { ...@@ -187,7 +187,7 @@ class Event extends CI_Controller {
$subject = "TimeOut, New Event Created"; $subject = "TimeOut, New Event Created";
$emailId = $settings['admin_mail_id']; $emailId = $settings['admin_mail_id'];
$message = "<html><body> $message = "<html><body>
New Event Created, event name: <strong>".$_POST['event_name']."</strong>. Event URL : https://projects.nuvento.com/eventdetail?event_id=$event_id New Event Created, event name: <strong>".$_POST['event_name']."</strong>. Event URL : ".base_url()."eventdetail?event_id=$event_id
</body></html>"; </body></html>";
$this->Api_model->send_mail($subject,$emailId,$message); $this->Api_model->send_mail($subject,$emailId,$message);
// END - NEW EVENT NOTIFICATION MAIL \\ // END - NEW EVENT NOTIFICATION MAIL \\
......
...@@ -82,7 +82,7 @@ class Api_model extends CI_Model { ...@@ -82,7 +82,7 @@ class Api_model extends CI_Model {
$subject = "TimeOut, Verify your account"; $subject = "TimeOut, Verify your account";
$email_id = $data['email_id']; $email_id = $data['email_id'];
$reset_link = 'https://projects.nuvento.com/admin/Api/verifyMail/'.$unique_id; $reset_link = base_url().'Api/verifyMail/'.$unique_id;
$message = "<html> $message = "<html>
<body> <body>
Hi,\n\r Welcome to TimeOut. \r\n Please Verify your E-mail for the username: ".$email_id.". User the following link verify your account ".$reset_link.". Hi,\n\r Welcome to TimeOut. \r\n Please Verify your E-mail for the username: ".$email_id.". User the following link verify your account ".$reset_link.".
...@@ -154,7 +154,7 @@ class Api_model extends CI_Model { ...@@ -154,7 +154,7 @@ class Api_model extends CI_Model {
$this->db->where('email',$data['email_id'])->update('customer',array('reset_key'=>$unique_id)); $this->db->where('email',$data['email_id'])->update('customer',array('reset_key'=>$unique_id));
$subject = "TimeOut: Forgot Password"; $subject = "TimeOut: Forgot Password";
$url = 'https://projects.nuvento.com/forgot/?reset_key='.$unique_id; $url = 'https://timeout.sa/staging/forgot/?reset_key='.$unique_id;
$message = "<html> $message = "<html>
<body> <body>
...@@ -1195,11 +1195,11 @@ class Api_model extends CI_Model { ...@@ -1195,11 +1195,11 @@ class Api_model extends CI_Model {
$cust = $cust->row_array(); $cust = $cust->row_array();
if($this->db->update('customer',array('confirm_link'=>'','email_verified'=>'1'), if($this->db->update('customer',array('confirm_link'=>'','email_verified'=>'1'),
array('customer_id'=>$cust['customer_id']))){ array('customer_id'=>$cust['customer_id']))){
header('Location:https://projects.nuvento.com/location?login=1'); header('Location:https://timeout.sa/staging/location?login=1');
} }
} }
}catch(Exception $e){} }catch(Exception $e){}
header('Location:https://projects.nuvento.com/location'); header('Location:https://timeout.sa/staging/location');
} }
} }
?> ?>
...@@ -1336,12 +1336,12 @@ class Webservice_model extends CI_Model { ...@@ -1336,12 +1336,12 @@ class Webservice_model extends CI_Model {
if(!EMPTY($locality)) { if(!EMPTY($locality)) {
$locality = $locality; $locality = $locality;
}else{ }else{
$locality = 'null'; $locality = array();
} }
if(!EMPTY($category)) { if(!EMPTY($category)) {
$category = $category; $category = $category;
}else{ }else{
$category = 'null'; $category = array();
} }
if(isset($dateArray)){ if(isset($dateArray)){
$resultData = array(); $resultData = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment