示例#1
0
 function mrs1_book_event_form()
 {
     if ($this->_isCurl()) {
         $bookableItems = $this->getBookableItems();
         $mrsService = new MyReservationService();
         $options = get_option('mrs1_authentication_code');
         $connected = $mrsService->ValidateAuthCode($options);
     } else {
         $connected = 3;
     }
     include_once SAGENDA_PLUGIN_DIR . 'templates/reservation.php';
 }
示例#2
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';
 }