public function Index()
 {
     $email = HttpResquestHandler::getParam("email");
     $password = HttpResquestHandler::getParam("password");
     $imagebase64 = HttpResquestHandler::getParam("image");
     return $this->upLoad($email, $password, $imagebase64);
 }
 public function Index()
 {
     $email = HttpResquestHandler::getParam("email");
     $vcode = HttpResquestHandler::getParam("vcode");
     $newpassword = HttpResquestHandler::getParam("password");
     return $this->createLoginDetailsFrom($email, $vcode, $newpassword);
 }
 public function Index()
 {
     $email = HttpResquestHandler::getParam("email");
     $resetCode = HttpResquestHandler::getParam("resetCode");
     $newpassword = HttpResquestHandler::getParam("password");
     return $this->tryChangePassword($email, $newpassword, $resetCode);
 }
 public function Index()
 {
     $email = HttpResquestHandler::getParam("email");
     $password = HttpResquestHandler::getParam("password");
     $noevents = HttpResquestHandler::getParam("numberofevents");
     return $this->getUserEvents($email, $password, $noevents);
 }
Пример #5
0
 public function Index()
 {
     //Get the Post data safely else return null if no post item with name is found
     $getEmail = HttpResquestHandler::getParam("email");
     $getPassword = HttpResquestHandler::getParam("password");
     return $this->getUserInfo($getEmail, $getPassword);
 }
Пример #6
0
 public function Index()
 {
     $email = HttpResquestHandler::getParam("email");
     $fullname = HttpResquestHandler::getParam("fullname");
     $gender = HttpResquestHandler::getParam("gender");
     return $this->Create($email, $fullname, $gender);
 }
 public function Index()
 {
     $address = HttpResquestHandler::getParam("address");
     $lat = HttpResquestHandler::getParam("lat");
     $long = HttpResquestHandler::getParam("long");
     return $this->getLocationAddress($address, $lat, $long);
 }
 public function Index()
 {
     $user_id = HttpResquestHandler::getParam("user_id");
     $password = HttpResquestHandler::getParam("password");
     $event_id = HttpResquestHandler::getParam("event_id");
     return $this->removeEvent($user_id, $password, $event_id);
 }
 public function Index()
 {
     $searchablekeywords = HttpResquestHandler::getParam("keywords");
     $event_id = HttpResquestHandler::getParam("event_id");
     $user_id = HttpResquestHandler::getParam("user_id");
     $user_password = HttpResquestHandler::getParam("password");
     return $this->updateEvent($user_id, $user_password, $event_id, $searchablekeywords);
 }
 public function Index()
 {
     $desc = HttpResquestHandler::getParam("desc");
     $event_id = HttpResquestHandler::getParam("event_id");
     $user_id = HttpResquestHandler::getParam("user_id");
     $user_password = HttpResquestHandler::getParam("password");
     return $this->updateEvent($user_id, $user_password, $event_id, $desc);
 }
 public function Index()
 {
     $email = HttpResquestHandler::getParam("user_id");
     $password = HttpResquestHandler::getParam("user_password");
     $eventId = HttpResquestHandler::getParam("event_id");
     $imagebase64 = HttpResquestHandler::getParam("image");
     return $this->uploadEventImage($email, $password, $eventId, $imagebase64);
 }
 public function Index()
 {
     $user_id = HttpResquestHandler::getParam("user_id");
     $password = HttpResquestHandler::getParam("password");
     $event_id = HttpResquestHandler::getParam("event_id");
     $startDate = HttpResquestHandler::getParam("start");
     $endDate = HttpResquestHandler::getParam("end");
     return $this->updateEventDateVenue($user_id, $password, $event_id, $startDate, $endDate);
 }
Пример #13
0
 public function Index()
 {
     $email = HttpResquestHandler::getParam("email");
     $password = HttpResquestHandler::getParam("password");
     $fullname = HttpResquestHandler::getParam("fullname");
     $long = HttpResquestHandler::getParam("long") != null ? HttpResquestHandler::getParam("long") : 0.0;
     $lat = HttpResquestHandler::getParam("lat") != null ? HttpResquestHandler::getParam("long") : 0.0;
     return $this->Update($email, $password, $fullname, $long, $lat);
 }
