Esempio n. 1
0
 public function facebookPage()
 {
     $fbPage = \Rebond\Config::getKey('facebook');
     if (!isset($fbPage)) {
         $fbPage = 'vincium';
     }
     $tpl = new Util\Template(Util\Template::MODULE, ['app', 'plugin']);
     $tpl->set('fbPage', $fbPage);
     return $tpl->render('facebook-page');
 }
Esempio n. 2
0
 public function gmap()
 {
     $tpl = new Util\Template(Util\Template::MODULE, ['app', 'plugin']);
     $tpl->set('address', \Rebond\Config::getKey('gmap'));
     return $tpl->render('gmap');
 }
Esempio n. 3
0
 private function login()
 {
     $this->cookie = new \GuzzleHttp\Cookie\CookieJar();
     $this->client = new \GuzzleHttp\Client(['base_uri' => $this->baseUri, 'cookies' => true]);
     $login = $this->client->request('POST', 'ttk/?K1=Logg inn', ['cookies' => $this->cookie, 'form_params' => ['K16' => 'Logg inn', 'K16_U' => '*****@*****.**', 'K16_P' => \Rebond\Config::getKey('ttkPassword')]]);
     if ($login->getStatusCode() != 200) {
         Util\Error::kill('could not login to TTK reservation', 500, __FILE__, __LINE__);
     }
 }