Ejemplo n.º 1
0
 /**
  * Returns the active request object.
  *
  * @return	RequestHandler
  */
 public static final function getRequest()
 {
     return RequestHandler::getActiveRequest();
 }
Ejemplo n.º 2
0
 /**
  * Views a fleet without container etc.
  */
 public function viewFleet($ownFleet = false)
 {
     if (!count($this->fleet)) {
         return '';
     }
     $className = $this->getClassName($ownFleet);
     $shipStr = $this->getShipStr();
     $transport = $this->getRessources('string');
     if ($this->fleet_mess != 1) {
         $fpage = '<span class="flight ' . $className . '">';
     } else {
         $fpage = '<span class="return ' . $className . '">';
     }
     if ($this->fleet_owner == WCF::getUser()->userID && RequestHandler::getActiveRequest()->page != 'PhalanxPage') {
         $fpage .= 'Eine deiner ';
     } else {
         if (RequestHandler::getActiveRequest()->page != 'PhalanxPage') {
             $fpage .= 'Eine fremde ';
         } else {
             $fpage .= 'Eine ';
         }
     }
     #if(!empty($shipStr)) $fpage .= '<a href="#" onmouseover="this.T_WIDTH=150;return escape(\''.$shipStr.'\');" class="'.$className.'">';
     if (!empty($shipStr)) {
         $fpage .= '<a style="cursor:pointer" onmouseover="return overlib(\'<div id=jslayer>' . $shipStr . '</div>\', WIDTH, 150, MOUSEOFF, DELAY, 200);" onmouseout="return nd();">';
     }
     if ($this->fleet_owner == WCF::getUser()->userID && RequestHandler::getActiveRequest()->page != 'PhalanxPage') {
         $fpage .= 'Flotten';
     } else {
         $fpage .= 'Flotte';
     }
     if (!empty($shipStr)) {
         $fpage .= '</a> ';
     }
     $fpage .= ' vom ' . $this->getStartPlanet(false);
     if ($this->fleet_mess == 2) {
         $fpage .= ' beginnt den R&uuml;ckflug vom ';
     } else {
         if (!$this->fleet_mess) {
             $fpage .= ' erreicht den ';
         } else {
             $fpage .= ' kehrt vom ';
         }
     }
     if ($this->endPlanetID != 0) {
         $fpage .= $this->getEndPlanet(false);
     } else {
         $fpage .= ' unbewohnten Planeten [' . $this->fleet_end_galaxy . ':' . $this->fleet_end_system . ':' . $this->fleet_end_planet . ']';
     }
     if ($this->fleet_mess != 1) {
         $fpage .= '. Ihr Auftrag lautet: ';
     } else {
         $fpage .= ' zur&uuml;ck. Ihr Auftrag lautete: ';
     }
     if (!empty($transport)) {
         $fpage .= '<a style="cursor:pointer" onmouseover="return overlib(\'<div id=jslayer>Transport:' . $transport . '</div>\', WIDTH, 150, MOUSEOFF, DELAY, 200);this.T_WIDTH=150;" onmouseout="return nd();" class="' . $className . '">';
     }
     $fpage .= LWCore::$missionTypes[$this->fleet_mission];
     if (!empty($transport)) {
         $fpage .= '</a>';
     }
     $fpage .= '</span>';
     return $fpage;
 }
Ejemplo n.º 3
0
 /**
  * Views a fleet without container etc.
  */
 public function viewFleet($ownFleet = false)
 {
     if (!count($this->fleet)) {
         return '';
     }
     $className = $this->getClassName($ownFleet);
     $shipStr = $this->getShipStr();
     $transport = $this->getRessources('string');
     if ($this->getCancelDuration()) {
         $fpage = '<span class="flight ' . $className . '">';
     } else {
         $fpage = '<span class="return ' . $className . '">';
     }
     if ($this->ownerID == WCF::getUser()->userID && RequestHandler::getActiveRequest()->page != 'PhalanxPage') {
         $fpage .= 'Eine deiner ';
     } else {
         if (RequestHandler::getActiveRequest()->page != 'PhalanxPage') {
             $fpage .= 'Eine fremde ';
         } else {
             $fpage .= 'Eine ';
         }
     }
     if (!empty($shipStr)) {
         $fpage .= '<a style="cursor:pointer" onmouseover="return overlib(\'<div id=jslayer>' . $shipStr . '</div>\', WIDTH, 150, MOUSEOFF, DELAY, 200);" onmouseout="return nd();">';
     }
     if ($this->ownerID == WCF::getUser()->userID && RequestHandler::getActiveRequest()->page != 'PhalanxPage') {
         $fpage .= 'Flotten';
     } else {
         $fpage .= 'Flotte';
     }
     if (!empty($shipStr)) {
         $fpage .= '</a> ';
     }
     $fpage .= ' vom ' . $this->getStartPlanet(false);
     if ($this->wakeUpTime && $this->wakeUpTime == $this->displayTime) {
         $fpage .= ' beginnt den R&uuml;ckflug vom ';
     } else {
         if ($this->getCancelDuration()) {
             $fpage .= ' erreicht den ';
         } else {
             $fpage .= ' kehrt vom ';
         }
     }
     if ($this->targetPlanetID != 0) {
         $fpage .= $this->getTargetPlanet(false);
     } else {
         $fpage .= ' unbewohnten Planeten [' . $this->galaxy . ':' . $this->system . ':' . $this->planet . ']';
     }
     if ($this->getCancelDuration()) {
         $fpage .= '. Ihr Auftrag lautet: ';
     } else {
         $fpage .= ' zur&uuml;ck. Ihr Auftrag lautete: ';
     }
     if (!empty($transport)) {
         $fpage .= '<a style="cursor:pointer" onmouseover="return overlib(\'<div id=jslayer>Transport:' . $transport . '</div>\', WIDTH, 150, MOUSEOFF, DELAY, 200);this.T_WIDTH=150;" onmouseout="return nd();" class="' . $className . '">';
     }
     $fpage .= WCF::getLanguage()->get('wot.mission.mission' . $this->data['missionID']);
     if (!empty($transport)) {
         $fpage .= '</a>';
     }
     $fpage .= '</span>';
     return $fpage;
 }