mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
move external_exec to common
git-svn-id: http://www.observium.org/svn/observer/trunk@2549 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -18,18 +18,6 @@ include_once($config['install_dir'] . "/includes/services.inc.php");
|
||||
include_once($config['install_dir'] . "/includes/dbFacile.php");
|
||||
include_once($config['install_dir'] . "/includes/console_colour.php");
|
||||
|
||||
function external_exec($command)
|
||||
{
|
||||
global $debug;
|
||||
|
||||
if ($debug) { echo($command."\n"); }
|
||||
$output = shell_exec($command);
|
||||
if ($debug) { echo($output."\n"); }
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
function mac_clean_to_readable($mac)
|
||||
{
|
||||
$r = substr($mac, 0, 2);
|
||||
|
||||
Reference in New Issue
Block a user