Esempio n. 1
0
function get_from_master($variable)
{
    return send_to_master($variable);
}
Esempio n. 2
0
function send_system_monitor_message_to_admin($prog)
{
    global $gbl, $sgbl, $login, $ghtml;
    $hst = trim(`hostname`);
    $dt = @date('M-d h:i');
    $mess = "Host: {$hst}\nDate: {$dt}\n{$prog}\n\n\n";
    $rmt = new Remote();
    $rmt->cmd = "sendemail";
    $rmt->subject = "System Monitor on {$hst}";
    $rmt->message = $mess;
    send_to_master($rmt);
}