UNPKG

507 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)|(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
15exit;
16\ace\Ace::varDump($_SERVER);
17phpinfo();