<?php

function plugin_skeleton_variables()
{
    // These are the mandatory variables
    $variables = array(
        'Plugin Name'   => array(
            'type'          => 'hidden',
            'description'   => '',
            'value'         => 'Skeleton Plugin',
        ),
        'Enabled'       => array(
            'type'          => 'yesno',
            'description'   => 'When enabled and server plugin has server stats script URL, ClientExec will notify you if the server is not responding or when certain thresholds are met.',
            'value'         => '0',
        ),
        'Run schedule - Minute'  => array(
            'type'          => 'text',
            'description'   => 'Enter number, range, list or steps',
            'value'         => '*',
            'helpid'        => '8',
        ),
        'Run schedule - Hour'  => array(
            'type'          => 'text',
            'description'   => 'Enter number, range, list or steps',
            'value'         => '*',
        ),
        'Run schedule - Day'  => array(
            'type'          => 'text',
            'description'   => 'Enter number, range, list or steps',
            'value'         => '*',
        ),
        'Run schedule - Month'  => array(
            'type'          => 'text',
            'description'   => 'Enter number, range, list or steps',
            'value'         => '*',
        ),
        'Run schedule - Day of the week'  => array(
            'type'          => 'text',
            'description'   => 'Enter number in range 0-7 (0 is Sunday) or a 3 letter shortcut (e.g. sun)',
            'value'         => '*',
        ),
    );

    return $variables;
}

function plugin_skeleton_execute()
{
    // Must return an array containing:
    //     - strings for success status messages
    //     - and/or error objects
    // Success messages and errors will be shown in the dashboard's Service Status tab.
    // When the service is executed manually, success messages and errors will be shown in the screen.
    // When the service is executed through Cron, errors will be sent by e-mail.
}

function plugin_serverstatus_output()
{
    // Optional.
    // Return a string with extra info you would like to show in the service plugin configuration screen.
}

function plugin_serverstatus_dashboard()
{
    // Optional.
    // Return a string with extra info you would like to show in the dashboard's Service Status tab.
}

?>
