X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp.php;h=65ae3fe2f47389583dc0286733f1d4a2c528b990;hb=f4e1acedfcd86c81403c14747ecfd3b11583506e;hp=ceb11dd797ecdb567691e59208d82343d54626da;hpb=04d620fc2f567d32b50f5d5b0974acafeb072177;p=friendica.git diff --git a/src/App.php b/src/App.php index ceb11dd797..65ae3fe2f4 100644 --- a/src/App.php +++ b/src/App.php @@ -1,7 +1,24 @@ . + * */ + namespace Friendica; use Exception; @@ -25,9 +42,6 @@ use Friendica\Util\Strings; use Psr\Log\LoggerInterface; /** - * - * class: App - * * Our main application structure for the life of this page. * * Primarily deals with the URL that got us here @@ -226,43 +240,6 @@ class App } } - /** - * Returns the current UserAgent as a String - * - * @return string the UserAgent as a String - * @throws HTTPException\InternalServerErrorException - */ - public function getUserAgent() - { - return - FRIENDICA_PLATFORM . " '" . - FRIENDICA_CODENAME . "' " . - FRIENDICA_VERSION . '-' . - DB_UPDATE_VERSION . '; ' . - $this->baseURL->get(); - } - - /** - * Generates the site's default sender email address - * - * @return string - * @throws HTTPException\InternalServerErrorException - */ - public function getSenderEmailAddress() - { - $sender_email = $this->config->get('config', 'sender_email'); - if (empty($sender_email)) { - $hostname = $this->baseURL->getHostname(); - if (strpos($hostname, ':')) { - $hostname = substr($hostname, 0, strpos($hostname, ':')); - } - - $sender_email = 'noreply@' . $hostname; - } - - return $sender_email; - } - /** * Returns the current theme name. May be overriden by the mobile theme name. *