Esempio n. 1
0
 function show_mrs_settings()
 {
     $tab = 'mrs-settings';
     $options = get_option('mrs1_authentication_code');
     if ($this->_isCurl()) {
         include_once SAGENDA_PLUGIN_DIR . 'classes/MyReservationService.php';
         $obj = new MyReservationService();
         $connected = $obj->ValidateAuthCode($options);
     } else {
         $connected = 3;
     }
     include_once SAGENDA_PLUGIN_DIR . 'admin/templates/config.php';
 }
Esempio n. 2
0
 function subscribeForEvent_callback()
 {
     $obeEvent = new SubscribeForEvent();
     $obeEvent->setEventIdentifier($_POST["EventIdentifier"]);
     $obeEvent->setBookableItemId($_POST["BookableItemId"]);
     $obeEvent->setEventScheduleId($_POST["EventScheduleId"]);
     $obeEvent->setCourtesy($_POST["Courtesy"]);
     $obeEvent->setFirstName($_POST["FirstName"]);
     $obeEvent->setLastName($_POST["LastName"]);
     $obeEvent->setPhoneNumber($_POST["PhoneNumber"]);
     $obeEvent->setEmail($_POST["Email"]);
     $obeEvent->setDescription($_POST["Description"]);
     $mrsService = new MyReservationService();
     echo $mrsService->subscribeToEvent($obeEvent);
     die;
 }