Пример #14
0
 public function Index()
 {
     $eventid = HttpResquestHandler::getParam("event_id");
     $email = HttpResquestHandler::getParam("email");
     $password = HttpResquestHandler::getParam("password");
     $title = HttpResquestHandler::getParam("title");
     $venue = HttpResquestHandler::getParam("venue");
     $privacy = HttpResquestHandler::getParam("privacy");
     return $this->update($eventid, $title, $venue, $privacy, $email, $password);
 }
 public function Index()
 {
     $email = HttpResquestHandler::getParam("email");
     $password = HttpResquestHandler::getParam("password");
     $title = HttpResquestHandler::getParam("title");
     $venue = HttpResquestHandler::getParam("venue");
     //   $dateOfEvent=  HttpResquestHandler::RequestParams("dateOfEvent");
     $privacy = HttpResquestHandler::getParam("privacy");
     // $duration = HttpResquestHandler::RequestParams("duration");
     $fees = HttpResquestHandler::getParam("fees");
     //$searchable = HttpResquestHandler::RequestParams("searchable_keywords");
     $currency_country = HttpResquestHandler::getParam("currency_country");
     //  $eventdata= floatval($dateOfEvent)/1000;
     return $this->createNewEvent($email, $password, $title, $venue, $privacy, $fees, $currency_country);
 }
 public function Index()
 {
     $eventId = HttpResquestHandler::getParam("event_id");
     $response = array();
     $response["success"] = 0;
     $event = TryFetchUserEvent::FetchById($eventId);
     if ($event != null) {
         $response["success"] = 1;
         $response["event"] = $event;
     } else {
         $response["error_message"] = "No event found";
         //should not happen
     }
     $json = new JsonViewer();
     $json->setContent($response);
     return $json;
 }
 public function Index()
 {
     $email = HttpResquestHandler::getParam("email");
     $password = HttpResquestHandler::getParam("password");
     $response = array();
     $response["success"] = 0;
     $tryuser = new TryFetchUser();
     $userdb = $tryuser->fetch($email);
     if ($userdb != null) {
         $user = new User(json_encode($userdb));
         $tryLogin = new TryUserLogin($user->getId(), $password);
         if ($tryLogin->isExists()) {
             $response["success"] = 1;
         } else {
             $response["error_message"] = "Login details is not current or you have not yet verify your account.";
         }
     } else {
         $response["error_message"] = "Invalid Username or Password";
     }
     $jsonView = new JsonViewer();
     $jsonView->setContent($response);
     return $jsonView;
 }
 public function Index()
 {
     $jsonView = new JsonViewer();
     $response = array();
     $response["success"] = 0;
     $email = HttpResquestHandler::getParam("email");
     $tryReset = new TryResetPassword($email);
     $code = $tryReset->update();
     if ($code != null) {
         $response["success"] = 1;
         $tryFetchUser = new TryFetchUser();
         $user = $tryFetchUser->fetch($email);
         $phpuser = new User(json_encode($user));
         $status = $this->sendUserResetCode($phpuser);
         if ($status) {
             $response["message"] = "The verification as be sent to the email address {$email}";
         }
     } else {
         //this should not happen
         die("Debugging  Error in update reset code");
     }
     $jsonView->setContent($response);
     return $jsonView;
 }
 public function Index()
 {
     $event_id = HttpResquestHandler::getParam("event_id");
     return $this->getUserByEventId($event_id);
 }
 public function Index()
 {
     $email = HttpResquestHandler::getParam("email");
     $password = HttpResquestHandler::getParam("password");
     return $this->getProfileImageUrl($email, $password);
 }
Пример #21
0
 public function Index()
 {
     $query = HttpResquestHandler::getParam("query_string");
     return $this->fetchEventOn($query);
 }
 public function Index()
 {
     $user_id = HttpResquestHandler::getParam("user_id");
     $event_id = HttpResquestHandler::getParam("event_id");
     return $this->getUpdateEvent($user_id, $event_id);
 }