Beispiel #1
0
function debug_comment_timestamp($extra = null)
{
    debug_timestamp(true, $extra);
}
Beispiel #2
0
        $election_error = cobrand_election_error_message($cobrand);
        if (!$election_error) {
             $election_error = 'Sorry, an election is forthcoming or has recently happened here.';
        }
        template_show_error($election_error);
    }
    // Get the representative info
    $area_representatives = dadem_get_representatives($va_id);
    dadem_check_error($area_representatives);  
    debug("FRONTEND", "area representatives $area_representatives");
    $area_representatives = array($va_id => $area_representatives);
    euro_check($area_representatives, $voting_areas);
    $all_representatives = array_values($area_representatives[$va_id]);
    $representatives_info = dadem_get_representatives_info($all_representatives);
    dadem_check_error($representatives_info);
    debug_timestamp();

    debug("FRONTEND", "representatives info $representatives_info");

    //Check the contact method exists for each representative
    $any_contacts = false;
    $error_msg = "";
    $fyr_valid_reps = array();
    # randomize the order that representatives will be displayed in
    shuffle($all_representatives);
    foreach ($all_representatives as $rep_specificid) {
       
        $success = msg_recipient_test($rep_specificid);
        $rep_name = "<strong>" . $fyr_voting_area['rep_prefix'] . " " .  
        $representatives_info[$rep_specificid]['name'] . " " . $fyr_voting_area['rep_suffix'] . "</strong>";
Beispiel #3
0
function get_reps_info($area_representatives)
{
    $all_representatives = array_reduce(array_values($area_representatives), 'array_merge', array());
    $representatives_info = dadem_get_representatives_info($all_representatives);
    dadem_check_error($representatives_info);
    debug_timestamp();
    return $representatives_info;
}