1 |
|
2 | if (!defined('WEBROOT'))
|
3 | exit;
|
4 |
|
5 | echo json_encode(array(
|
6 | 't' => date('r'),
|
7 | 'repo' => preg_replace('/.*((git@github\.com:.+\.git)|(https?:\/\/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 | 'php' => phpversion(),
|
12 | //'whoami' => str_replace("\n",'',`whoami`),
|
13 | ));
|
14 |
|
15 | exit;
|
16 | \ace\Ace::varDump($_SERVER);
|
17 | phpinfo();
|