Commit 82d55c37 by Tobin

dc

parent 5f5e611a
...@@ -28,7 +28,7 @@ class OrganizerServices extends CI_Controller { ...@@ -28,7 +28,7 @@ class OrganizerServices extends CI_Controller {
$this->load->model('Validation_organizer_model'); $this->load->model('Validation_organizer_model');
$method = $this->router->fetch_method(); $method = $this->router->fetch_method();
$data = (array) json_decode(file_get_contents('php://input')); $data = (array) json_decode(file_get_contents('php://input'));
if($method == 'addEvent' || $method == 'editOrganizerEventDetails') { if($method == 'addEvent') {
$data = $_POST; $data = $_POST;
} }
if (isset(apache_request_headers()['Auth'])) { if (isset(apache_request_headers()['Auth'])) {
...@@ -90,7 +90,7 @@ class OrganizerServices extends CI_Controller { ...@@ -90,7 +90,7 @@ class OrganizerServices extends CI_Controller {
} }
public function editOrganizerEventDetails(){ public function editOrganizerEventDetails(){
$data = $_POST; $data =(array)json_decode(file_get_contents('php://input'));
$res = $this->Organizer_model->editOrganizerEventDetails($data); $res = $this->Organizer_model->editOrganizerEventDetails($data);
if($res['status'] != 0){ if($res['status'] != 0){
$this->successResponse($res); $this->successResponse($res);
...@@ -210,6 +210,16 @@ class OrganizerServices extends CI_Controller { ...@@ -210,6 +210,16 @@ class OrganizerServices extends CI_Controller {
} }
} }
public function checkerDelete(){
$data = (array) json_decode(file_get_contents('php://input'));
$res = $this->Organizer_model->checkerDelete($data);
if($res['status'] != 0){
$this->successResponse($res);
}else{
$this->errorResponse($res['code'],$res['message']);
}
}
public function getTagList(){ public function getTagList(){
$data = (array) json_decode(file_get_contents('php://input')); $data = (array) json_decode(file_get_contents('php://input'));
$res = $this->Organizer_model->getTagList($data); $res = $this->Organizer_model->getTagList($data);
......
...@@ -158,7 +158,7 @@ class Api_model extends CI_Model { ...@@ -158,7 +158,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 = $redUrl.'forgot/?reset_key='.$unique_id; $url = $redUrl.'forgot?reset_key='.$unique_id;
$msgContent = "Hi, Welcome to TimeOut. Please use this link $msgContent = "Hi, Welcome to TimeOut. Please use this link
for reset your password: ".$url; for reset your password: ".$url;
$message = "<html><body><p>".$msgContent."</p></body></html>"; $message = "<html><body><p>".$msgContent."</p></body></html>";
......
...@@ -274,12 +274,6 @@ class Validation_organizer_model extends CI_Model { ...@@ -274,12 +274,6 @@ class Validation_organizer_model extends CI_Model {
'message' => 'Tag is null or empty' 'message' => 'Tag is null or empty'
) )
), ),
'layout' => array(
'required' => array(
'code' => 'ER18',
'message' => 'Layout is null or empty'
)
),
), ),
'getLanguages'=>array(), 'getLanguages'=>array(),
'getCategories'=>array(), 'getCategories'=>array(),
...@@ -363,6 +357,20 @@ class Validation_organizer_model extends CI_Model { ...@@ -363,6 +357,20 @@ class Validation_organizer_model extends CI_Model {
) )
), ),
), ),
'checkerDelete'=>array(
'organiser_id'=>array(
'required'=>array(
'code'=>'ER30',
'message'=>'Organizer Id is null or empty'
)
),
'checker_id'=>array(
'required'=>array(
'code'=>'ER30',
'message'=>'Checker Id is null or empty'
)
),
),
); );
public function _consruct(){ public function _consruct(){
......
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