Beispiel #1
0
 public function getUserLoginUrl($row)
 {
     if (isset($_SERVER['HTTP_HOST'])) {
         $host = $_SERVER['HTTP_HOST'];
     } else {
         $host = Kwf_Registry::get('config')->server->domain;
     }
     $url = Kwf_Controller_Front_Component::getInstance()->getWebRouter()->getRoute('admin')->assemble(array('module' => 'index', 'controller' => 'index', 'action' => 'index'));
     $ret = (Kwf_Util_Https::domainSupportsHttps($host) ? 'https' : 'http') . '://' . $host . '/' . $url;
     $root = Kwf_Component_Data_Root::getInstance();
     if ($root && $this->_allowFrontendUrls($row)) {
         $component = $root->getComponentByClass('Kwc_User_Login_Component', array('limit' => 1));
         if ($component) {
             $ret = $component->getAbsoluteUrl(true);
         }
     }
     return $ret;
 }
Beispiel #2
0
<?php

chdir(dirname(__FILE__));
require 'vendor/koala-framework/koala-framework/Kwf/Setup.php';
Kwf_Setup::setUp();
Kwf_Setup::dispatchKwc();
Kwf_Setup::dispatchMedia();
$front = Kwf_Controller_Front_Component::getInstance();
$response = $front->dispatch();
$response->sendResponse();