\n"; foreach($files as $file) { $name=strip_ext("$file"); print "\n
  • $name
  • "; } print "\n\n"; } } // SJW 2014.02.09 // Sanitize form data (for membership form, or in general) function qufa_sanitize_form_data($form_data) { $sanitized_data = $form_data; $sanitized_data = trim($sanitized_data); $sanitized_data = strip_tags($sanitized_data); $sanitized_data = htmlentities($sanitized_data); $sanitized_data = filter_var($sanitized_data, FILTER_SANITIZE_STRING); return $sanitized_data; } // Sanitize an entire array function qufa_sanitize_form_data_array($form_data_array) { $sanitized_form_data_array = array(); foreach($form_data_array as $key => $value) { $sanitized_form_data_array[$key] = qufa_sanitize_form_data($value); } return $sanitized_form_data_array; } // Generate a random string for spam check function qufa_generate_random_string($str_length = -1) { $character_array = str_split("ABCDEFGHIJKLMNOPQURTUVWXYZabcdefghijklmnopqrstuvwxyz"); $character_array_size = count($character_array); $random_string_size = $str_length; $random_string = ''; shuffle($character_array); if (($random_string_size < 0) || ($random_string_size >= $character_array_size)) { $random_string_size = $character_array_size - 1; } $random_string = array_slice($character_array, 0, $random_string_size); return implode('', $random_string); } function qufa_check_spelling($phrase_to_check) { $phrase_array = explode(" ", $phrase_to_check); $pspell_link = pspell_new("en"); if (! $pspell_link) { return true; } $spelled_ok = 0; $spelled_wrong = 0; foreach ($phrase_array as $word) { if (pspell_check($pspell_link, $word)) { $spelled_ok++; } else { $spelled_wrong++; } } return ($spelled_ok > $spelled_wrong); } ?> QUFA - Announcing QUFA Forum, a blog

    Announcing QUFA Forum, a blog

    Dear QUFA Members,

    In response to Members' need for a cross-campus forum to discuss several situations (for example, racism and budget issues) that have arisen at Queen's, the Political Action and Communications Committee (PACC) is launching a blog for QUFA Members called QUFA Forum:

    http://qufa.wordpress.com/

    We encourage you to visit and contribute.

    You will require a password to view stories and comment. Please contact the QUFA office for details.

    PACC hopes that QUFA Forum will provide a crucial space for communication about issues important to all of us, as and when they arise.

    We look forward to your participation.

    Joyce Davidson and Frank Burke
    PACC

     

    2009.03.25