Пример #1
0
    }
    unset($_POST);
    $MAXLEVEL = 7;
}
/* GLOBAL NOTIF */
$query_global_notif = "SELECT notifications_enabled FROM " . $BACKEND . "_programstatus ;";
$res_global_notif = mysql_query($query_global_notif, $dbconn);
$row_global_notif = mysql_fetch_row($res_global_notif);
if ($row_global_notif[0] == 0) {
    $global_notif = "ena_notif";
} else {
    $global_notif = "disa_notif";
}
/* PROCESS POST DATA AND SEND CMD TO NAGIOS OR ICINGA */
if (isset($_POST['action']) && isset($_POST['target']) && is_array($_POST['target'])) {
    handle_action($_POST['action'], $_POST['target']);
}
/* INIT DEFAULT VALUES (see config.php for other) */
$MY_USER = $_SESSION['USER'];
//USER VIEW
$MY_SVCFILT = "1,2,3";
//STATUS SVC FILTER
$MY_HOSTFILT = "1";
//STATUS HOST FILTER
$MY_SVCACKLIST = 0;
//SVC ACKNOWLEDGE
$MY_HOSTACKLIST = 0;
//HOST ACKNOWLEDGE
$MY_HOSTDOWNOP = '=';
//HOST DOWNTIME DEPTH COMPARISON OPERATOR
$MY_HOSTDOWNVAL = 0;
Пример #2
0
 #$tnow = $user->time_now;
 date_default_timezone_set("Etc/UTC");
 $tnow = time();
 $tnow += 60 * 60 * $config['raidattendance_timezone'];
 $tstamp = $tstamp > 0 ? $tstamp : $tnow;
 $now = strftime('%H:%M', $tnow);
 $today = strftime('%Y%m%d', $tnow);
 $raid_time = $config['raidattendance_raid_time'];
 $signoff_time = $config['raidattendance_raid_late'];
 $raids = get_raiding_days($tstamp, $raid_id);
 $raider_db = new raider_db();
 $raiders = array();
 $raider_db->get_raider_list($raiders, $raid_id, $sort_order);
 $action = request_var('u_action', '');
 if ($action) {
     handle_action($action, $raiders);
 }
 $day_names = get_raiding_day_names($raids);
 $attendance = get_attendance($raids, $raid_id);
 $static_attendance = get_static_attendance($raids);
 add_static_attendance($raids, $attendance, $static_attendance);
 $rowno = 0;
 $statusses = array(STATUS_ON => 'on', STATUS_OFF => 'off', STATUS_NOSHOW => 'noshow', STATUS_LATE => 'late', STATUS_SUBSTITUTE => 'substitute', 0 => 'future', -1 => 'past', -2 => 'unset', STATUS_LATE_SIGNOFF => 'late_signoff');
 $raid_sums = array();
 $raidData = array();
 // data used in the addon...
 $armory_link = $config['raidattendance_armory_link'];
 $realm = $config['raidattendance_realm_name'];
 $url_base = $armory_link . '/character-sheet.xml?r=' . urlencode($realm) . '&cn=';
 $date_array = getdate($tstamp);
 $last_week = mktime(0, 0, 0, $date_array['mon'], $date_array['mday'] - 7, $date_array['year']);
function manage_social_access_control_options()
{
    handle_action();
    print_html();
}