Re: [Jason] Flash button not working
Hi - here is the html version:
http://www.babyiq.com/default.htm
Here is the code:
<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
// load viewer library
$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
$dirsToCheck = array('D:/Sites/babyiq.com/public_html/','','../','../../','../../../');
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($welcomeRecords, $welcomeMetaData) = getRecords(array(
'tableName' => 'welcome',
'allowSearch' => '0',
'limit' => '1',
));
$welcomeRecord = @$welcomeRecords[0]; // get first record
// show error message if no matching record is found
if (!$welcomeRecord) { dieWith404("Record not found!"); }
list($footerRecords, $footerMetaData) = getRecords(array(
'tableName' => 'footer',
'allowSearch' => '0',
'limit' => '1',
));
$footerRecord = @$footerRecords[0]; // get first record
?>
and all the main content loads with:
<h1><?php echo $welcomeRecord['title'] ?></h1>
<p> </p>
<?php echo $welcomeRecord['content'] ?>