Ejemplo n.º 1
0
 $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']);
 $next_week = mktime(0, 0, 0, $date_array['mon'], $date_array['mday'] + 7, $date_array['year']);
 $dump_months = request_var('dump_months', 1);
Ejemplo n.º 2
0
function get_static_attendance($raids)
{
    $day_names = get_raiding_day_names($raids);
    return get_static_attendance_days($day_names);
}