Exemple #1
0
/**
 * Print a HTML code with the settings of the plugin.
 *
 * @return void
 */
function sucuriscan_settings_page()
{
    SucuriScanInterface::check_permissions();
    $template_variables = array('PageTitle' => 'Settings', 'Settings.General' => sucuriscan_settings_general(), 'Settings.Scanner' => sucuriscan_settings_scanner(), 'Settings.IgnoreScanning' => sucuriscan_settings_ignorescanning(), 'Settings.Notifications' => sucuriscan_settings_notifications(), 'Settings.IgnoreRules' => sucuriscan_settings_ignore_rules(), 'Settings.TrustIP' => sucuriscan_settings_trust_ip(), 'Settings.Heartbeat' => sucuriscan_settings_heartbeat());
    echo SucuriScanTemplate::get_template('settings', $template_variables);
}
Exemple #2
0
/**
 * Print a HTML code with the settings of the plugin.
 *
 * @return void
 */
function sucuriscan_settings_page()
{
    SucuriScanInterface::check_permissions();
    $params = array();
    $nonce = SucuriScanInterface::check_nonce();
    $params['PageTitle'] = 'Settings';
    $params['Settings.General'] = sucuriscan_settings_general($nonce);
    $params['Settings.Scanner'] = sucuriscan_settings_scanner();
    $params['Settings.Alerts'] = sucuriscan_settings_alert($nonce);
    $params['Settings.ApiService'] = sucuriscan_settings_apiservice($nonce);
    $params['Settings.SelfHosting'] = sucuriscan_settings_selfhosting($nonce);
    $params['Settings.IgnoreScanning'] = sucuriscan_settings_ignorescanning();
    $params['Settings.IgnoreRules'] = sucuriscan_settings_ignore_rules();
    $params['Settings.TrustIP'] = sucuriscan_settings_trust_ip();
    $params['Settings.Heartbeat'] = sucuriscan_settings_heartbeat();
    echo SucuriScanTemplate::getTemplate('settings', $params);
}