Пример #1
0
 protected function getHeaderURL()
 {
     include_once './Services/User/classes/class.ilUserUtil.php';
     $url = ilUserUtil::getStartingPointAsUrl();
     if (!$url) {
         $url = "./goto.php?target=root_1";
     }
     return $url;
 }
Пример #2
0
 /**
  * open start page (personal desktop or repository)
  *
  * precondition: authentication (maybe anonymous) successfull
  */
 function processStartingPage()
 {
     /**
      * @var $ilUser ilObjUser
      */
     global $ilUser;
     // fallback, should never happen
     if ($ilUser->getId() == ANONYMOUS_USER_ID) {
         ilInitialisation::goToPublicSection();
     } else {
         // for password change and incomplete profile
         // see ilPersonalDesktopGUI
         if (IS_PAYMENT_ENABLED) {
             include_once './Services/Payment/classes/class.ilPaymentShoppingCart.php';
             ilPaymentShoppingCart::_assignObjectsToUserId($ilUser->getId());
             if ((int) $_GET['forceShoppingCartRedirect']) {
                 ilUtil::redirect('ilias.php?baseClass=ilShopController&cmd=redirect&redirect_class=ilshopshoppingcartgui');
             }
         }
         if (!$_GET["target"]) {
             // Redirect here to switch back to http if desired
             include_once './Services/User/classes/class.ilUserUtil.php';
             ilUtil::redirect(ilUserUtil::getStartingPointAsUrl());
         } else {
             // will handle shop redirects, too
             ilUtil::redirect("goto.php?target=" . $_GET["target"]);
         }
     }
 }