Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

  • Sancho

    Administrator
    enero 25, 2010 at 22:07
    2229 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Nope at this version, but it’s a very nice idea. I’ve added to our feature request tracker !

    Try adding this code to events_rss.php, should work:

    $ipOrigin = $_SERVER[‘REMOTE_ADDR’];

    /**
    *
    * @param $ip
    * @return unknown_type
    */
    function isInACL($ip) {
            global $config;

            //If set * in the list ACL return true
            if(in_array(‘*’, $config[‘list_ACL_IPs_for_API’]))
                    return true;

            if (in_array($ip, $config[‘list_ACL_IPs_for_API’]))
                    return true;
            else
                    return false;
    }

    if (!isInACL($ipOrigin)) {
        exit;
    }

  • Sancho

    Administrator
    enero 25, 2010 at 22:14
    2229 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    BTW it’s so easy that I’ve commited to our SVN code repository 🙂

    Thx for the idea !