From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- .../libraries/classes/Display/GitRevision.php | 144 --------------------- 1 file changed, 144 deletions(-) delete mode 100644 srcs/phpmyadmin/libraries/classes/Display/GitRevision.php (limited to 'srcs/phpmyadmin/libraries/classes/Display/GitRevision.php') diff --git a/srcs/phpmyadmin/libraries/classes/Display/GitRevision.php b/srcs/phpmyadmin/libraries/classes/Display/GitRevision.php deleted file mode 100644 index 0a20f0e..0000000 --- a/srcs/phpmyadmin/libraries/classes/Display/GitRevision.php +++ /dev/null @@ -1,144 +0,0 @@ -response = $response; - $this->config = $config; - $this->template = $template; - } - - /** - * Returns details about the current Git commit revision - * - * @return string HTML - */ - public function display(): string - { - // load revision data from repo - $this->config->checkGitRevision(); - - if (! $this->config->get('PMA_VERSION_GIT')) { - $this->response->setRequestStatus(false); - return ''; - } - - // if using a remote commit fast-forwarded, link to GitHub - $commitHash = substr( - $this->config->get('PMA_VERSION_GIT_COMMITHASH'), - 0, - 7 - ); - $commitHash = '' . htmlspecialchars($commitHash) . ''; - if ($this->config->get('PMA_VERSION_GIT_ISREMOTECOMMIT')) { - $commitHash = '' . $commitHash . ''; - } - - $branch = $this->config->get('PMA_VERSION_GIT_BRANCH'); - $isRemoteBranch = $this->config->get('PMA_VERSION_GIT_ISREMOTEBRANCH'); - if ($isRemoteBranch) { - $branch = '' . htmlspecialchars($branch) . ''; - } - if ($branch !== false) { - $branch = sprintf( - __('%1$s from %2$s branch'), - $commitHash, - $isRemoteBranch ? $branch : htmlspecialchars($branch) - ); - } else { - $branch = $commitHash . ' (' . __('no branch') . ')'; - } - - $committer = $this->config->get('PMA_VERSION_GIT_COMMITTER'); - $author = $this->config->get('PMA_VERSION_GIT_AUTHOR'); - - $name = __('Git revision:') . ' ' - . $branch . ',
' - . sprintf( - __('committed on %1$s by %2$s'), - Util::localisedDate(strtotime($committer['date'])), - '' - . htmlspecialchars($committer['name']) . '' - ) - . ($author != $committer - ? ',
' - . sprintf( - __('authored on %1$s by %2$s'), - Util::localisedDate(strtotime($author['date'])), - '' - . htmlspecialchars($author['name']) . '' - ) - : ''); - - return $this->template->render('list/item', [ - 'content' => $name, - 'id' => 'li_pma_version_git', - 'class' => null, - 'url' => [ - 'href' => null, - 'target' => null, - 'id' => null, - 'class' => null, - ], - 'mysql_help_page' => null, - ]); - } -} -- cgit