Ejemplo n.º 1
0
 /**
  * get the output
  *
  * @since 2.4.0
  *
  * @return string
  */
 public function getOutput()
 {
     $protocol = new Protocol($this->_request);
     $host = new Host($this->_request);
     $directory = new Directory($this->_request);
     /* collect output */
     $output = $protocol->getOutput() . '://' . $host->getOutput();
     if ($directory->getOutput() !== '/' && $directory->getOutput() !== '\\') {
         $output .= $directory->getOutput();
     }
     return $output;
 }
Ejemplo n.º 2
0
 /**
  * get the output
  *
  * @since 2.4.0
  *
  * @return string
  */
 public function getOutput()
 {
     $host = new Host($this->_request);
     $output = sha1(session_id() . $this->_request->getServer('REMOTE_ADDR') . $this->_request->getServer('HTTP_USER_AGENT') . $host->getOutput());
     return $output;
 }