mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
Issue #2076 - Display last git update info to developers.
This commit is contained in:
parent
d5df99eb3e
commit
6516f3cff3
@ -1054,7 +1054,11 @@ class admin_shortcodes
|
||||
<b>".FOOTLAN_8."</b>
|
||||
<br />
|
||||
".$install_date."
|
||||
<br /><br />
|
||||
<br />";
|
||||
|
||||
$text .= $this->getLastGitUpdate();
|
||||
|
||||
$text .= "<br />
|
||||
<b>".FOOTLAN_9."</b>
|
||||
<br />".
|
||||
preg_replace("/PHP.*/i", "", $_SERVER['SERVER_SOFTWARE'])."<br />(".FOOTLAN_10.": ".$_SERVER['SERVER_NAME'].")
|
||||
@ -1084,6 +1088,22 @@ class admin_shortcodes
|
||||
}
|
||||
}
|
||||
|
||||
private function getLastGitUpdate()
|
||||
{
|
||||
$gitFetch = e_BASE.'.git/FETCH_HEAD';
|
||||
|
||||
if(file_exists($gitFetch))
|
||||
{
|
||||
$unix = filemtime($gitFetch);
|
||||
|
||||
$text = "<br /><b>Last Git Update</b><br />"; // NO LAN required. Developer-Only
|
||||
$text.= ($unix) ? date('r',$unix) : "Never";
|
||||
$text .= "<br />";
|
||||
return $text;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function sc_admin_status($parm)
|
||||
{
|
||||
if(($parm == 'infopanel' || $parm == 'flexpanel') && e_PAGE != 'admin.php')
|
||||
|
Loading…
x
Reference in New Issue
Block a user