<?php $libraryPath = 'cmsAdmin/lib/viewer_functions.php';
  $dirsToCheck = array('/home3/mrqsygmy/public_html/dbtproviders/','','../','../../','../../../');
  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
 if (empty($_SERVER['HTTP_HOST']) && isset( $_SERVER['argv'][1])) {
$_SERVER['SERVER_NAME'] = $_SERVER['argv'][1]; // set server name for SwiftMailer Message-ID in cron tasks (https://forge.typo3.org/issues/24686)
}
  // load records
	   list($common_informationRecords, $common_informationMetaData) = getRecords(array(
    'tableName'   => 'common_information',
	 'where'       => '',
     'allowSearch' => false,
    'limit'       => '1',
  ));
  $common_informationRecord = @$common_informationRecords[0]; // get first record 
  list($dbt_colorsRecords, $dbta_colorsMetaData) = getRecords(array(
    'tableName'   => 'dbt_colors',
    'where'       => '', // load first record
    'loadUploads' => true,
    'allowSearch' => false,
    'limit'       => '1',
  ));
  $dbt_colorsRecord = @$dbt_colorsRecords[0]; // get first record
  
   // load record from 'accounts'
  list($accountsRecords, $accountsMetaData) = getRecords(array(
    'tableName'   => 'accounts',
    'where'       => whereRecordNumberInUrl(0),
    'loadUploads' => true,
    'allowSearch' => false,
    'limit'       => '1',
	// 'debugSql' => true,
  ));
  $accountsRecord = @$accountsRecords[0]; // get first record
    
   list($fontsRecords, $fontsMetaData) = getRecords(array(
    'tableName'   => 'fonts',
	 'where'       => '',
'limit'       => '1',
 'allowSearch' => false,
  ));
  
  $fontsRecord = @$fontsRecords[0]; // get first record
  
  // load records
  list($sponsorsRecords, $sponsorsMetaData) = getRecords(array(
    'tableName'   => 'sponsors',
	 'allowSearch' => false,
  ));
   // load records
  list($google_font_namesRecords, $google_font_namesMetaData) = getRecords(array(
    'tableName'   => 'google_font_names',
	 'allowSearch' => false,
  )); 
  
  // load records
  list($navigation_menuRecords, $navigation_menuMetaData) = getRecords(array(
    'tableName'   => 'navigation_menu',
	 'allowSearch' => false,
  ));
  // Code for adding images to text boxes
list($image_libraryRecords, $image_libraryMetaData) = getRecords(array(
    'tableName'   => 'image_library',
    'where'       => '', // load first record
    'loadUploads' => true,
    'allowSearch' => false,
    'limit'       => '1',
  ));
  $image_libraryRecord = @$image_libraryRecords[0]; // get first record
  
   list($faqRecords, $faqMetaData) = getRecords(array(
    'tableName'   => 'faq',
    'loadUploads' => true,
    'allowSearch' => false,

  ));?>
<?php $masterurl = $common_informationRecord['master_url']?>
<?php if ($image_libraryRecord['image_1']):?><?php foreach ($image_libraryRecord['image_1'] as $index => $upload): ?><?php $image1 = $upload['thumbUrlPath2'] ?><?php endforeach ?><?php endif ?>
<?php if ($image_libraryRecord['image_2']):?><?php foreach ($image_libraryRecord['image_2'] as $index => $upload): ?><?php $image2 = $upload['thumbUrlPath2'] ?><?php endforeach ?><?php endif ?>
<?php if ($image_libraryRecord['image_3']):?><?php foreach ($image_libraryRecord['image_3'] as $index => $upload): ?> <?php $image3 = $upload['thumbUrlPath2'] ?><?php endforeach ?><?php endif ?>
<?php if ($image_libraryRecord['image_4']):?><?php foreach ($image_libraryRecord['image_4'] as $index => $upload): ?><?php $image4 = $upload['thumbUrlPath2'] ?><?php endforeach ?><?php endif ?>
<?php if ($image_libraryRecord['image_5']):?><?php foreach ($image_libraryRecord['image_5'] as $index => $upload): ?><?php $image5 = $upload['thumbUrlPath2'] ?><?php endforeach ?><?php endif ?>
<?php if ($image_libraryRecord['image_6']):?><?php foreach ($image_libraryRecord['image_6'] as $index => $upload): ?><?php $image6 = $upload['thumbUrlPath2'] ?><?php endforeach ?><?php endif ?>
<?php if ($image_libraryRecord['image_7']):?><?php foreach ($image_libraryRecord['image_7'] as $index => $upload): ?><?php $image7 = $upload['thumbUrlPath2'] ?><?php endforeach ?><?php endif ?>
<?php if ($image_libraryRecord['image_8']):?><?php foreach ($image_libraryRecord['image_8'] as $index => $upload): ?><?php $image8 = $upload['thumbUrlPath2'] ?><?php endforeach ?><?php endif ?>
<?php if ($image_libraryRecord['image_9']):?><?php foreach ($image_libraryRecord['image_9'] as $index => $upload): ?><?php $image9 = $upload['thumbUrlPath2'] ?><?php endforeach ?><?php endif ?>
<?php if ($image_libraryRecord['image_10']):?><?php foreach ($image_libraryRecord['image_10'] as $index => $upload): ?><?php $image10 = $upload['thumbUrlPath2'] ?><?php endforeach ?><?php endif ?>
<?php if ($image_libraryRecord['image_11']):?><?php foreach ($image_libraryRecord['image_11'] as $index => $upload): ?><?php $image11 = $upload['thumbUrlPath2'] ?><?php endforeach ?><?php endif ?>
<?php if ($image_libraryRecord['image_12']):?><?php foreach ($image_libraryRecord['image_12'] as $index => $upload): ?><?php $image12 = $upload['thumbUrlPath2'] ?><?php endforeach ?><?php endif ?>
<?php $placeHolders = array("*img1*", "*img2*", "*img3*", "*img4*", "*img5*", "*img6*", "*img7*", "*img8*", "*img9*", "*img10*", "*img11*", "*img12*");
$replaceWith = array(@$image1, @$image2, @$image3, @$image4, @$image5, @$image6, @$image7, @$image8, @$image9, @$image10, @$image11, @$image12 ); ?>