<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php

  // load viewer library
  $libraryPath = 'builder/lib/viewer_functions.php';
  $dirsToCheck = array('/home/acl/public_html/quebec/','','../','../../','../../../');
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }

  // load records
  list($downloadable_documentsRecords, $downloadable_documentsMetaData) = getRecords(array(
    'tableName'   => 'downloadable_documents',
  ));
  
// Menu  
  list($categoryRecords, $selectedCategory) = getCategories(array(
    'tableName'   => 'category',
    'selectedCategoryNum' => '',
    'categoryFormat' => 'showall',
  ));

    // load records
  list($common_informationRecords, $common_informationMetaData) = getRecords(array(
    'tableName'   => 'common_information',
    'where'       => whereRecordNumberInUrl(1),
    'loadUploads' => '0',
    'limit'       => '1',
  ));
  $common_informationRecord = @$common_informationRecords[0];
  
      // load records
  list($supportersRecords, $supportersMetaData) = getRecords(array(
    'tableName'   => 'supporters',
  ));

setlocale(LC_ALL, 'en_EN');
?>