From a0b2d09125d7911656fe4cb286f20643c4432281 Mon Sep 17 00:00:00 2001 From: Marek Laane Date: Sun, 12 Oct 2014 10:54:11 +0300 Subject: Updated Estonian translation --- rev.php | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 rev.php (limited to 'rev.php') diff --git a/rev.php b/rev.php deleted file mode 100644 index 00b9a6d7c..000000000 --- a/rev.php +++ /dev/null @@ -1,53 +0,0 @@ - -*/ - -$app_root = __DIR__; - -$vars = array( - 'app' => $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'], - 'git' => get_git_info($app_root), - 'status' => get_status($app_root), -); - -header('Content-Type: application/json; charset=utf-8'); -echo json_encode($vars); - -//--- - -/** - * TODO Return app status (tests, config, other?) - * - * @param string $app_root - * - * @return string -*/ -function get_status($app_root) -{ - return 'OK'; -} - -/** - * Return basic Subversion status info. See $keys array. - * - * @param string $app_root - * - * @return array -*/ -function get_git_info($app_root) -{ - exec(escapeshellcmd(sprintf('LC_ALL=C %s show %s %s', exec('which git'), '-s --pretty="Revision: %H%nLast Author: %an%nDate Revision: %ar%nTitle: %s"', escapeshellarg($app_root))), - $out, $ret); - - - return $out; -} -- cgit v1.2.1