mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Issue #2076 - Display last git update info to developers.
This commit is contained in:
@@ -1054,7 +1054,11 @@ class admin_shortcodes
|
|||||||
<b>".FOOTLAN_8."</b>
|
<b>".FOOTLAN_8."</b>
|
||||||
<br />
|
<br />
|
||||||
".$install_date."
|
".$install_date."
|
||||||
<br /><br />
|
<br />";
|
||||||
|
|
||||||
|
$text .= $this->getLastGitUpdate();
|
||||||
|
|
||||||
|
$text .= "<br />
|
||||||
<b>".FOOTLAN_9."</b>
|
<b>".FOOTLAN_9."</b>
|
||||||
<br />".
|
<br />".
|
||||||
preg_replace("/PHP.*/i", "", $_SERVER['SERVER_SOFTWARE'])."<br />(".FOOTLAN_10.": ".$_SERVER['SERVER_NAME'].")
|
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)
|
function sc_admin_status($parm)
|
||||||
{
|
{
|
||||||
if(($parm == 'infopanel' || $parm == 'flexpanel') && e_PAGE != 'admin.php')
|
if(($parm == 'infopanel' || $parm == 'flexpanel') && e_PAGE != 'admin.php')
|
||||||
|
Reference in New Issue
Block a user