UNPKG

448 Bapplication/x-httpd-phpView Raw
1<?php
2if (!defined('WEBROOT'))
3 exit;
4
5echo json_encode(array(
6 't' => date('r'),
7 'repo' => preg_replace('/.*(git@github\.com:.+\.git)([\s\S])*/','$1',`git remote -v`),
8 'branch' => preg_replace('/[\n* ]/','',`git branch | grep '\*' | head -n1`),
9 'commit' => str_replace("\n",'',`git rev-parse HEAD`),
10 'ip' => \ace\Ace::clientIp(),
11 //'whoami' => str_replace("\n",'',`whoami`),
12));
13
14exit;
15\ace\Ace::varDump($_SERVER);
16phpinfo();