$t->display('admin/email_test.html');
        exit;
    }
    $t->assign('error', $error);
    $t->assign('a', '');
    $t->assign('text_message', 'Verification email message has been just emailed to you. Did you receive this message?');
    $t->display('admin/email_test.html');
}
function display_info($vars = '')
{
    global $db, $t;
    settype($vars, 'array');
    $t->assign('a', 'info');
    $t->assign('text_message', 'Instruction of email settings.');
    $t->display('admin/email_test.html');
}
////////////////////////////////////////////////////////////////////////////
//
//                      M A I N
//
////////////////////////////////////////////////////////////////////////////
$vars = get_input_vars();
$error = array();
//admin_check_permissions('browse_users');
switch (@$vars['a']) {
    case 'info':
        display_info($vars);
        break;
    default:
        email_test($vars);
}
Beispiel #2
0
         }
     }
     /* update snmpcache */
     snmpagent_global_settings_update();
     api_plugin_hook_function('global_settings_update');
     raise_message(1);
     /* reset local settings cache so the user sees the new settings */
     kill_session_var('sess_config_array');
     if (isset($_REQUEST['header']) && $_REQUEST['header'] == 'false') {
         header('Location: settings.php?header=false&tab=' . $_POST['tab']);
     } else {
         header('Location: settings.php?tab=' . $_POST['tab']);
     }
     break;
 case 'send_test':
     email_test();
     break;
 default:
     top_header();
     /* set the default settings category */
     if (!isset($_REQUEST['tab'])) {
         /* there is no selected tab; select the first one */
         if (isset($_SESSION['sess_settings_tab'])) {
             $current_tab = $_SESSION['sess_settings_tab'];
         } else {
             $current_tab = array_keys($tabs);
             $current_tab = $current_tab[0];
         }
     } else {
         $current_tab = $_REQUEST['tab'];
     }